REST client for the UW Person Web Service
Installation:
pip install UW-RestClients-PWS
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_PWS_DAO_CLASS='Live'
# Paths to UWCA cert and key files
RESTCLIENTS_PWS_CERT_FILE='/path/to/cert'
RESTCLIENTS_PWS_KEY_FILE='/path/to/key'
# Person Web Service hostname (eval or production)
RESTCLIENTS_PWS_HOST='https://ws.admin.washington.edu'
Optional settings:
# Customizable parameters for urllib3
RESTCLIENTS_PWS_TIMEOUT=5
RESTCLIENTS_PWS_POOL_SIZE=10
How to use this client:
from commonconf.backends import use_configparser_backend
from commonconf import settings
from uw_pws import PWS
import os
if __name__ == '__main__':
settings_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'settings.cfg')
use_configparser_backend(settings_path, 'PWS')
client = PWS()
person1 = client.get_person_by_netid('javerage')
person2 = client.get_person_by_regid('12345678901234567890123456789012')
person3 = client.get_person_by_student_number('1234567')
Metadata
Release files for UW-RestClients-PWS 2.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uw_restclients_pws-2.1.14.tar.gz | 36.1 kB | Without provenance | Details for uw_restclients_pws-2.1.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uw_restclients_pws-2.1.14-py3-none-any.whl | Python 3 | none | any | Details for uw_restclients_pws-2.1.14-py3-none-any.whl |
Total release size: 133.8 kB
Release files / uw_restclients_pws-2.1.14.tar.gz
| Download URL | uw_restclients_pws-2.1.14.tar.gz |
|---|---|
| Size | 36.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5b3b6974887bd37097ffd8de9565b8102a2e2a88e3b22e63677a6d62748312e
|
|
BLAKE2b-256 checksum How to use checksums |
fb3ae25c259234ae4b80115cdfbc9a2870a0731c2248000ebfb70f1d18f1a0f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / uw_restclients_pws-2.1.14-py3-none-any.whl
| Download URL | uw_restclients_pws-2.1.14-py3-none-any.whl |
|---|---|
| Size | 97.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
673bab5d0b92c09c52bfaa0c8ad8525bce4f00236908f1ccf4cb8505663cc2be
|
|
BLAKE2b-256 checksum How to use checksums |
c96b07ebf1bbc1e72f222968d60f07dcb375e522de94a3862b72b4c8260e7798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for UW-RestClients-PWS 2.1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.