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

Uploaded Source

Built Distribution

ucam_identitylib-1.0.1-py3-none-any.whl (288.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ucam-identitylib-1.0.1.tar.gz
  • Upload date:
  • Size: 115.2 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.1.tar.gz
Algorithm Hash digest
SHA256 9facfe9fb1cdaf91bb985ac2774d10fa7d723532738e3fc117d9bbaa56c345c6
MD5 81eb05dcab81b9f7a8124b499fd240b2
BLAKE2b-256 e9bfa3a03b332416343d68cae51ee06b006ddc4635ebd60d5f8a784e3a021e5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ucam_identitylib-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 288.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78eb991506e7f50fa68763e0344f1eff0a95992d4a043b7512e42f29feccc0e6
MD5 9cf62595ade8f8de75198b3916f6616a
BLAKE2b-256 ccb65847880e3e1b12e9791c1f246c1c0cedb303d15bf7642a33db91d1d710b1

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