Skip to main content

Pluggable multi-threaded framework with inventory management to help operate collections of devices

Project description

Build Status Code style: black Coverage Status

Nornir

logo

Nornir is a pure Python automation framework intented to be used directly from Python. While most automation frameworks use their own Domain Specific Language (DSL) which you use to describe what you want to have done, Nornir lets you control everything from Python.

One of the benefits we want to highlight with this approach is the ease of troubleshooting, if something goes wrong you can just use your existing debug tools directly from Python (just add a line of import pdb & pdb.set_trace() and you're good to go). Doing the same using a DSL can be quite time consuming.

What Nornir brings to the table is that it takes care of dealing with your inventory and manages the job of dispatching the tasks you want to run against your nodes and devices. The framework provides a very simple way to write plugins if you aren't happy with the ones we ship. Of course if you have written a plugin you think can be useful to others, please send us your code and test cases as a pull request.

Install

Please note that Nornir requires Python 3.6.2 or higher. Install Nornir with pip.

pip install nornir

Development version

If you want to clone the repo and install it from there you will need to use poetry.

Documentation

Read the Nornir documentation online or review it's code here

Examples

You can find some examples and already made tools here

External Resources

Below you can find links to talks, blog posts, podcasts and other resources:

Bugs & New features

If you think you have bug or would like to request a new feature, please register a GitHub account and open an issue.

Contact & Support

While we are happy to help, the GitHub issues are intended for bugs and discussions about new features. If are struggling to get something to work you have two options:

  1. You can go to our discourse community and see if your problem has already been discussed there or post it if it hasn't.
  2. You can also head to our #nornir channel in the networktoCode Slack team.

Contributing to Nornir

If you want to help the project, the Contribution Guidelines is the best place to start.

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

Uploaded Source

Built Distribution

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

nornir-3.0.0-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file nornir-3.0.0.tar.gz.

File metadata

  • Download URL: nornir-3.0.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for nornir-3.0.0.tar.gz
Algorithm Hash digest
SHA256 f87dec4d18d46102969272986bf4d7fab8cef212e2ad54a039f8e249f3e4c975
MD5 a6b2ebffca268b997f7a8e89b526cae3
BLAKE2b-256 eee77c5d8965a5adb742cc2129060fdafef4993e6346d97464713a92b53ba560

See more details on using hashes here.

File details

Details for the file nornir-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: nornir-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for nornir-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f77a7677850e7632ea9ae35a86f9b09aae353d836bd3e42faae53f17f8b328
MD5 d0400180ee17f68e545aebf5721d4e7c
BLAKE2b-256 01559be1ed69be6aa0274646e49d72c9791f4a512008c3928f8753c6f7c0f886

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