Recent Posts

Cleanup functions using the atexit module

4 minute read

Recently, I was going through the documentation and codebase of a python package (specifically kafka-python) and was curious about how cleaning up resources ...

Database migrations with Dbmate

6 minute read

There are some tools that are quite essentials for web applications. When working on the back end side of your application, you’ll most probably need to use ...

Mocking in python with autospec

4 minute read

Mocking and mocks are really useful when writing tests, as they allow isolating the test target from its dependencies, leading to less fragile tests.

Awesome cli tools: HTTPie http client

4 minute read

We frequently find ourselves making http calls from the terminal: for testing out an external API we’re integrating into our projects, or for testing APIs we...

Property testing with hypothesis

5 minute read

Testing is a huge field and takes a significant amount of time to master. There are several types of tests, like unit, functional, integration, end-to-end (e...

Dependency injection in python

6 minute read

Dependency injection is a technique that “injects”/passes dependencies between objects in a way that leads to code that is easier to test and maintain.