UW-RestClients-NWS

A library for connecting to the Notification Web Service at the University of Washington


License
Apache-2.0
Install
pip install UW-RestClients-NWS==1.3.5

Documentation

REST client for the UW Notification Web Service

Build Status Coverage Status PyPi Version Python versions

Installation:

pip install UW-RestClients-NWS

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

# Paths to UWCA cert and key files
RESTCLIENTS_NWS_CERT_FILE='/path/to/cert'
RESTCLIENTS_NWS_KEY_FILE='/path/to/key'

# Notification Web Service hostname (eval or production)
RESTCLIENTS_NWS_HOST='...'

Optional settings:

# Customizable parameters for urllib3
RESTCLIENTS_NWS_TIMEOUT=5
RESTCLIENTS_NWS_POOL_SIZE=10

See examples for usage. Pull requests welcome.