Skip to main content

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 PyTest and Flake8 and recreate test environments
$ ./test.sh --recreate

# 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


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-1.0.3.tar.gz (121.5 kB view details)

Uploaded Source

Built Distribution

ucam_identitylib-1.0.3-py3-none-any.whl (321.0 kB view details)

Uploaded Python 3

File details

Details for the file ucam-identitylib-1.0.3.tar.gz.

File metadata

  • Download URL: ucam-identitylib-1.0.3.tar.gz
  • Upload date:
  • Size: 121.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3

File hashes

Hashes for ucam-identitylib-1.0.3.tar.gz
Algorithm Hash digest
SHA256 665ed423512b00db5785d162dd6054574b378d7aaa162cd28f4e2f19bf375350
MD5 73f0ed3d055f395ff7ba1bc08db3392d
BLAKE2b-256 bfeb61ec2e0076e72a729565eae5c533cba47e458f40ffa255e83b878c5e7fea

See more details on using hashes here.

File details

Details for the file ucam_identitylib-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ucam_identitylib-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 321.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3

File hashes

Hashes for ucam_identitylib-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 136a92798a25a4838f79a384125ebd501023d89194b0250fbac9464b85c59842
MD5 3ea863c662f656df420c4d978f73b9fa
BLAKE2b-256 743217884e76d53d9b554bd978db2d700e3ca05defb93bd9213953e5bed42279

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page