Skip to main content

Network Automation Standard Library

pypi_version Supported python versions codecov

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 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.

First ensure you have pre-commit installed. It is recommended to install it outside the virtualenv. On Linux and Mac, pre-commit is available in most package managers. Alternatively you can install it globally with pipx.

Once pre-commit is installed, go into the project root and enable it:

pre-commit install

This should output pre-commit installed at .git/hooks/pre-commit. The next time you run git commit the pre-commit hooks will validate your changes.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nwa_stdlib-1.12.2.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nwa_stdlib-1.12.2-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file nwa_stdlib-1.12.2.tar.gz.

File metadata

  • Download URL: nwa_stdlib-1.12.2.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nwa_stdlib-1.12.2.tar.gz
Algorithm Hash digest
SHA256 c2dcf98a40d36d3bd7cb8aa7db2e60ba9cd679c736691f9ad14cb48eeefc2ad3
MD5 510d5e89fcc02fdb1d8165ad3c19316c
BLAKE2b-256 8593ab7e6bee87ffd16fa488a6c509a378492cd8efb76a5ed84ac2f0c1302e3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nwa_stdlib-1.12.2.tar.gz:

Publisher: publish-release.yaml on workfloworchestrator/nwa-stdlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nwa_stdlib-1.12.2-py3-none-any.whl.

File metadata

  • Download URL: nwa_stdlib-1.12.2-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nwa_stdlib-1.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba87e1e8fe569fa43fc617100b800700738396f1ca8a541778b10e0196df586
MD5 59d5ffe4e24c5c09e05159aaf9801573
BLAKE2b-256 4e31461bd5880ffc4b3fd6fc045901caf03a4dfc096acd9cb7490850d9671f6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nwa_stdlib-1.12.2-py3-none-any.whl:

Publisher: publish-release.yaml on workfloworchestrator/nwa-stdlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.12.2 This release

2 files

1.12.1

2 files

1.12.0

2 files

1.11.2

2 files

1.11.1

2 files

1.11.0

2 files

1.10.5

2 files

1.10.4

2 files

1.10.2

2 files

1.10.1

2 files

1.10.0

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

1 file

1.7.0

2 files

1.6.0

2 files

1.5.4

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.10

2 files

1.4.9

2 files

1.4.8

2 files

1.4.7

2 files

1.4.6

2 files

1.4.5

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

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