diff --git a/.gitignore b/.gitignore index 870bb5a..7cff392 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.swp *.tar.gz *.pyc +*__pycache__ diff --git a/EXPLORING.md b/EXPLORING.md index 4eec268..a7e4da3 100644 --- a/EXPLORING.md +++ b/EXPLORING.md @@ -15,11 +15,4 @@ Upon login on connect.exeter.edu, your browser makes multiple SOAP calls to Conn ###Places to poke/use - - - - - - -#Calendar - -#Lionlinks - -#csserver.exeter.edu/schedule diff --git a/README.md b/README.md index 3f67173..1ee7fd5 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ import PEA_connect users = PEA_connect.users() #downloads data, or loads from a cache -user = users.get(raw_input("Your username please: ")) #asks for your username -print("Hello " + user.get("FirstName") + " " + user.get("LastName") + "!") #prints your name -print("You live in " + user.get("PEALivingGroup") + ".") #prints your dorm -print("Your PO Box number is " + user.get("POBox") + ".") #prints your PO number +me = users.get(raw_input("Your username please: ")) #asks for your username +print("Hello " + me.get("FirstName") + " " + me.get("LastName") + "!") #prints your name +print("You live in " + me.get("PEALivingGroup") + ".") #prints your dorm +print("Your PO Box number is " + me.get("POBox") + ".") #prints your PO number ``` [More examples](examples/) @@ -69,6 +69,5 @@ _TODO_ write/design installation of actual module [Here](EXPLORING.md) ##Todo: - - Redocument readme - Add to README how an actual user/class data looks like in JSON - - fix tests/examples + - Make into pip installable thing diff --git a/examples/id.py b/examples/id.py index 8466b93..5d6ac75 100644 --- a/examples/id.py +++ b/examples/id.py @@ -1,6 +1,8 @@ from PEA_connect import users import json +#Repeatedly queries for ID numbers, and returns the appropriate info for that ID number + def pprint(x): print(json.dumps(x, indent=4, sort_keys=True))