python-nornir-rich
| Port variant |
v14 |
| Summary |
Pretty display functions for nornir (3.14) |
| Package version |
0.3.0 |
| Homepage |
No known homepage |
| Keywords |
python |
| Maintainer |
Python Automaton |
| License |
Not yet specified |
| Other variants |
v13 |
| Ravenports |
Buildsheet | History |
| Ravensource |
Port Directory | History |
| Last modified |
24 JUL 2026, 16:11:02 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)
PY313 OFF Build using Python 3.13
PY314 ON Build using Python 3.14
Package Dependencies by Type
Download groups
| main |
mirror://PYPIWHL/da/01/df76d3f85d3db6c5d88e46b7b7d9a3425f36f108a1598a699e6dce25d74d |
Distribution File Information
d851efe31567630e53810dd60e3e9f614256f30cde97a59d0116d320dafcc4ea 6591 python-src/nornir_rich-0.3.0-py3-none-any.whl
Ports that require python-nornir-rich:v14