cleanpy is a CLI command to remove cache files and temporary files that related to Python.
Project description
Summary
cleanpy is a CLI command to remove cache files and temporary files that related to Python.
Usage
cleanpy DIR_PATH [DIR_PATH ...]
cleanpy will remove cache files and temporaly files under the DIR_PATH
Reove files/directories are as follows:
- files:
.coverage
coverage.xml
nosetests.xml
*.manifest
*.spec
*.pyc
*.pyo
- directories:
__pycache__
.cache
.eggs
.mypy_cache
.nox
.pyre
.pytest_cache
.pytype
.tox
.venv
*.egg-info
If --include-build-cache option is specified, also remove the following directories:
build
dist
docs/_build
Following directories are excluded from the search:
.git
.hg
.svn
node_modules
Command help
usage: cleanpy [-h] [-V] [--follow-symlinks] [--include-build-cache] [--exclude PATTERN] [--dry-run] [-v | --debug | --quiet] DIR_PATH [DIR_PATH ...] Remove cache files and temporary files that related to Python. Skip directories from recursive search: .git, .hg, .svn, node_modules positional arguments: DIR_PATH 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 --follow-symlinks follow symlinks --include-build-cache remove build cache directories: build, dist, docs/_build --exclude PATTERN a regular expression that matches files and directories that should be excluded on recursive searches. --dry-run do no harm. -v, --verbose shows verbose output. --debug for debug print. --quiet suppress execution log messages. Issue tracker: https://github.com/thombashi/cleanpy/issues
Installation
pip install cleanpy
Dependencies
Python 3.6+
no external package dependencies
platform independent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.