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.0.tar.gz (212.2 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.0-py3-none-any.whl (268.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netsight_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 212.2 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.0.tar.gz
Algorithm Hash digest
SHA256 494f097720fc723cea3231250a11bc05d4932c275caf41aa24f37d4392201350
MD5 77831b0b8870f4ff5332b2841fb9b3de
BLAKE2b-256 36bc45b145799473b460cbe58f0b9acbe7cd370061c7668bfad0728d1902f2b7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: netsight_sdk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 268.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e8fd50b5ca642923364afe5e3d44313d50b88e1b069999239a539ba05770547
MD5 c16f347c50ff942cbcf16a7671cd8ddb
BLAKE2b-256 03f0548c564947cbd0fccd5824d900885184a9b04a56162aadc20dd68e99109b

See more details on using hashes here.

Provenance

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