/uw-restclients-gws

REST client for the UW Groups Web Service

Primary LanguagePythonApache License 2.0Apache-2.0

REST client for the UW Groups Web Service

Build Status Coverage Status PyPi Version Python versions

Installation:

pip install UW-RestClients-GWS

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_GWS_DAO_CLASS='Live'

# Paths to UWCA cert and key files
RESTCLIENTS_GWS_CERT_FILE='/path/to/cert'
RESTCLIENTS_GWS_KEY_FILE='/path/to/key'

# Groups Web Service hostname (eval or production)
RESTCLIENTS_GWS_HOST='https://iam-ws.u.washington.edu'

Optional settings:

# Customizable parameters for urllib3
RESTCLIENTS_GWS_TIMEOUT=5
RESTCLIENTS_GWS_POOL_SIZE=10

See examples for usage. Pull requests welcome.