Posts
Fatalement
Cancel

Block website to improve focuses

As I am now fully working from home, break and hot beverage breaks are totally different. No more breaks where you can talk with colleagues, no more “forced” break to eat croissants 🥐. I am not re...

2020 review and 2021 Goals

We are already in March 2021 so this is time to make a review of 2020 and also to set new goals/behaviour for 2021. 2020 review What I planed to do one year ago Profesional Write an article o...

Feedly and RSS flux for this website

Few weeks ago, I decided to adopt new behaviour for 2021 (another article will come soon). One of those new behaviour is to stop infinite scroll on some websites like twitter. But how to get notif...

Funding with Github

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...