Skip to main content

Python Netgear Switch Interface Library

Query and control all your Netgear switches — SNMP (managed), NSDP and HTTP web-UI (Plus) — behind one model-driven Python API and the ngsw CLI.

Status: early development. See docs/superpowers/specs/ for the design and docs/superpowers/plans/ for the implementation plans.

Installation

pip / uv (PyPI)

pip install python-netgear-switch-library
# or: uv add python-netgear-switch-library

Optional extras: [async] (pysnmp), [http] (httpx). The synchronous SNMP transport shells out to the net-snmp command-line tools, a system package (not a Python dependency):

sudo apt install snmp   # provides snmpget/snmpbulkwalk/snmpset

Debian / Ubuntu (apt)

Signed .deb packages for Debian trixie and sid are published to a GitHub Pages apt repository. Pick the line matching your suite:

sudo install -d -m0755 /etc/apt/keyrings
curl -fsSL https://mithro.github.io/python-netgear-switch-library/netgear-switch.gpg \
  | sudo tee /etc/apt/keyrings/netgear-switch.gpg > /dev/null

# trixie:
echo "deb [signed-by=/etc/apt/keyrings/netgear-switch.gpg] https://mithro.github.io/python-netgear-switch-library/trixie/ ./" \
  | sudo tee /etc/apt/sources.list.d/netgear-switch.list
# sid:
echo "deb [signed-by=/etc/apt/keyrings/netgear-switch.gpg] https://mithro.github.io/python-netgear-switch-library/sid/ ./" \
  | sudo tee /etc/apt/sources.list.d/netgear-switch.list

sudo apt update
sudo apt install python3-netgear-switch-library

This installs the netgear_switch library and the ngsw CLI, and pulls in the snmp net-snmp CLI tools automatically.

Either way, once installed run ngsw --help to see available commands.

Versioning

This project is a rolling release: the version is derived from git (0.0.postN / X.Y.postN), and every merge to main publishes a new version to PyPI and the apt repo. There are no tags or manual version bumps.

Development

uv sync --all-extras
uv run pytest
uv run ruff check

License

Apache-2.0.

Download files

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

Source Distribution

python_netgear_switch_library-0.0.post156.tar.gz (445.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file python_netgear_switch_library-0.0.post156.tar.gz.

File metadata

File hashes

Hashes for python_netgear_switch_library-0.0.post156.tar.gz
Algorithm Hash digest
SHA256 74382f834ae6269e4176341f7ad2887eda2b7ad32491a9cb1cb50caa4110c9bb
MD5 f16b0ce254b605a56bab15426c9e194c
BLAKE2b-256 2b1b86d7545a17e70da4f0d6bdc40728fb6e15fa49e5c03fc25f64904e976053

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_netgear_switch_library-0.0.post156.tar.gz:

Publisher: publish-pypi.yml on mithro/python-netgear-switch-library

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

File details

Details for the file python_netgear_switch_library-0.0.post156-py3-none-any.whl.

File metadata

File hashes

Hashes for python_netgear_switch_library-0.0.post156-py3-none-any.whl
Algorithm Hash digest
SHA256 173e80961f3e50fa74623315b980a0b26235fd9a9d0f8d3548a49ff5f8ae885e
MD5 d64c975d32a6dfcc2dea6037075d983f
BLAKE2b-256 86117e4da814d9d3a39f33dc53d6e8a3afd2ba3623295e0d2ed3b20af28d1720

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_netgear_switch_library-0.0.post156-py3-none-any.whl:

Publisher: publish-pypi.yml on mithro/python-netgear-switch-library

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