Skip to main content

nornir_rich

Install

pip install nornir-rich

Usage

Features

  • Print functions
    • print_result
    • print_failed_hosts
    • print_inventory
  • Processors
    • progressbar

Print example

from nornir_rich.functions import print_result

results = nr.run(
    task=hello_world
)

print_result(results)
print_result(results, vars=["diff", "result", "name", "exception", "severity_level"])

Progress bar example

from time import sleep
from nornir_rich.progress_bar import RichProgressBar


def random_sleep(task: Task) -> Result:
    delay = randrange(10)
    sleep(delay)
    return Result(host=task.host, result=f"{delay} seconds delay")


nr_with_processors = nr.with_processors([RichProgressBar()])
result = nr_with_processors.run(task=random_sleep)

Images

Print Inventory

Print inventory

Print Result

Print Result

Progress Bar

Progress Bar

More examples

Metadata

Release files for nornir-rich 0.3.1

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-rich 0.3.1
File Size Uploaded Provenance Actions
nornir_rich-0.3.1.tar.gz 8.5 kB Without provenance Details for nornir_rich-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nornir-rich 0.3.1
File Interpreter ABI Platform Actions
nornir_rich-0.3.1-py3-none-any.whl Python 3 none any Details for nornir_rich-0.3.1-py3-none-any.whl

Total release size: 15.1 kB

Release files / nornir_rich-0.3.1.tar.gz

Download URL nornir_rich-0.3.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6f06f5317283f8a046cb5f4280bf0eaf8903aca418d8badb0acfe0c39d33458f
BLAKE2b-256 checksum
How to use checksums
a5beafccecd995ca1b43422b176e8cf49b9f158a504b1b7a6783edacdc91fb13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / nornir_rich-0.3.1-py3-none-any.whl

Download URL nornir_rich-0.3.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6a01c56798c0becf9c4da9b2e3fc52f17228ed19d1e8e91d622579f33cb4495
BLAKE2b-256 checksum
How to use checksums
6187b87192e933709b36733e424aa440a3109051c6ce3a9dc9795216d47e3f15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for nornir-rich 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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