beginner

Learn the basics of Python with these beginner-friendly tutorials

Textual – The New MaskedInput Widget

Textual v0.80.0 was released today, and it included the brand-new MaskedInput widget. If you have used other GUI toolkits, such as wxPython, you might already be familiar with a masked input widget. These widgets allow you to control the user’s input based on a mask string that the developer provides when instantiating the widget. Let’s spend

Textual – The New MaskedInput Widget Read More »

Adding Terminal Effects with Python

The Python programming language has thousands of wonderful third-party packages available on the Python Package Index. One of those packages is TerminalTextEffects (TTE), a terminal visual effects engine. Here are the features that TerminalTextEffects provides, according to their documentation: Xterm 256 / RGB hex color support Complex character movement via Paths, Waypoints, and motion easing,

Adding Terminal Effects with Python Read More »

How to Plot in the Terminal with Python and Textualize

Have you ever wanted to create a plot or graph in your terminal? Okay, maybe you haven’t, but now that you know you can, you want to! Python has the plotext package for plotting in your terminal. However, while that package is amazing all on its own, there is another package called textual-plotext that wraps

How to Plot in the Terminal with Python and Textualize Read More »

Creating Progress Bars in Your Terminal with Python and Textual

The Textual package is a great way to create GUI-like applications with Python in your terminal. These are known as text-based user interfaces or TUIs. Textual has many different widgets built-in to the framework. One of those widgets is the ProgressBar. If you need to show the progress of a download or long-running process, then

Creating Progress Bars in Your Terminal with Python and Textual Read More »

Create Amazing Progress Bars in Python with alive-progress

Have you ever needed a progress bar in your Python command-line application? One great way of creating a progress bar is to use the alive-progress package created by Rogério Sampaio de Almeida! Alive progress provides multiple different types of progress bars in your terminal or IPython REPL session. The alive progress package will work with

Create Amazing Progress Bars in Python with alive-progress Read More »

Creating Images in Your Terminal with Python and Rich Pixels

A newer Python package called Rich Pixels allows you to create images in your terminal and display them. Darren Burns, one of the team members from the Textual project, created this package. Anyway, let’s find out how to use Rich Pixels! Installation You can install Rich Pixels using Python’s pip utility. Here’s how: python -m pip install rich-pixels Once

Creating Images in Your Terminal with Python and Rich Pixels Read More »

Episode 42 – Harlequin – The SQL IDE for Your Terminal

This episode focuses on the Harlequin application, a Python SQL IDE for your terminal written using the amazing Textual package. I was honored to have Ted Conbeer, the creator of Harlequin, on the show to discuss his creation and the other things he does with Python. Specifically, we focused on the following topics: Favorite Python packages Origins

Episode 42 – Harlequin – The SQL IDE for Your Terminal Read More »

Episode 41 – Python Packaging and FOSS with Armin Ronacher

In this episode, I chatted with Armin Ronacher about his many amazing Python packages, such as pygments, flask, Jinja, Rye, and Click! Specifically, we talked about the following: How Flask came about Favorite Python packages Python packaging and much more! Links Sentry Rye Flask pygments Jinja Click uv

Episode 41 – Python Packaging and FOSS with Armin Ronacher Read More »

An Intro to Logging with Python and Loguru

Python’s logging module isn’t the only way to create logs. There are several third-party packages you can use, too. One of the most popular is Loguru. Loguru intends to remove all the boilerplate you get with the Python logging API. You will find that Loguru greatly simplifies creating logs in Python. This chapter has the following sections: Installation

An Intro to Logging with Python and Loguru Read More »

How to Annotate a Graph with Matplotlib and Python

The Matplotlib package is great for visualizing data. One of its many features is the ability to annotate points on your graph. You can use annotations to explain why a particular data point is significant or interesting. If you haven’t used Matplotlib before, you should check out my introductory article, Matplotlib – An Intro to

How to Annotate a Graph with Matplotlib and Python Read More »