Most of the programs, services, scheduled jobs, and scripts that we create are likely to need to connect to an external resource to pull or push some data. External resources can be a database, distributed cache, message queue, object store, and so on. In order to connect to a resource, we need at minimum an […]
CSV with Python a type-safe approach
This post describes an approach to read and write CSV using Python, and doing so in a simple and type-safe way. We are going to use the standard CSV Python module, hence there would be no need to install any new packages. Let’s start with our model. A model is a class that represents a […]
pytest in 5 minutes
This post is a quick tutorial on pytest, an awesome testing framework for Python. The main goal of the tutorial is to show features of pytest that are most useful in day-to-day life. Who can benefit from this tutorial? All code examples that are shown below can be found here. More exhaustive details on pytest […]