Skip to main content

Scrapli's plugin for Nornir

Project description

Supported Versions PyPI version Weekly Build Code Style License: MIT

nornir_scrapli


Documentation: https://scrapli.github.io/nornir_scrapli

Source Code: https://github.com/scrapli/nornir_scrapli

Examples: https://github.com/scrapli/nornir_scrapli/tree/master/examples


nornir_scrapli -- scrapli's plugin for nornir

Key Features:

  • Easy: It's easy to get going with 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! All of scrapli is built with speed in mind, but if you really feel the need for speed, check out the ssh2 transport plugin to take it to the next level!
  • Great Developer Experience: scrapli 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 has lots of tests! Unit tests cover the basics, regularly ran functional tests connect to virtual routers to ensure that everything works IRL!
  • Pluggable: scrapli provides a pluggable transport system -- don't like the currently available transports, simply extend the base classes and add your own! Need additional device support? Create a simple "platform" in scrapli_community to easily add new device support!
  • But wait, there's more!: Have NETCONF devices in your environment, but love the speed and simplicity of scrapli? You're in luck! Check out scrapli_netconf!

Requirements

MacOS or *nix1, Python 3.7+

1 Although many parts of scrapli do run on Windows, Windows is not officially supported

Installation

pip install nornir-scrapli

See the docs for other installation methods/details.

A simple Example

from nornir import InitNornir
from nornir_scrapli.tasks import send_command


nr = InitNornir(config_file="nornir_data/config.yaml")
command_results = nr.run(task=send_command, command="show version")

print("send_command result:")
print(command_results["iosxe-1"].result)

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

nornir_scrapli-2023.1.30.post1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

nornir_scrapli-2023.1.30.post1-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file nornir_scrapli-2023.1.30.post1.tar.gz.

File metadata

File hashes

Hashes for nornir_scrapli-2023.1.30.post1.tar.gz
Algorithm Hash digest
SHA256 bfb2ed406a9de2384cbb167266b4b9fb2b6c0ebc79dbba4416b1240c879f9b1b
MD5 75dc562a8c3661df22f930104a0ed388
BLAKE2b-256 4ebc85f23f8da920fc1a142d10af201007ed3bb53c49a26871020d3b9ff6480e

See more details on using hashes here.

File details

Details for the file nornir_scrapli-2023.1.30.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for nornir_scrapli-2023.1.30.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 d048c409ce49ee7fc8fe380e9eab086682fc70059694e1edeb9d8113a3a1ffd2
MD5 6f27332538b02f827c530ffa4aacdb1b
BLAKE2b-256 854c4023dece2b739d52774bf5f9e5e9ee8a83e2e5546208a11b83d64e9da7c0

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