Skip to main content

Python SDK for NetPulse API 0.4.0+ Network Automation Platform

Project description

Version Compatibility

SDK Version NetPulse API Version Status
0.3.x 0.4.0+ Recommended
0.2.x 0.3.x Legacy

IMPORTANT: This version of the SDK (0.3.x) is strictly aligned with NetPulse API 0.4.0. It uses stdout, stderr, and ok as standard fields.

Installation

pip install netpulse-sdk

local-install

pip install -e .

NetPulse SDK

Python SDK for NetPulse Network Automation Platform.

Quick Start

from netpulse_sdk import NetPulseClient

# Initialize client
client = NetPulseClient(
    base_url="http://localhost:9000",
    api_key="your-api-key",
)

# Query device (Recommended pattern)
job = client.collect(
    devices="10.1.1.1", 
    command="show version",
    driver="netmiko",
    connection_args={"device_type": "cisco_ios", "username": "admin", "password": "..."}
)

if job: # Uses new __bool__ feature to check all_ok
    result = job[0] # Prefer index over .first()
    print(f"Output: {result.stdout}")

# Push configuration
job = client.run(devices="10.1.1.1", config=["hostname ROUTER-01"]).raise_on_error()
print("Configuration success")

Features

  • Batch Execution: Execute commands on multiple devices simultaneously
  • Configuration Push: Push configuration changes to network devices
  • Multiple Drivers: Support for netmiko, napalm, pyeapi, and paramiko
  • Progress Monitoring: Track job progress in real-time
  • Error Handling: Comprehensive error handling with detailed error messages

Supported Drivers

Driver Use Case
netmiko Network devices (Cisco, HP, Huawei, Juniper)
paramiko Linux servers
pyeapi Arista (eAPI)
napalm Multi-vendor unified interface

Documentation

License

MIT

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

netpulse_sdk-0.3.1.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

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

netpulse_sdk-0.3.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file netpulse_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: netpulse_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for netpulse_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 956fba816f14ad60b0d5945565d4478b15eff0c9c98231683b3f98b369188d58
MD5 2cd6a82064a6ec26d285b6424d435162
BLAKE2b-256 c9fe1ea3616d1dd3261bd75882750c8a69c6109d20219a4092f16e8a224c254c

See more details on using hashes here.

File details

Details for the file netpulse_sdk-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: netpulse_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for netpulse_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17bed537fd0055edf5789942a16c0ae5a4efeb70a09f1724e31a7dc19c9befb2
MD5 7d45267043451f64ac544a17d2f14d1f
BLAKE2b-256 f8d240dda75eed3de61a6ea0a7c4ad1431debac40c6e9ce96f30b1febc0ec740

See more details on using hashes here.

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