v0.3.11079.2 MB
MIT
strict
core18
CLI command to remove cache files and temporary files that related to Python
cleanpy is a CLI command to remove cache files and temporary files that
related to Python.
Execution example:
Command help:
related to Python.
Execution example:
$ cleanpy -avf .
[INFO] remove directory [cache - Python]: ./test/_pycache
[INFO] remove directory [cache - pytest]: ./.pytestcache
[INFO] remove directory [env - virtual env]: ./.tox
[INFO] remove directory [build - Python]: ./dist
[INFO] remove directory [cache - mypy]: ./.mypycache
[INFO] remove directory [metadata - type checker]: ./.pytype
[INFO] remove directory [build - Python]: ./build
[INFO] remove directory [metadata - Python]: ./cleanpy.egg-info
[INFO] removed 8 directoriesCommand help:
usage: cleanpy [-h] [-V] [--list] [-f] [--follow-symlinks] [--dry-run] [-a] [--include-builds] [--include-envs]
[--include-metadata] [--include-testing] [--exclude PATTERN] [--exclude-envs] [-v | --debug | --quiet]
DIRPATH [DIRPATH ...] Remove cache files and temporary files that related to Python. Skip directories from recursive search: .git, .hg, .svn, nodemodules positional arguments:
DIRPATH path to a root directory to search. optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--list print target directories/files. does not actually remove.
-f, --force no prompt before remove.
--follow-symlinks follow symlinks.
--dry-run do no harm.
-v, --verbose shows verbose output.
--debug for debug print.
--quiet suppress execution log messages. Remove Target:
-a, --all remove all of the caches and teporary files.
--include-builds remove files/directories that related build: build, dist, docs/build
--include-envs remove virtual environments.
--include-metadata remove metadata.
--include-testing remove test results and coverage files.
--exclude PATTERN a regular expression that matches files and directories that should be excluded on recursive
searches.
--exclude-envs exclude virtual environments. Issue tracker: https://github.com/thombashi/cleanpy/issuesUpdate History
v0.3.1 (107)13 Dec 2025, 09:47 UTC
2 Feb 2020, 16:07 UTC
11 Jul 2021, 14:28 UTC
13 Dec 2025, 09:47 UTC