python-nornir-rich
Port variant py311
Summary Pretty display functions for nornir (3.11)
Package version 0.1.5
Homepage https://github.com/InfrastructureAsCode-ch/nornir_rich
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 07 JAN 2023, 04:18:24 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 OFF Build using Python 3.10 PY311 ON Build using Python 3.11
Package Dependencies by Type
Build (only) python-pip:single:py311
autoselect-python:single:standard
Build and Runtime python311:single:standard
Runtime (only) python-nornir:single:py311
python-rich:single:py311
Download groups
main mirror://PYPIWHL/7b/8d/9462e0fff8798d3ea6125e791c8c67e39db18dda2a831c6d874ffd4a9a38
Distribution File Information
605ff2ffdae504e973b596206ffa01a366a0400b8e937aba5a575d42277d9d28 5042 nornir_rich-0.1.5-py3-none-any.whl
Ports that require python-nornir-rich:py311
python-netbox-network-importer:py311 Tool to import network into Netbox (3.11)