Most of programs, services, scheduled jobs, scripts that we create are likely need to connect to an external resource to pull or push some data. External resource can be a database, distributed cache, message queue, object store and so on. In order to connect to a resources we need at minimum an address and a […]
Typesafe approach to CSV with Python
This post describes an approach to read and write CSV using Python, and doing so in a simple and typesafe way. We are going to use 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 line […]
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 […]