uwgs 
Python3 Client Library for UW Groups API v3
Functionality
At the moment, this library provides read-only functionality for:
import uwgs
from collections import namedtuple
import os
import json
Config = namedtuple('Config', ['client_cert', 'client_key', 'url'])
def load_config():
cwd = os.path.dirname(os.path.abspath(__file__))
fp = os.path.join(cwd, 'uwgs.json')
with open(fp, 'r') as f:
data = json.load(f)
cfg = Config(data['client_cert'], data['client_key'], data['url'])
return cfg
def cli():
cfg = load_config()
client = uwgs.Client(cfg.client_cert, cfg.client_key, cfg.url)
payload = client.search(name='<group_prefix>*')
if payload.ok:
groups = [group['id'] for group in payload.data['data']]
rosters = client.get_memberships(groups)
print(rosters)
if __name__ == "__main__":
cli()
Metadata
Release files for uwgs 0.2.0
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 |
|---|---|---|---|---|
| uwgs-0.2.0.tar.gz | 3.3 kB | Without provenance | Details for uwgs-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uwgs-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for uwgs-0.2.0-py3-none-any.whl |
Total release size: 9.2 kB
Release files / uwgs-0.2.0.tar.gz
| Download URL | uwgs-0.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b04a086b2cef6e7bf0540e375d93575c4503937dce26056bc5b92572168b37eb
|
|
BLAKE2b-256 checksum How to use checksums |
db507d866e456cacf6c275fc19a3183fdfef556cb81f2383e74286ab8da2c75b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / uwgs-0.2.0-py3-none-any.whl
| Download URL | uwgs-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37aafedfaf970d6831383570ec33283ce6d23c7cedb958e8f23e95d2acc525c8
|
|
BLAKE2b-256 checksum How to use checksums |
f55b46e6e2d536d3b99574eb727a56b31ed5ce3b7806bea7b9c332ca45827f6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for uwgs 0.2.0
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.