# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-nornir-rich VERSION= 0.2.0 KEYWORDS= python VARIANTS= v12 v13 SDESC[v12]= Pretty display functions for nornir (3.12) SDESC[v13]= Pretty display functions for nornir (3.13) HOMEPAGE= https://github.com/InfrastructureAsCode-ch/nornir_rich CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/f6/41/343c6e5c59921d14f656ca5aca5c700dcd7ab40e4b9c9cf24f8aa349adfd DISTFILE[1]= nornir_rich-0.2.0-py3-none-any.whl:main DIST_SUBDIR= python-src DF_INDEX= 1 SPKGS[v12]= single SPKGS[v13]= single OPTIONS_AVAILABLE= PY312 PY313 OPTIONS_STANDARD= none VOPTS[v12]= PY312=ON PY313=OFF VOPTS[v13]= PY312=OFF PY313=ON DISTNAME= nornir_rich-0.2.0.dist-info GENERATED= yes [PY312].RUN_DEPENDS_ON= python-nornir:single:v12 python-rich:single:v12 [PY312].USES_ON= python:v12,wheel [PY313].RUN_DEPENDS_ON= python-nornir:single:v13 python-rich:single:v13 [PY313].USES_ON= python:v13,wheel [FILE:951:descriptions/desc.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] [FILE:124:distinfo] 19c48ec3c8ea0cb47c84a1bcb65a4a380f814265cbaec809dfd064c220e68b07 5656 python-src/nornir_rich-0.2.0-py3-none-any.whl