Skip to main content

Fighting fire with fire

Project description

Build Status Code style: black Coverage Status

Nornir

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

While Nornir still supports Python 2.7 the recommended version is 3.6. Install it with pip.

pip install nornir

Documentation

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

Examples

You can find some examples and already made tools here

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 but don't believe its due to a bug in Nornir, the place to ask questions is in the #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-2.0.0b2.tar.gz (28.0 kB view details)

Uploaded Source

File details

Details for the file nornir-2.0.0b2.tar.gz.

File metadata

  • Download URL: nornir-2.0.0b2.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for nornir-2.0.0b2.tar.gz
Algorithm Hash digest
SHA256 894b3d23c1d27475a132c3fc51038416fe74e4974c24986d7641f157b854af5d
MD5 eb6702ee3b5c437e47a386a95501fde2
BLAKE2b-256 95622cdfeefb4759974b2202479c3023da9fa849aa9800760563ff836fe895fa

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