nxapi-plumbing
A low-level library for managing Cisco devices through NX-API using JSON-RPC and XML.
Examples:
Creating device object using JSON-RPC.
from nxapi_plumbing import Device
device = Device(
api_format="jsonrpc",
host="device.domain.com",
username="admin",
password="password",
transport="https",
port=8443,
)
JSON-RPC single command that returns structured data.
output = device.show("show hostname")
print(output)
Output would be the response from the command
{'hostname': 'nxos.domain.com'}
JSON-RPC list of commands
output = device.show_list(["show hostname", "show ntp status"])
pprint(output)
Output would be a list of responses (list of dictionaries)
[
{
"command": "show hostname",
"result": {
"hostname": "nxos.domain.com"
}
},
{
"command": "show ntp status",
"result": {
"distribution": "Distribution : Disabled",
"operational_state": "Last operational state: No session"
}
}
]
Metadata
Release files for nxapi-plumbing 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nxapi_plumbing-0.5.2.tar.gz | 11.5 kB | Without provenance | Details for nxapi_plumbing-0.5.2.tar.gz |
Release files / nxapi_plumbing-0.5.2.tar.gz
| Download URL | nxapi_plumbing-0.5.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f54f9983f023bd75b60acd907ff47f559541cc2b98f4fa638b8585ca0de0fb5
|
|
BLAKE2b-256 checksum How to use checksums |
4d5f4c1d7dfbf987d3e4725957d0791d3c891c25a472bcee66ab20ebc4beb326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for nxapi-plumbing 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.