A Python NETCONF client
Project description
netconf_client
A NETCONF client for Python 3.6+.
Basic Usage
from netconf_client.connect import connect_ssh
from netconf_client.ncclient import Manager
session = connect_ssh(host="localhost", port=830, username="admin", password="password")
mgr = Manager(session, timeout=120)
mgr.edit_config(config="""<config> ... </config>""")
print(mgr.get(filter="""<filter> ... </filter>""").data_xml)
More complete documentation can be found in the User Guide
Comparison with ncclient
Compared to ncclient,
netconf_client has several advantages:
- It's simpler (at the time of writing: 789 LoC vs 2889 LoC)
- lxml can be bypassed, which can work around issues where lxml breaks namespaces of e.g. identityrefs
- Support for TLS sessions
And a few disadvantages:
- Support for non-RFC-compliant devices isn't really included in
netconf_client netconf_clientdoes a lot less error checking and assumes you're sending valid messages to the server (however this can be useful for testing edge-case behavior of a server)
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
netconf_client-2.5.1.tar.gz
(14.2 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 netconf_client-2.5.1.tar.gz.
File metadata
- Download URL: netconf_client-2.5.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4b545a477b2419981d2e93867a8b7612890f4c9a365bbc6eee6def36b3abe3
|
|
| MD5 |
17dd70b17ed3f7c8ca681f773d373b84
|
|
| BLAKE2b-256 |
50f72092de4ebe9de75bb1c5e262a9d9cf2e1f583014f7ba68b8d13c964e511e
|
File details
Details for the file netconf_client-2.5.1-py3-none-any.whl.
File metadata
- Download URL: netconf_client-2.5.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b7c981306ca0552474f832626bdeba2d1f813e14596694965da30d4e5f36430
|
|
| MD5 |
8775c8b7f60ea193ae7fa036e851801f
|
|
| BLAKE2b-256 |
f5161731cc71edc30301c307d92b5c0724a8393750cfac9df2be8a8c9463cedb
|