Python 3.10 – Parenthesized Context Managers
Python 3.10 is coming out next month, so now is the time to start talking about the new features that it will contain. The core developers of Python recently announced that they are adding...
View ArticleFaking Data with the Faker Package
If you are a software developer or engineer, then you know it can be really helpful to have sample data. The data doesn’t have to be real data either. Instead, the data can be fake. For example, if...
View ArticleCreating a Simple Wizard with wxPython (Video)
In this video tutorial, you will learn how to create a wizard with the wxPython GUI toolkit: Related tutorials wxPython: How to Disable a Wizard’s Next Button wxPython: How to Create a Generic Wizard...
View ArticlePython 3.10 – Simplifies Unions in Type Annotations
Python 3.10 has several new typing features. They are given in detail here: PEP 604, Allow writing union types as X | Y PEP 613, Explicit Type Aliases PEP 612, Parameter Specification Variables The...
View ArticlePython 101 – Documenting Your Code
Documenting your code early on is quite a bit more important than most new developers realize. Documentation in software development refers to the idea of giving your variables, functions and other...
View ArticlePyDev of the Week: Nikita Sobolev
This week we welcome Nikita Sobolev (@sobolevn) as our PyDev of the Week! Nikita is the founder of wemake.services. Nikita also writes a technical blog that you should check out. You can also see what...
View ArticlePython 101 – How to Work with Images
The Python Imaging Library (PIL) is a 3rd party Python package that adds image processing capabilities to your Python interpreter. It allows you to process photos and do many common image file...
View ArticleGetting Started with ReportLab’s Canvas
ReportLab is a very powerful library. With a little effort, you can make pretty much any layout that you can think of. I have used it to replicate many complex page layouts over the years. In this...
View ArticleCase / Switch Comes to Python in 3.10
Python 3.10 is adding a new feature called Structural Pattern Matching, which is defined in PEP 634 and has a tutorial on the topic in PEP 636. Structural Pattern Matching brings the case / switch...
View ArticlePython 101 – Importing Modules (Video)
In this video tutorial, you will learn all about how to import modules using the import and from keywords Related Tutorials Python 101: All about imports Creating a Simple Wizard with wxPython (Video)...
View ArticleMerging Dictionaries with the Union Operator
As a developer, there are times where you may end up with two or more dictionaries that you need to combine into one master dictionary. There are lots of different ways to merge dictionaries in the...
View ArticlePython 101 – An Intro to Jupyter Notebook
The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain code, equations, visualizations, and formatted text. By default, Jupyter Notebook runs...
View ArticlePyDev of the Week: Tonya Sims
This week we welcome Tonya Sims (@TonyaSims) as our PyDev of the Week! Tonya is a Python Developer Advocate for Vonage and is an active member of the Real Python community. Tonya recently gave a talk...
View ArticleHow to Send Emails with Python
Python provides a couple of really nice modules that you can use to craft emails with. They are the email and smtplib modules. Instead of going over various methods in these two modules, you’ll spend...
View ArticleCreating an MP3 Tagger GUI with wxPython
I don’t know about you, but I enjoy listening to music. As an avid music fan, I also like to rip my CDs to MP3 so I can listen to my music on the go a bit easier. There is still a lot of music that is...
View ArticlePython 101 – How to Create a Python Package
When you create a Python file, you are creating a Python module. Any Python file that you create can be imported by another Python script. Thus, by definition, it is also a Python module. If you have...
View ArticlePython 101 – Assignment Expressions
Assignment expressions were added to Python in version 3.8. The general idea is that an assignment expression allows you to assign to variables within an expression. The syntax for doing this is: NAME...
View ArticleConverting CSV to Excel with Python
There are many common file types that you will need to work with as a software developer. One such format is the CSV file. CSV stands for “Comma-Separated Values” and is a text file format that uses a...
View ArticleAn Intro to Python Editors
The Python programming language comes with its own built-in Integrated Development Environment (IDE) called IDLE. The name, IDLE, supposedly came from the actor, Eric Idle, who was a part of the Monty...
View ArticlePyDev of the Week: Tony Roberts
This week we welcome Tony Roberts as our PyDev of the Week! Tony is the creator and maintainer of PyXLL, a paid add-in for Microsoft Excel that lets you script Excel using the Python programming...
View Article