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)
Metadata
Release files for netconf-client 3.6.0
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 |
|---|---|---|---|---|
| netconf_client-3.6.0.tar.gz | 14.8 kB | Without provenance | Details for netconf_client-3.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netconf_client-3.6.0-py3-none-any.whl | Python 3 | none | any | Details for netconf_client-3.6.0-py3-none-any.whl |
Total release size: 31.6 kB
Release files / netconf_client-3.6.0.tar.gz
| Download URL | netconf_client-3.6.0.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6281700784ea9758af36b35461a3fd7bc518ba0e0093499552e8fcf841b0bb7d
|
|
BLAKE2b-256 checksum How to use checksums |
1c1e6626086d8333889b13f55e782ba5c5ea0909950fdad6215b2c5c4fd7e4d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / netconf_client-3.6.0-py3-none-any.whl
| Download URL | netconf_client-3.6.0-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b36797f07ffa6790a723c571ad83061fd4520c2f6c8bad6afdd84d2ae84af14
|
|
BLAKE2b-256 checksum How to use checksums |
1ebbc6aa8f901fdb114a26feca8aa3a654997eb3097a5ff4ed33896b0e3ccb70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for netconf-client 3.6.0
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.