python-nornir-rich
| Port variant |
v15 |
| Summary |
Pretty display functions for nornir (3.15) |
| Package version |
0.3.1 |
| Homepage |
No known homepage |
| Keywords |
python |
| Maintainer |
Python Automaton |
| License |
Not yet specified |
| Other variants |
v14 |
| Ravenports |
Buildsheet | History |
| Ravensource |
Port Directory | History |
| Last modified |
13 NOV 2026, 13:25:52 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)
PY314 OFF Build using Python 3.14
PY315 ON Build using Python 3.15
Package Dependencies by Type
Download groups
| main |
mirror://PYPIWHL/61/87/b87192e933709b36733e424aa440a3109051c6ce3a9dc9795216d47e3f15 |
Distribution File Information
f6a01c56798c0becf9c4da9b2e3fc52f17228ed19d1e8e91d622579f33cb4495 6591 python-src/nornir_rich-0.3.1-py3-none-any.whl
Ports that require python-nornir-rich:v15