Skip to main content

A Python NETCONF client

Project description

Build Status PyPI version Coverage Status

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_client does 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


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.5.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netconf_client-3.5.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file netconf_client-3.5.0.tar.gz.

File metadata

  • Download URL: netconf_client-3.5.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for netconf_client-3.5.0.tar.gz
Algorithm Hash digest
SHA256 61d4f5b6119650bfaec06d0b633015de3e6ff835495667efaa4d5f32e7cf6757
MD5 5016635066fec2eac08a19db73b69807
BLAKE2b-256 863abc9ca9f539bfdd742cc16f322e2cc0530c40a0be27699b74be397f04ee05

See more details on using hashes here.

File details

Details for the file netconf_client-3.5.0-py3-none-any.whl.

File metadata

  • Download URL: netconf_client-3.5.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.12.9

File hashes

Hashes for netconf_client-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36b950dbc371aeefa5a3054b975f6daac3f176c5c739213fa915dbf384948ada
MD5 5c90cdf3f95032b495efb4cc5891d7d7
BLAKE2b-256 8795d93a1928dbc6b1afb91d1a55d94cf3148243d77528fad13bb7f8103783f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page