Skip to content

Commit

Permalink
clean up, rename to PEA_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
sleexyz committed Feb 4, 2014
1 parent d2d20a9 commit f7b7728
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 47 deletions.
2 changes: 1 addition & 1 deletion PEA/__init__.py → PEA_connect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PEA import data
from PEA_connect import data

def _classes():
original = data.getClassData
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion PEA/data.py → PEA_connect/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PEA import connect
from PEA_connect import connect
import sys
import re
import string
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ print("You live in " + user.get("PEALivingGroup") + ".") #prints your dorm
print("Your PO Box number is " + user.get("POBox") + ".") #prints your PO number
```

[More examples](examples/README.md)
[More examples](examples/)

##Installation
Supports python 2 only.
Expand Down Expand Up @@ -69,7 +69,6 @@ _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
- Make PEA-data-tools website on ECC
- Make changes to code that reflect README
- simplify to single file, get rid of unnecessary package structure
- fix tests/examples
1 change: 1 addition & 0 deletions examples/PEA_connect
6 changes: 0 additions & 6 deletions examples/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions examples/auth.py

This file was deleted.

6 changes: 3 additions & 3 deletions examples/id.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from PEA import users
from PEA_connect import users
import json

def pprint(x):
print(json.dumps(x, indent=4, sort_keys=True))


u = users(by="employeeID")
u = users(by="EmployeeID")
def getEmailByEmployeeID(employeeid):
user = u.get(employeeid)
if not user:
Expand All @@ -21,7 +21,7 @@ def getNameByEmployeeID(employeeid):

def query():
try:
employeeid = str(raw_input('employeeID: '))
employeeid = str(raw_input('EmployeeID: '))
print(getNameByEmployeeID(employeeid))
print(getEmailByEmployeeID(employeeid))
except Exception:
Expand Down
19 changes: 0 additions & 19 deletions examples/update.py

This file was deleted.

2 changes: 1 addition & 1 deletion examples/username.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PEA import users
from PEA_connect import users
import json

def pprint(x):
Expand Down
1 change: 1 addition & 0 deletions tests/PEA_connect
Empty file removed tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/classes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PEA import classes
from PEA_connect import classes

byFullString = classes()
byClassCode = classes(by="ClassCode")
Expand Down
2 changes: 1 addition & 1 deletion tests/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PEA import data
from PEA_connect import data
def test_getRawUserData():
#a = data.getRawUserData()
b = data.getRawUserData(source="connect")
Expand Down
2 changes: 1 addition & 1 deletion tests/users.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PEA import users
from PEA_connect import users

byUsername = users()
byID = users(by="EmployeeID")
Expand Down

0 comments on commit f7b7728

Please sign in to comment.