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

Uploaded Source

Built Distribution

ucam_identitylib-1.0.6-py3-none-any.whl (497.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ucam-identitylib-1.0.6.tar.gz
  • Upload date:
  • Size: 215.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for ucam-identitylib-1.0.6.tar.gz
Algorithm Hash digest
SHA256 721b3473556c9c192cc82a443293fae87e25ae0f756d7f40363dfee0db71065f
MD5 d9acc35df8bef8a0f6657deb552f8597
BLAKE2b-256 8731c8ada77673fc0ead432c013fe4cf4935e33a90de149556ce43b989441b90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ucam_identitylib-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 025f33a6b02b467a58a1f57470b7d09218046386a48f7f1a4902938bb27ef720
MD5 cebc33cf21562a63243ef9ef68f224ba
BLAKE2b-256 46af9319cb0b71d60479abc8c9fb96acd9581d2641db5fb1c779afb58910b11b

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