Alex DeLorenzo · Jul 3, 2021
How to clean up Python build, caching and packaging artifacts
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
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
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.