A Python NETCONF client
Project description
netconf_client
A NETCONF client for Python 3.8+.
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-3.6.0.tar.gz
(14.8 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-3.6.0.tar.gz.
File metadata
- Download URL: netconf_client-3.6.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6281700784ea9758af36b35461a3fd7bc518ba0e0093499552e8fcf841b0bb7d
|
|
| MD5 |
83f795619b243db176687996859d8c94
|
|
| BLAKE2b-256 |
1c1e6626086d8333889b13f55e782ba5c5ea0909950fdad6215b2c5c4fd7e4d0
|
File details
Details for the file netconf_client-3.6.0-py3-none-any.whl.
File metadata
- Download URL: netconf_client-3.6.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b36797f07ffa6790a723c571ad83061fd4520c2f6c8bad6afdd84d2ae84af14
|
|
| MD5 |
0cc55e5387708a4d9df2fb870d4c721a
|
|
| BLAKE2b-256 |
1ebbc6aa8f901fdb114a26feca8aa3a654997eb3097a5ff4ed33896b0e3ccb70
|