A filing cabinet drawer named shop.db pulled open, beside a terminal running sqlite3 shop.db and .tables

SQLite On The Command Line: How To Inspect A DB

When people in our profession think of a database, many will think of Oracle, MySQL, Postgresql, perhaps? But what about the database that is used … read more

Code paused at breakpoint(), a magnifying glass finding a bug and a pdb prompt printing the value of a

Python Debugger: Effortlessly Improve Your Debug Skills

Debugging Python code, for many of us, comes down to adding print statements and trying to reason what’s going on based on the output. It’s … read more

A broom sweeps errors under a rug beneath a crossed-out except: pass, the catch-all you should avoid

How Not to Handle Exceptions in Python

I see lots of people handling Python exceptions the wrong way. Perhaps this applies to you too. Does the following situation sound familiar? You’re writing … read more

A cat photo resting on a pillow and an upside-down copy made with Pillow's im.rotate(180)

Python Image Processing With Pillow

The Pillow Python Imaging Library is ideal for image processing. Typically, it’s used for archival and batch processing applications. Of course, you’re free to use … read more

Smiley, heart and star balloons tied to a code card reading emoji.emojize(":red_heart:")

Working With Emoji in Python

There’s a package for pretty much everything you can think of in the Python ecosystem, all installable with a simple pip command. So it shouldn’t … read more