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

Uploaded Source

Built Distribution

ucam_identitylib-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ucam-identitylib-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for ucam-identitylib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b12fb6e645967596f1f5fa922c7a16ee7c0ed5a8b056d14afc4afefdef965aa0
MD5 2455bc6017801120005a4c25b79d6cf1
BLAKE2b-256 eabc6a4956236224c6ab5c93feef5766c2f430216ea90d2e6fa48e2ab6bf51af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ucam_identitylib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for ucam_identitylib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9cbffa5fd7489ef0ea9d0422cda7e6822fa4c3741b03058b1416ccecd04eec87
MD5 f351010eb9cef9a9a17e1d53e8eb8791
BLAKE2b-256 547f9e173c2ee8c678c4d6945661d09b12d0c82f9bddddd6240c8eb31ae96cb5

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