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

Uploaded Source

Built Distribution

ucam_identitylib-1.0.2-py3-none-any.whl (318.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ucam-identitylib-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bcdaf4340801ebd4e80253b1b27c39ab993f9a09379b23815fed93983cbad3ab
MD5 85c21d2cea8303315a868b62e9e24d58
BLAKE2b-256 f5742e8609f30d4f7c3fdcfcc45919fe13b7c65647aac3f7dbbdb9146c89d679

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ucam_identitylib-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 435ef5635e6ad899b83bd9c5bf3944488dcdcd02a10e5c3029a3072072c35efb
MD5 f035ebb0fc0f0007b1305b805f7b4f83
BLAKE2b-256 81ea69f87e62fa68bb101cdab2b8a6f135525ea9b3570269867a34fc67db4928

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