Few days ago, I decided to create an account in Buy me a coffe ☕. The goal: allow people to give me a donation 💰 is they want to support the blog or some of my github projects. Why? Just to help ...
Play a bit with doctest
I discover randomly the doctest module and decided to play a bit with it. This module allows you to write tests inside your docstring and to execute it. Can be useful if you want to provide easil...
Abstract Factory in python
For 2021, I decided to implement several design pattern to become more friendly with them and start using in my projects. First implemented pattern: Abstract Factory Goal of the pattern Abstract...
Decorator and Structlog
During the Python web summit organized by Geekle.us, I listened to an interesting talk about Structlog library. I decided to play a bit with it and with decorators, I implemented a small project ab...
How to mock function without typing to not use type ignore
Import only for mypy an internal module If you need to import a module only for mypy, and do not want to create a circular dependency, you can do like that: 1 2 3 4 5 6 7 8 from typing import TYPE...