Posts

Showing posts from July, 2022

The best approaches for Python documentation authoring

Image
Have you ever experienced frustration because of the code you wrote? If you have been writing code for a while now, you probably had. And, if not, you certainly will. Sometimes we just keep staring at the code, trying to figure out what it does and why. When we wrote the code, everything was clear, but after a few weeks or months, it looks fuzzy. We can prevent this bad situation simply by writing Python Documentation. In this article, we are going to see how you can use python documentation best practices. These will make your code far more readable and maintainable. Python Documentation Manifesto What does “documenting” mean? Documenting means add information to your code for other programmers to read. If you took coding classes, someone probably told you that writing code means talking to the PC. If you believe that, think again, because computers only understand binary:  0  and  1 . You write code for people to read, not for computers. Let this statement sink in your brai

Python SDN 101: Telnet Device Control

Image
We began learning Python in the previous several articles. Why would a network engineer choose to acquire knowledge of this programming language? Our profession is developing and adapting to new technology; so, we must also adapt. Today's network engineer is not the same as he or she was 10 years ago. In 10 years' hence, SDN will undoubtedly disrupt our jobs; we can either surf the wave or perish under it. With this tutorial, we'll begin a Python SDN project to get you started with SDN. Read More: SSH Tutorial for Python and how to connect to Cisco devices SDN is coming about Python SDN 101: Telnet Device Control For those unfamiliar with the term, SDN stands for Software-Defined Networking. With this technology, you get a collection of gadgets that are designed to make network engineers' lives easier. Forget about setting VLANs and ports; the program will take care of everything for you. It is not a basic centralized administration console; it has intelligence.

The best approaches for Python documentation authoring

Image
Have you ever experienced frustration because of the code you wrote? If you have been writing code for a while now, you probably had. And, if not, you certainly will. Sometimes we just keep staring at the code, trying to figure out what it does and why. When we wrote the code, everything was clear, but after a few weeks or months, it looks fuzzy. We can prevent this bad situation simply by writing Python Documentation. In this article, we are going to see how you can use python documentation best practices. These will make your code far more readable and maintainable. Python Documentation Manifesto What does “documenting” mean? Documenting means add information to your code for other programmers to read. If you took coding classes, someone probably told you that writing code means talking to the PC. If you believe that, think again, because computers only understand binary:  0  and  1 . You write code for people to read, not for computers. Let this statement sink in your brain, as this

SSH Tutorial for Python and how to connect to Cisco devices

Image
SSH is the industry standard for connecting to a network device. This is unsurprising, given that the legacy protocol, telnet, only allows for insecure remote management. Rather than that, SSH stands for Secure Shell for a reason: it is a truly secure protocol that incorporates all modern security features. As a result, we cannot create SDN software without incorporating SSH. We will demonstrate how to use SSH in a Python program to connect to and control remote devices in this Python SSH Tutorial. We will demonstrate how to do things correctly in this article. Are you in a hurry? Simply scroll down for the TL;DR version. SSH encrypts traffic between you and the server, end-to-end. Read More: Python Multithreading Tutorial: Everything You Need to Know Before we start about SSH Tutorial for Python and how to connect to Cisco devices Before we begin the Python SSH Tutorial, we'll need a mechanism to validate that our program works properly. You are already set if