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
Python class slots are a feature that not many programmers know of. In a slotted class we explicitly define the fields that our class is … 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 operator, e.g. in the Python REPL this looks like: … read more
One of the earliest Python PEP’s is PEP-20, written in 2004. It lists 19 theses or rules for Python programming called The Zen of Python. … 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