Posts
Fatalement
Cancel

Json in command line

When I am debugging a part of a code which does not work, I print quite often some dictionary of a json object in my shell. Most of the time it happens in one line quite difficult to read, so I ope...

Poetry instead of Pipenv?

One month ago I wrote about Pipenv because I appreciate how it is easy to set up a virtual env and because I have to use at work. Today, I have discovered Poetry, and decide to play a bit with Fi...

NamedTuple

Thanks to an amazing tweet of Sam & Max, I have read an article about how to start with Python in 2019 which give me the opportunity to watch the video Beyond PEP8 from Raymond Hettinger. This...

Guard file

Guardfile to run : 1 2 3 4 pylint pep8 through flake8 mypy tests associated to the file you just saved. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33...

Automatic renewal of SSL certificates for several websites

During the last past years, I have developed several websites and still have to maintain them. I have done those sites in Django and, I host them in PythonAnywhere. I use OpenSSL certificates but, ...

Git Stash

When you have made some modifications and want to achieve another tasks, I could be possible to save your modification by using stash. git stash Give a name to your stash by using the keyword sav...

Work in a proper python environment

When you start a new python project, it is quite important to have a proper environment. With Pipenv, it is quite easy to create a virtual environment, install libraries and manage the version of t...

Django migrations

How create a named empty migration in a specific django app? ./manage.py makemigrations --empty my_django_app_name -n name_of_my_migration How run some python code in my migration? 1 2 3 4 5 6 7...