Registry / http-networking / netconf-console2

netconf-console2

JSON →
library3.0.1pypypiunverified

Netconf client CLI tool and interactive console for managing NETCONF-enabled devices. Version 3.0.1 provides support for YANG-based operations, SSH and TLS transport, and an interactive shell. Release cadence is irregular.

pip install netconf-console2
INSTALL
IMPORT
SIG · NETCONF-CONSOLE2
N
netconf-console2
http-networkingpythonv3.0.1
Install
3.6s avg
Import
Disk
53MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 54.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.6s · import 0.000s · 55MB
53MB installed
● package 53MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

connect
from netconf_console import connect
from netconf.console import connect

Connect to a NETCONF device and retrieve server capabilities.

import os from netconf.console import connect host = os.environ.get('NETCONF_HOST', '192.168.1.1') port = int(os.environ.get('NETCONF_PORT', '830')) username = os.environ.get('NETCONF_USER', 'admin') password = os.environ.get('NETCONF_PASS', 'admin') with connect(host=host, port=port, username=username, password=password) as session: capabilities = session.server_capabilities print('Connected. Capabilities:', capabilities)
netconf-console2 --version
Debug
Known issues
breakingVersion 3.0.0 dropped support for Python 2 and changed import paths (netconf.console instead of netconf_console).
fix
Update imports to use netconf.console; Python 2 users must stay on <3.0.0.
affects: >=3.0.0
deprecatedThe 'get_config' method's 'source' parameter now expects a string like 'running' instead of a dictionary. Old contract { 'source': 'running' } is deprecated.
fix
Pass source as a plain string, e.g., session.get_config('running').
affects: >=3.0.0
gotchaWhen using 'connect' inside a 'with' block, the session is automatically closed. Reusing the session after exiting the block raises an error.
fix
Perform all NETCONF operations within the 'with' block.
affects: all
Upgrade
Version history
3.0.1latest on PyPI · released May 17, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
netconf-console2 — pip install netconf-console2 · libregistry