Python SDK for NetPulse API 0.4.0+ Network Automation Platform
Project description
Version Compatibility
| SDK Version | NetPulse API Version | Status |
|---|---|---|
| 0.4.x | 0.4.0+ | Recommended |
| 0.3.x | 0.4.0 | Legacy |
IMPORTANT: This version of the SDK (0.4.x) is strictly aligned with NetPulse API 0.4.0+. It supports advanced features like per-request MongoDB audit modes.
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
Release history Release notifications | RSS feed
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.4.0.tar.gz
(38.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netpulse_sdk-0.4.0.tar.gz.
File metadata
- Download URL: netpulse_sdk-0.4.0.tar.gz
- Upload date:
- Size: 38.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7c2c93f8865f4277dd79a4ee601a61cf76126e7d9d98ff61a0681eb4f30664b
|
|
| MD5 |
865d5af35fcfa6485e74755f7fe2faaa
|
|
| BLAKE2b-256 |
b19b23e31deb8ea51cbab415266c1c24f3b4942bb21601e805ea7487733f8405
|
File details
Details for the file netpulse_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: netpulse_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b57a98f31a6f5c8b5509ac0d9fe0d7169d69c8a6922a63be2fac9072a382763
|
|
| MD5 |
6174d17e9403c3014acedb482e5e227d
|
|
| BLAKE2b-256 |
ea8ea5ea845f4fa7b0f605c277fc00b86d2ccec7f59f752b5cc09eaa42c8a8e4
|