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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file cleanpy-0.0.1.tar.gz.

File metadata

  • Download URL: cleanpy-0.0.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for cleanpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 265edef327e876845fa13ed5055711e38e2a0add8fdc29af69ab741864db58c8
MD5 4e44a35e5dc6eddf7a7a0590182ba7f1
BLAKE2b-256 a148f44b39604ff8fcfb5a699d3966f9a31c307c51e0ca079fa356910374ed16

See more details on using hashes here.

File details

Details for the file cleanpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cleanpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for cleanpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09b5cd33bcde4525f1635a63fc60efda1afc11719ee3c4df9640bf47e02aef8c
MD5 675f4b9a5b8d4517b0e20535cdb7c7ae
BLAKE2b-256 164340d4bc9bed500625bb6c09d4ef8df9e14de2167844afd2afa1a3c7dde2ea

See more details on using hashes here.

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