Blog

Python tricks & tips

Generate requirements.txt file from your project needs:

pip install pipreqs
pipreqs .

Check all unneeded imports in your python file:

pip install --upgrade pyflakes
pip install --upgrade autoflake
autoflake file.py

Delete inline all unneded imports in your python file:

pip install --upgrade pyflakes
pip install --upgrade autoflake
autoflake -i file.py

Leave a Comments

Marek Knappe