Skip to main content

The NWA-stdlib module.

Project description

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.

Step 1:

Create and activate a python3 virtualenv.

Step 2:

Install flit to enable you to develop on this repository:

pip install flit

Step 3:

To install all development dependencies:

flit install --deps develop

All steps combined into 1 command:

python -m venv .venv && source .venv/bin/activate && pip install -U pip && pip install flit && flit install --deps develop

Unit tests

Activate the virtualenv and run the unit tests with:

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.

Bump version

Depending on the feature type, run bumpversion (patch|minor|major) to increment the version you are working on. For example to update the increment the patch version use

bumpversion patch

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

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

nwa_stdlib-1.11.2.tar.gz (33.9 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.11.2-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nwa_stdlib-1.11.2.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nwa_stdlib-1.11.2.tar.gz
Algorithm Hash digest
SHA256 993df925368022c615b150e89cb23b33378f1ee07c8339a011d6536ca0760f05
MD5 d2a88f399f31a4a42930f8e9773a532c
BLAKE2b-256 704920c0d05b1a1babf535eec3a07baa4cc41be2162b491c1dd99f614a43ba54

See more details on using hashes here.

Provenance

The following attestation bundles were made for nwa_stdlib-1.11.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.11.2-py3-none-any.whl.

File metadata

  • Download URL: nwa_stdlib-1.11.2-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nwa_stdlib-1.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf8dbf38542914d19fb9dd26c5780bf7d2948dbdb8818ebb88e8e8aad418d9e3
MD5 b02050d2138311750ecfe50074bb3ca1
BLAKE2b-256 86d10b08018013b7ebad05ba35c40c90b939a168c8327310f7bd2a738b33382a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nwa_stdlib-1.11.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page