Clean up your Python bytecode & more.
pip install pyclean
pyclean py3clean pypyclean
def foo(bar): print(bar) foo.__code__.co_code \x00\x00\x83\x01 \x01\x00\x00\x00
Don't want this in my (Debian) package.
python-defaults/pyclean (salsa.debian.org)
python3-defaults/py3clean (salsa.debian.org)
debian/scripts/pypyclean (salsa.debian.org)
⤋
github.com/bittner/pyclean
$ py3clean -v .
# tox.ini [tox] envlist = py27,py37,clean [testenv] ... [testenv:clean] deps = pyclean commands = pyclean {toxinidir} --debris tox
# tox.ini [testenv:clean] commands = py3clean {toxinidir} find . -name foo -delete rm -rf .pytest_cache/ .tox/ *.egg-info whitelist_externals = py3clean find rm
Less pain, more fun.