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
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
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
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
The package Python Attrs allows you to create advanced data classes using simple annotations. Of course, python has its own native data class module as … read more
You can obtain the result of the last expression in a Python REPL with the underscore, _. It’s not an operator but a variable that … read more
One of the best-known Python PEPs is PEP-20. It lists 19 theses or rules for Python programming called The Zen of Python. Tim Peters first … read more
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
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
With this trick, you can quickly convert a Python string to title case. To quote from the Wikipedia article: “Title case or headline case is a style of capitalization used … read more
With this neat little trick, you can swap two Python variables without using a third variable: It’s just one line of code! As you can … read more