Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.26 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.26 KB

REST client for the UW Student Web Service

Build Status Coverage Status PyPi Version Python versions

Installation:

pip install UW-RestClients-SWS

To use this client, you'll need these settings in your application or script:

# Specifies whether requests should use live or mocked resources,
# acceptable values are 'Live' or 'Mock' (default)
RESTCLIENTS_SWS_DAO_CLASS='Live'

# Paths to UWCA cert and key files
RESTCLIENTS_SWS_CERT_FILE='/path/to/cert'
RESTCLIENTS_SWS_KEY_FILE='/path/to/key'

# Student Web Service hostname (eval or production)
RESTCLIENTS_SWS_HOST='https://ws.admin.washington.edu'

Optional settings:

# Customizable parameters for urllib3
RESTCLIENTS_SWS_TIMEOUT=5
RESTCLIENTS_SWS_POOL_SIZE=10

See examples for usage. Pull requests welcome.