Fast, flexible, sync/async, Python 3.6+ NETCONF client built on scrapli
Project description
scrapli_netconf
Documentation: https://scrapli.github.io/scrapli_netconf
Source Code: https://github.com/scrapli/scrapli_netconf
Examples: https://github.com/scrapli/scrapli_netconf/tree/master/examples
scrapli_netconf is a NETCONF driver built on top of scrapli, giving you all the scrapli behaviour you know and love, but for NETCONF connections.
Key Features:
- Easy: Just like scrapli, scrapli_netconf is easy to get going with, and looks and feels just like "normal" scrapli -- check out the documentation and example links above, and you'll be connecting to devices in no time.
- Fast: Do you like to go fast? Of course you do! scrapli_netconf supports all of the ssh transports that
scrapli core supports; check out the
ssh2
transport if you've got the need for speed! - Great Developer Experience: scrapli_netconf has great editor support thanks to being fully typed; that plus thorough docs make developing with scrapli a breeze.
- Well Tested: Perhaps out of paranoia, but regardless of the reason, scrapli_netconf has lots of tests! Unit tests cover the basics, regularly ran functional tests connect to virtual routers to ensure that everything works IRL!
- Concurrency on Easy Mode: Nornir's scrapli plugin gives you all the normal benefits of scrapli plus all the great features of Nornir.
Requirements
MacOS or *nix1, Python 3.7+
scrapli_netconf's only requirements are scrapli
, of course, and lxml
.
1 Although many parts of scrapli do run on Windows, Windows is not officially supported
Installation
pip install scrapli_netconf
See the docs for other installation methods/details.
A Simple Example
from scrapli_netconf.driver import NetconfDriver
my_device = {
"host": "172.18.0.13",
"auth_username": "scrapli",
"auth_password": "scrapli",
"auth_strict_key": False,
"port": 830
}
conn = NetconfDriver(**my_device)
conn.open()
response = conn.get_config(source="running")
print(response.result)
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
Built Distribution
Hashes for scrapli_netconf-2022.7.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 421ba4b34c0864c3fbb61f25625adafa6ec18f3abae432bb1f3d963af4a3f7a0 |
|
MD5 | 46e15805cd60ff87d8e110e0f020354f |
|
BLAKE2b-256 | f1999758ad7e58638b04bdc4a30e89ee616c550e255c95fe4aba580d1261317a |
Hashes for scrapli_netconf-2022.7.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 534fb9f9209d27b9b6f09f674c38b50ffe5bc15a75237d3fbb6799dbb4c5cad6 |
|
MD5 | e486fe704d5e4ff8c7ee944ce8de95c8 |
|
BLAKE2b-256 | 55a41647eef51a21b26aadbc3f64d5b7a6360ba32bfe1e6a1da50b5e79733a58 |