python-nornir-rich
Port variant v12
Summary Pretty display functions for nornir (3.12)
BROKEN
Package version 0.2.0
Homepage https://github.com/InfrastructureAsCode-ch/nornir_rich
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v11
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 07 SEP 2024, 17:00:23 UTC
Port created 08 JAN 2023, 04:18:24 UTC
Subpackage Descriptions
single # nornir_rich ## Install ```bash pip install nornir-rich ``` ## Usage Features - Print functions - `print_result` - `print_failed_hosts` - `print_inventory` - Processors - `progressbar` ### Print example ```python 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 ```python 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]
Configuration Switches (platform-specific settings discarded)
PY311 OFF Build using Python 3.11 PY312 ON Build using Python 3.12
Package Dependencies by Type
Build (only) python312:dev:std
python-pip:single:v12
autoselect-python:single:std
Build and Runtime python312:primary:std
Runtime (only) python-nornir:single:v12
python-rich:single:v12
Download groups
main mirror://PYPIWHL/f6/41/343c6e5c59921d14f656ca5aca5c700dcd7ab40e4b9c9cf24f8aa349adfd
Distribution File Information
19c48ec3c8ea0cb47c84a1bcb65a4a380f814265cbaec809dfd064c220e68b07 5656 nornir_rich-0.2.0-py3-none-any.whl
Ports that require python-nornir-rich:v12
python-netbox-network-importer:v12 Tool to import network into Netbox (3.12)