A module containing helpers and shared code related to identity systems within UIS, University of Cambridge.
Project description
Identity Lib
This Python package contains shared code related to Identity systems within UIS. It's primary purpose is to encourage code-reuse and to allow for client systems to make use of the same data structures and logic that is contained within our emergent identity APIs.
Use
Install ucam-identitylib
using pip:
pip install ucam-identitylib
The module can then be used as identitylib
:
from identitylib.identifiers import Identifier
identifier = Identifier.from_string('wgd23@v1.person.identifiers.cam.ac.uk')
print(identifier)
Developer quickstart
This project contains a dockerized testing environment which wraps tox.
Tests can be run using the ./test.sh
command:
# Run all PyTest tests and Flake8 checks
$ ./test.sh
# Run just PyTest
$ ./test.sh -e py3
# Run a single test file within PyTest
$ ./test.sh -e py3 -- tests/test_identifiers.py
# Run a single test file within PyTest with verbose logging
$ ./test.sh -e py3 -- tests/test_identifiers.py -vvv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ucam-identitylib-0.1.2.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for ucam_identitylib-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e344fdaf7c03c0b6e5eb616e7a256c0601b3a9c955ca26d8df0ca3a854b2455 |
|
MD5 | 8bd36b1a19c12491b9ec1f337f265b8d |
|
BLAKE2b-256 | dca9bd5777d62037c009842c7dcf9f98b003c50cf8938cb282af300b0b11df13 |