Giter Site home page Giter Site logo

natenka / pyneng-book-en Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 8.0 1.23 MB

Python for Network Engineers: https://pyneng.readthedocs.io/en/latest/

Home Page: https://pyneng.readthedocs.io/en/latest/

License: Creative Commons Attribution Share Alike 4.0 International

network python

pyneng-book-en's Introduction

pyneng-book-en's People

Contributors

aidar5 avatar natenka 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  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

pyneng-book-en's Issues

YAML: mention easy mistakes

Some "features" of YAML make some kinds of mistakes particularly easy and cause subtle configuration issues, as described at Wikipedia. The article Work with YAML files could advise to take special care about whitespace and quoting, and possibly point to the Python StrictYAML lib that is linked in Wikipedia.

MISSING PICTURE IN THE "WORKING ENVIRONMENT - PYTHON FOR NETWORK ENGINEERS"

Hello Natasha Samoylenko,

Thank you for the book. I appreciate the time and effort put into it.

I was going through the work environment and realised I couldn't see the picture, forgive me if it is elsewhere in the book. I just found this resource and am going through it page by page. Please see the attached pictures named working and working2.

working
working2

Page no 116

Screenshot_20210408-214929
elif and else statement are same, I think it's should be different. Please review the code block.

Chapter - Additional modules - Tabulate

Hi,

Within chapter - Additional modules - Tabulate (https://pyneng.readthedocs.io/ru/latest/book/12_useful_modules/tabulate.html) found an issue with tabulate. Here is my code:
from tabulate import tabulate

data = {{'IP': '15.0.15.1',
'Interface': 'FastEthernet0/0',
'Protocol': 'up',
'Status': 'up'
},
{'IP': '10.0.12.1',
'Interface': 'FastEthernet0/1',
'Protocol': 'up',
'Status': 'up'},
{'IP': '10.0.13.1',
'Interface': 'FastEthernet0/2',
'Protocol': 'up',
'Status': 'up'},
{'IP': '10.1.1.1',
'Interface': 'Loopback0',
'Protocol': 'up',
'Status': 'up'},
{'IP': '100.0.0.1',
'Interface': 'Loopback100',
'Protocol': 'up',
'Status': 'up'}}

print(tabulate(data, headers='key'))

Traceback (most recent call last):
File "/Users/Retina/PycharmProjects/python-start/Play.py", line 3, in
data = {{'IP': '15.0.15.1',
TypeError: unhashable type: 'dict'

May be something wrong with example or with my script?

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.