python-nornir-rich
Port variant py310
Summary Pretty display functions for nornir (3.10)
Package version 0.1.6
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 13 JUN 2023, 11:42:56 UTC
Port created 07 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)
PY310 ON Build using Python 3.10 PY311 OFF Build using Python 3.11
Package Dependencies by Type
Build (only) python-pip:single:py310
autoselect-python:single:standard
Build and Runtime python310:single:standard
Runtime (only) python-nornir:single:py310
python-rich:single:py310
Download groups
main mirror://PYPIWHL/72/33/0c7aeece275ec17869d1bef10dd2f9e31ef8e8f23a491c96abe45e87207a
Distribution File Information
221d72fe16234a414bcf611610ca269407dd56fb33714f027e3cf8739db8717f 5664 nornir_rich-0.1.6-py3-none-any.whl
Ports that require python-nornir-rich:py310
python-netbox-network-importer:py310 Tool to import network into Netbox (3.10)