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

Uploaded Source

Built Distribution

ucam_identitylib-0.1.5-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ucam-identitylib-0.1.5.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ucam-identitylib-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f50196512ce32b0f0ece6428f2a689e14a75f1f0826bf9be0a7d1651069961df
MD5 a85779c4bb6e84c900afcfb94aff8788
BLAKE2b-256 632b1413d23b399ce4b39d8e11aa369bb2ec5faa47748dfd15cb81871f8d463b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ucam_identitylib-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ucam_identitylib-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6e38b6f8e5372ced36efe3dc3b2f533d5954395ada921d4ae354bc74449fc1fc
MD5 49cd2cf2896e6b76d1198861c3e3b3c5
BLAKE2b-256 432b78c3e1962522a3f710b8f52c0bf754921fdcb94b3e4551e69f8d94399513

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