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.4.tar.gz (38.4 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.4-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netpulse_sdk-0.3.4.tar.gz
  • Upload date:
  • Size: 38.4 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.4.tar.gz
Algorithm Hash digest
SHA256 1cd20c1351ab36e6bbc9ca3f4511495cea750d0310009d8d03bebe752d2a8dc5
MD5 bb2f880efb7459a5d5cd83ba227531da
BLAKE2b-256 af1d49983047b6ed5765fccb81dae87adcb826a77d0c0bfdfa70ebaca16023b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netpulse_sdk-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 33.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c2458f368e0287f511604ecebdd684ab8be911456973b74fa992bafeb5249825
MD5 ac5d0a02546db27699e5229e356bf6a6
BLAKE2b-256 648b7d4440dbd2d2be4c68c6eeb07fa02fc1aa281ff1ef35f62ec1217a68080e

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