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

Uploaded Source

Built Distribution

ucam_identitylib-1.0.0-py3-none-any.whl (277.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ucam-identitylib-1.0.0.tar.gz
  • Upload date:
  • Size: 114.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ucam-identitylib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0b90d7985875b18a8aafdae7b5a49d6aacfd8be136824163c010f76ef0b7deeb
MD5 78691377c1b7116414992b7ffc4146a8
BLAKE2b-256 5c3bb37175915989314a82db2e843eb38f4ed5b5805a7cf911a605bc1249228a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ucam_identitylib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 277.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ucam_identitylib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c68050ab8d76ee1c216a6324ec8bb7784fc429be6d148d3c482ecab8687ed710
MD5 edfb53c19c7a8a8b938962ebfabbb392
BLAKE2b-256 ba5466e7083756d7a72409b80050cc075479e6a0a1be6a495c18ce17139167ac

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