From 983d071c818b5a44d0110a8af2e4940214566f5f Mon Sep 17 00:00:00 2001 From: Jeyson Molina Date: Tue, 25 Feb 2014 18:23:54 -0500 Subject: [PATCH] Readme update 2. --- readme.md | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/readme.md b/readme.md index c4204ea..1479a33 100644 --- a/readme.md +++ b/readme.md @@ -6,29 +6,23 @@ You can use this class to send requests to iRacing service and get some valuable USAGE ===== -from client import iRWebStats + from client import iRWebStats + irw = iRWebStats() + irw.login('username', 'password') + print (irw.cars_driven()) # cars driven by user -irw = iRWebStats() - -irw.login('username', 'password') - -print (irw.cars_driven()) # cars driven by user - -# Check examples.py for more examples +Check examples.py for more examples FILES ===== -client.py : This is where the main class is defined. - -examples.py : Some examples. - -constants.py : Useful constants used in request fields sent to the service. - -util.py : Helper functions. - -shell.py: A command line interface for the client. +- client.py : This is where the main class is defined. +- examples.py : Some examples. +- constants.py : Useful constants used in request fields sent to the service. +- util.py : Helper functions. +- shell.py: A command line interface for the client. REQUIREMENTS ============ + Python 2.7+ or 3+ (with network access)