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.3.tar.gz (37.5 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.3-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netpulse_sdk-0.3.3.tar.gz
  • Upload date:
  • Size: 37.5 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.3.tar.gz
Algorithm Hash digest
SHA256 bf4d42badb10d4df949780d9f9c4a5e00ec096aed56a38503d960e98981f3ec6
MD5 df6c5a7dd89ffa8eb056ffdf4f003241
BLAKE2b-256 643428634dd4a1463798710c9251e8ffe682bf2bb5276eb0b3d4555dd158c514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netpulse_sdk-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 32.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 95a313017facf56b37d798e7c57db4a643baa9311e4bced89d45d750f694ce2a
MD5 9ac1bae4ad4792707ee36982774014d6
BLAKE2b-256 de16b09e7ff3c90aa5f724d773692310495e89dccbc787beaf3615bc9a79fff2

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