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

Uploaded Source

Built Distribution

ucam_identitylib-1.0.4-py3-none-any.whl (321.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ucam-identitylib-1.0.4.tar.gz
  • Upload date:
  • Size: 121.6 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.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for ucam-identitylib-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e784ff4bc9963deca3c677ff8512bcfc741cd383e5c36027e5a5d21374b9d685
MD5 ca6b2d0a1ef7a7bd69b31f55610c02d8
BLAKE2b-256 5aa20a8bff33eb793093b631b199534b0c63b6b449119b61c96bff6c28f0c7d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ucam_identitylib-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 321.1 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.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for ucam_identitylib-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e23feebed8eb6d8b533c6aafe8a99c78ece13d4ddd65ce4b5fdf33603647e1c3
MD5 7eec8ed8467a975288646fb769380d71
BLAKE2b-256 93e6b6951c38045578736f72115e37a34a091147eb36fb48bfdc03288627e7bc

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