How to clean up Python build, caching and packaging artifacts
About
Python leaves compiled bytecode in project directories under subdirectories named __pycache__
. Building packages also creates artifacts in project directories.
This simple script will delete those build, caching and packaging artifacts for you.
Script
The following depends on aiopath
, which can be found here or installed via PyPI.