nornir-automation / nornir_utils Goto Github PK
View Code? Open in Web Editor NEWCollection of plugins and functions for nornir that don't require external dependencies
Home Page: https://nornir.tech/nornir_utils
License: Apache License 2.0
Collection of plugins and functions for nornir that don't require external dependencies
Home Page: https://nornir.tech/nornir_utils
License: Apache License 2.0
https://github.com/nornir-automation/nornir_utils/blob/master/github.com/nornir-automation/nornir
##nornir_utils
Collection of simple plugins for nornir
poetry
dropped python 3.6
support from 1.2.0
version (see https://github.com/python-poetry/poetry/releases/tag/1.2.0b1)
Now, in github main.yml
workflow, pytest
job with "Testing on python 3.6" breaks with an error. Error example - https://github.com/timeforplanb123/nornir_utils/actions/runs/3051796881/jobs/4925256514
What do you think about fixing the poetry version in main.yml
? Example with fixed poetry version (1.1.15
) - https://github.com/timeforplanb123/nornir_utils/actions/runs/3055010446/jobs/4927584794
Detailed from install-poetry
action issues:
Hello,
With a colleague of mine we experienced an issue with print_result.
When we import the function in a script and use the standard print function, unwanted characters appear.
After debugging the cause, we found that the init function of colorama library is set in the print_result.py file but no deinit.
Bellow we highlighted the problem.
$ cat scripts/test1.py
#!/usr/bin/env python3
if __name__ == "__main__":
print("hello, world")
$ poetry run scripts/test1.py | hexdump -C
00000000 68 65 6c 6c 6f 2c 20 77 6f 72 6c 64 0a |hello, world.|
0000000d
# reproducing code
$ cat scripts/test2.py
#!/usr/bin/env python3
from nornir_utils.plugins.functions.print_result import print_result
if __name__ == "__main__":
print("hello, world")
$ poetry run scripts/test2.py | hexdump -C
00000000 68 65 6c 6c 6f 2c 20 77 6f 72 6c 64 1b 5b 30 6d |hello, world.[0m|
00000010 0a 1b 5b 30 6d |..[0m|
00000015```
I will propose a fix in a PR.
Someone tried to use a list directly under the data field and it caused all sorts of pain.
We probably should enforce this as a dictionary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.