Skip to main content

Data structures and functionalities for the Nillion Network user identity and authorization framework.

PyPI version and link. Read the Docs documentation status. GitHub Actions status. Coveralls test coverage summary.

Installation and Usage

The library can be imported in the usual ways:

import nuc
from nuc import *

Development

This project is managed via uv. To install dependencies run:

uv sync --dev

All installation and development dependencies are fully specified in pyproject.toml. The project.optional-dependencies object is used to specify optional requirements for various development tasks. This makes it possible to specify additional options (such as docs, lint, and so on) when performing installation using pip:

uv sync --dev --extra docs --extra lint

Documentation

The documentation can be generated automatically from the source files using Sphinx:

uv sync --extra docs
cd docs
uv run sphinx-apidoc -f -E --templatedir=_templates -o _source ../src && uv run make html

Testing and Conventions

All unit tests are executed and their coverage is measured when using pytest (see the pyproject.toml file for configuration details):

uv sync --extra test
uv run pytest

The subset of the unit tests included in the module itself and can be executed using doctest:

python src/nuc/nuc.py -v

Style conventions are enforced using Pylint:

uv sync --extra lint
uv run pylint src/nuc test/test_nuc.py

Type checking is enforced using Pyright:

uv sync --extra lint
uv run pyright

Contributions

In order to contribute to the source code, open an issue or submit a pull request on the GitHub page for this library.

Versioning

The version number format for this library and the changes to the library associated with version number increments conform with Semantic Versioning 2.0.0.

Publishing

This library can be published as a package on PyPI via the GitHub Actions workflow found in .github/workflows/build-publish-sign-release.yml that follows the recommendations found in the Python Packaging User Guide.

Ensure that any links in this README document to the Read the Docs documentation of this package (or its dependencies) have appropriate version numbers. Also ensure that the Read the Docs project for this library has an automation rule that activates and sets as the default all tagged versions.

Release files for nuc 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nuc 0.1.0
File Size Uploaded
nuc-0.1.0.tar.gz 29.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nuc 0.1.0
File Interpreter ABI Platform
nuc-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 52.1 kB

Release files / nuc-0.1.0.tar.gz

Download URL nuc-0.1.0.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6a715bf07a8adf2901b68c9597ba44ae28506c3fb0fa03530c092bc0f8ba22f0
BLAKE2b-256 checksum
How to use checksums
e958acfdbdd6dc8e8575a1bc2ade9eedf7d33d99ac428573df5a46a4f4b76949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.

Transparency log

Release files / nuc-0.1.0-py3-none-any.whl

Download URL nuc-0.1.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6845133866f2d41592be74ca2a41295d09d7a6d89886a5a1181dceefd4fe5a65
BLAKE2b-256 checksum
How to use checksums
80baa99b12ee5132976d974fe65f9dbeaaafe4183a8558859c72bd271f87e25c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2025.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page