Data structures and functionalities for the Nillion Network user identity and authorization framework.
Project description
Data structures and functionalities for the Nillion Network user identity and authorization framework.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nuc-0.1.0.tar.gz
.
File metadata
- Download URL: nuc-0.1.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6a715bf07a8adf2901b68c9597ba44ae28506c3fb0fa03530c092bc0f8ba22f0
|
|
MD5 |
4211fa680d569e847328f93ea080ee0f
|
|
BLAKE2b-256 |
e958acfdbdd6dc8e8575a1bc2ade9eedf7d33d99ac428573df5a46a4f4b76949
|
Provenance
The following attestation bundles were made for nuc-0.1.0.tar.gz
:
Publisher:
build-publish-sign-release.yml
on NillionNetwork/nuc-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
nuc-0.1.0.tar.gz
-
Subject digest:
6a715bf07a8adf2901b68c9597ba44ae28506c3fb0fa03530c092bc0f8ba22f0
- Sigstore transparency entry: 257757958
- Sigstore integration time:
-
Permalink:
NillionNetwork/nuc-py@0abf4c3df997f2c53519b2af7db4c2b5b4ce5fed
-
Branch / Tag:
refs/tags/0.1.0
- Owner: https://github.com/NillionNetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
build-publish-sign-release.yml@0abf4c3df997f2c53519b2af7db4c2b5b4ce5fed
-
Trigger Event:
push
-
Statement type:
File details
Details for the file nuc-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: nuc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6845133866f2d41592be74ca2a41295d09d7a6d89886a5a1181dceefd4fe5a65
|
|
MD5 |
4749b9cd37347df04546a8ff757ee330
|
|
BLAKE2b-256 |
80baa99b12ee5132976d974fe65f9dbeaaafe4183a8558859c72bd271f87e25c
|
Provenance
The following attestation bundles were made for nuc-0.1.0-py3-none-any.whl
:
Publisher:
build-publish-sign-release.yml
on NillionNetwork/nuc-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
nuc-0.1.0-py3-none-any.whl
-
Subject digest:
6845133866f2d41592be74ca2a41295d09d7a6d89886a5a1181dceefd4fe5a65
- Sigstore transparency entry: 257757965
- Sigstore integration time:
-
Permalink:
NillionNetwork/nuc-py@0abf4c3df997f2c53519b2af7db4c2b5b4ce5fed
-
Branch / Tag:
refs/tags/0.1.0
- Owner: https://github.com/NillionNetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
build-publish-sign-release.yml@0abf4c3df997f2c53519b2af7db4c2b5b4ce5fed
-
Trigger Event:
push
-
Statement type: