python 自动化框架_Nornir是一个纯Python自动化框架,可以直接从Python使用

68747470733a2f2f7472617669732d63692e6f72672f6e6f726e69722d6175746f6d6174696f6e2f6e6f726e69722e7376673f6272616e63683d646576656c6f7068747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c61636b2d3030303030302e73766768747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e6f726e69722d6175746f6d6174696f6e2f6e6f726e69722f62616467652e7376673f6272616e63683d646576656c6f70

Nornir

nornir_logo_02.jpg

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:

You can go to our discourse community and see if your problem has already been discussed there or post it if it hasn't.

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值