Skip to main content

Read-only multi-vendor network device query SDK (core library)

Project description

NetSight

CI PyPI Python License

NetSight is a read-only, multi-vendor network device query SDK written in Python 3.14. It connects to devices over vendor-native APIs (currently PAN-OS XML; more vendors planned), enforces a deny-all command allowlist, and returns structured data parsed from declarative YAML parser specs.

For users

See the User Guide for installation, configuration, and day-to-day SDK usage — connecting to a device, running an operation, handling results, writing a template workflow.

from netsight import NetSight

ns = NetSight(config="config/devices.yaml")
device = ns.device("fw-01")
info = device.show_system_info()
routes = device.show_routing_table()

Installing the core SDK

# Minimal SDK install — just the device-query core
pip install netsight-sdk

# With the dev MCP server (for Claude Code contributors)
pip install 'netsight-sdk[dev]'

Or, to track the development branch directly:

pip install git+https://github.com/magicboxlab-ai/netsight-sdk.git

First-time setup

After installing the core SDK, run netsight init to create your device configuration file:

# Create ~/.config/netsight/devices.yaml with a template
netsight init

# Edit the file to add your devices, then verify
netsight doctor

The config file search order is: $NETSIGHT_CONFIG_DIR./config/ (cwd, for project-local dev workflows) → $XDG_CONFIG_HOME/netsight/~/.config/netsight/.

Installing vendor packs

The core SDK is vendor-agnostic. Vendor support ships as separate pack packages installed alongside the core. Use the netsight pack CLI to discover and install packs:

# List packs available in the bundled catalog
netsight pack list --available

# Install a pack
netsight pack install paloalto-firewall-xml

# Verify everything loaded correctly
netsight doctor

Packs can also be installed directly from their source repositories:

pip install git+https://github.com/magicboxlab-ai/netsight-packs-paloalto.git#subdirectory=packs/paloalto-firewall-xml

After installation, the pack is auto-discovered at startup via the netsight.packs entry-point group — no config change required.

See User Guide → Vendor packs for the full install and configuration flow.

For contributors

NetSight ships a purpose-built MCP server (netsight-dev) that exposes the codebase to Claude Code as structured resources and validation tools. The bootstrap flow for a new clone is documented end-to-end in the developer guide:

See Developer Guide → Getting Started for Development.

TL;DR:

git clone <repo-url> netsight
cd netsight
python3.14 -m venv .venv
source .venv/bin/activate
pip install -e .
netsight init --local # creates ./config/devices.yaml from the template
netsight doctor       # verifies the dev env end-to-end
claude                # approve the netsight-dev MCP server when prompted

The rest of the developer guide covers adding vendor packs, writing parser specs, custom types and transforms, registry wiring, self-documentation conventions, testing, and the release workflow.

Project layout at a glance

  • netsight/ — SDK source (pack registry, parsers, config management, security module, dev MCP server).
  • UNITTEST/ — pytest test suite (not tests/).
  • TOOLS/ — shell utilities (full_test_cycle.sh, security_check.sh).
  • docs/guides/ — user guide and developer guide.

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

netsight_sdk-1.1.1.tar.gz (212.9 kB view details)

Uploaded Source

Built Distribution

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

netsight_sdk-1.1.1-py3-none-any.whl (269.3 kB view details)

Uploaded Python 3

File details

Details for the file netsight_sdk-1.1.1.tar.gz.

File metadata

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

File hashes

Hashes for netsight_sdk-1.1.1.tar.gz
Algorithm Hash digest
SHA256 959b2ec67d1001c4c4772f7aaa5b1dfdef3f65edda6b1776e85f73aacf0bd1f4
MD5 867a54c85679968d0a40710dbdb1d4ae
BLAKE2b-256 da2ec5dffcb6387783cd66e9f2c979c57a1a4b9c94fb61594aeaca17fbfd69bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for netsight_sdk-1.1.1.tar.gz:

Publisher: release.yml on magicboxlab-ai/netsight-sdk

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

File details

Details for the file netsight_sdk-1.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for netsight_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65742c1b706117804b76011a4b207ce39e6f170e5ca3a71b4924c2d822c466da
MD5 690e1981301df12e8790e62159765b4b
BLAKE2b-256 4a9c34bdc670ef9db68b0cc04d0cd64390ddc9638e65257f686fa3bb3fd6cbfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for netsight_sdk-1.1.1-py3-none-any.whl:

Publisher: release.yml on magicboxlab-ai/netsight-sdk

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