Skip to main content

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

Project description

NetSight

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.0.0.tar.gz (179.1 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.0.0-py3-none-any.whl (224.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netsight_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 179.1 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.0.0.tar.gz
Algorithm Hash digest
SHA256 1efd6d8b437f6a6b03020e37300b0602dba3f106dab47015792dca058c6325fc
MD5 eaff61359d72ecb16b3806bc91d5c64e
BLAKE2b-256 aed08561c1c3b2b0026b6954e088bcfc1397fae795296d891ecbdf7af954cf41

See more details on using hashes here.

Provenance

The following attestation bundles were made for netsight_sdk-1.0.0.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.0.0-py3-none-any.whl.

File metadata

  • Download URL: netsight_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 224.0 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aef80c721b20a3eb2d28251416f487531307ca681702bc51839e3fbaa5b5a0ad
MD5 cd5c5ecf906c78cfbf47756ae3238c67
BLAKE2b-256 a249aa724af877b2a9e144f3d2c5ef3ef0b13ec0c45ea6c20572366e339259ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for netsight_sdk-1.0.0-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