Network Automation Standard Library
This library contains the functions and utilities that are shared by most Network Automation projects built at SURF.
Installation
To install the package from PyPI:
pip install nwa-stdlib
Development
Virtual Environment
Steps to setup a virtual environment.
Install uv and create the development environment:
uv sync --locked --group test --group dev
Run project commands through that environment with uv run, for example:
uv run pytest
Unit tests
Run the unit tests through the uv-managed environment:
uv run pytest
Pre-commit
This project uses prek, a fast drop-in replacement for pre-commit, to automatically run a number of checks before making a git commit. The same checks will be performed in the CI pipeline so this can save you some time.
prek is part of the dev dependency group, so it is available after uv sync.
Go into the project root and enable it:
uv run prek install
This should output prek installed at .git/hooks/pre-commit. The next time you run git commit the hooks will validate your changes.
To run the hooks manually on all files, use uv run prek run --all-files.
Set the package version
When a release version has been assigned, update the package metadata on a clean branch with uv version:
uv version 1.12.2
Specify the full version explicitly so release candidates can be represented, for example uv version 1.12.2rc1.
Supported Python versions
nwa-stdlib must support the same python versions as orchestrator-core.
Exceptions to this rule are:
- A new python version is released: nwa-stdlib should support the new version before orchestrator-core does
- Support for an old python version is dropped: nwa-stdlib should drop the python version after orchestrator-core does
Metadata
Release files for nwa-stdlib 1.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nwa_stdlib-1.14.0.tar.gz | 33.2 kB | With provenance | Details for nwa_stdlib-1.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nwa_stdlib-1.14.0-py3-none-any.whl | Python 3 | none | any | Details for nwa_stdlib-1.14.0-py3-none-any.whl |
Total release size: 64.9 kB
Release files / nwa_stdlib-1.14.0.tar.gz
| Download URL | nwa_stdlib-1.14.0.tar.gz |
|---|---|
| Size | 33.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7b2b95edd5c22f26857b98fea0c13f2844bf7523a1f93e783160d35aa2e8d86
|
|
BLAKE2b-256 checksum How to use checksums |
22d1ab2cbb88b6b1820cf4ac26ae7167eaccd336d0cfc281fdd5c80e0db24e6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 30, 2026.
Transparency logRelease files / nwa_stdlib-1.14.0-py3-none-any.whl
| Download URL | nwa_stdlib-1.14.0-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be00af310f5e7d11c57e03cb7a39ac22c38a125a57b8d9e207a6aabfacfd3710
|
|
BLAKE2b-256 checksum How to use checksums |
939dc3dc0f827696f58bc29db6d8e0e7baed0323f0866bff10a74dbd04cfc39f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 30, 2026.
Transparency logSecurity for nwa-stdlib 1.14.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nwa_stdlib-1.14.0.tar.gz
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 Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.