Skip to main content

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.

PyPI package version Supported Python versions Supported Python implementations Linux/macOS CI status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cleanpy-0.0.1.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

cleanpy-0.0.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page