No project description provided
Project description
Nornir Nuts Plugin
This repository contains Nornir plugins designed for use with Nuts.
CachedThreaded Runner
The CachedThreadedRunner
is an extension of the threaded runner from Nornir. Task results are cached in a class variable, and if the cache contains the task result, the cached result is returned. Be aware of the limitations: significant memory consumption is possible, and the results are shared. Therefore, modifying a Result object can lead to side effects.
pip install nornir-nuts
InitNornir(
runner={
"plugin": "cachedThreaded",
"options": {
"num_workers": 100,
},
},
inventory={
"plugin": "SimpleInventory",
"options": {
"host_file": "tests/demo_inventory/hosts.yaml",
"group_file": "tests/demo_inventory/groups.yaml",
},
},
)
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
nornir_nuts-0.1.0.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file nornir_nuts-0.1.0.tar.gz
.
File metadata
- Download URL: nornir_nuts-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a7270ef0e9940fec827867a5beb951e740dc8803385a5d688a2254bdc617ae |
|
MD5 | 6253c8beee7dd3bbe88a05d138bad31e |
|
BLAKE2b-256 | 038184e9b6dffb2a2d4d34a8dea06204bf6615629ca64d0a06506431ec5656f5 |
File details
Details for the file nornir_nuts-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: nornir_nuts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a6caa4416720ea34852bd4b4b094e8d003f9904be73fa37c7df9fcc08b01e72 |
|
MD5 | 1a836ca0557c1fb49e94ae6e75449158 |
|
BLAKE2b-256 | 99bd88edf334170ba6671740296e28c48b1e9ef21d3a05f4c59a96c8db7693d5 |