Latest Posts

Network Automation with Python
Network Automation with Python – The Language
Getting started with Network Automation is arguably the most difficult part of the process, what tools should I use, what processes should I automate, what resources can I tap into. These are all very good […]

Network Automation with Python
Network Automation with Python – Introduction
If you take a look through my site you will quickly notice that most of my posts consist of how to articles for Python, Cisco networking devices, or Linux administration. It is no secret that […]

Python
Python F Strings
As of Python 3.6 per PEP 498 a new way of string formatting was introduced called F strings. While Python already had multiple multiple ways of string formatting, f strings aimed to provide a way […]
Various posts about Python Programming
-
In Python Generators are a way to create an iterator. If you are unfamiliar with what an iterator is in python for the sake of this article it is an object that you can loop [...]
-
I would say lambda functions in Python were one of the things I had a hard time not only understanding but also seeing the practicality of using in much of my code. However once I [...]
-
If you have been looking at any amount of Python code online and you have almost surly seen the following code at the end of a file. # classes and/or functions if __name__ == [...]
-
When writing a script or program it is often required to do more than one thing at the same time for efficiency or to not cause the program to lock up while completing a long [...]
-
In Python you can use list comprehensions to shorten the amount of code that you need to use to accomplish tasks when working with lists. The first time I heard of list comprehensions it sounded [...]
-
When writing CLI based applications in Python there often comes a time where you are running a loop and it may take a minute or 2 to complete your loop and break out, if the [...]
-
In this post I will be outlining the Tkinter Entry widget and the various ways you can use it. The Entry widget is often used to display or enter a line of text and is [...]
-
A virtual environment can be extremely useful when developing multiple projects that require different dependencies, developing across multiple computers, and making it easier to collaborate with others on projects. In this post I will be [...]
-
In this post I will be outlining what a list is and the different things you can do with lists in Python such as recalling elements from lists, modifying lists, and reorganizing lists. The first [...]
-
Creating a string using variables is not a complex task but when chaining variables together it is very easy to make a mess of a few lines of code just to create a string you [...]
-
If you need your script to check if a file exists, for example before attempting to create one, it is relatively straight forward and easy to do so using the ‘os’ module. Below is a [...]
-
When running a python script it is many times beneficial to know where on the system the python file you are running is located, for instance if you have files in the same directory as [...]
-
Gathering input from a user in your GUI is something that will need to be done often, one basic way is to use a simple text entry field which i demonstrate below. In this example [...]
-
In this tutorial I am demonstrating how to add a button using Grid in Tkinter. Placing a basic button can be done with only 2 lines of code highlighted in the code block below. The [...]
-
In the Video I go through writing the code below which will add a notebook widget inside of your main window which will allow you to make tabs in your interface. The majority of the [...]
-
In this post I am showing how to create an authentication box in Tkinter that has some basic functionality you would expect out of an authentication box. I just wanted this to be a simplistic [...]
-
By default when placing widgets several columns apart using Grid it will not show any of the cells because they have not been given any weight. I cover how to add a weight [...]
-
When placing widgets (text boxes, buttons, etc.) in your user interface using Grid there will not be any whitespace between your widgets that are seperated by empty columns or rows by default unless you explicitly [...]
-
Creating a window in python and customizing it in some basic ways is very easy to do in python, in this post I will be showing how to create a main window and customize it [...]