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.

Click here to see the source code below