GithubHelp home page GithubHelp logo

nornir-automation / nornir_utils Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 18.0 6.24 MB

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

Dockerfile 3.64% Makefile 6.57% Python 89.79%

nornir_utils's People

Contributors

brasswood avatar bytinbit avatar dbarrosop avatar dependabot[bot] avatar ktbyers avatar sjhloco avatar ubaumann avatar wvandeun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nornir_utils's Issues

poetry dropped python 3.6 support from 1.2.0 version

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:

Unwanted characters printed after importing print_result

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.