Skip to main content

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",
        },
    },
)

Metadata

Release files for nornir-nuts 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nornir-nuts 0.1.0
File Size Uploaded
nornir_nuts-0.1.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nornir-nuts 0.1.0
File Interpreter ABI Platform
nornir_nuts-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / nornir_nuts-0.1.0.tar.gz

Download URL nornir_nuts-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
26a7270ef0e9940fec827867a5beb951e740dc8803385a5d688a2254bdc617ae
BLAKE2b-256 checksum
How to use checksums
038184e9b6dffb2a2d4d34a8dea06204bf6615629ca64d0a06506431ec5656f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / nornir_nuts-0.1.0-py3-none-any.whl

Download URL nornir_nuts-0.1.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a6caa4416720ea34852bd4b4b094e8d003f9904be73fa37c7df9fcc08b01e72
BLAKE2b-256 checksum
How to use checksums
99bd88edf334170ba6671740296e28c48b1e9ef21d3a05f4c59a96c8db7693d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page