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.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cleanpy-0.0.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cleanpy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 283c198179284fcffe6d7a9583db7ab51d3ee37565c4a09c8b0aef082ec44fae
MD5 86d10e6544198a1808993b9b99fef6da
BLAKE2b-256 f87de3ca451d5145f7a962e65239e8d0ec45d96230b69dc24b94bb65d3e40a66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cleanpy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for cleanpy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85394bdae467bb25299c2243ac9ea46dcc0c4eda32adf32cddab87f36d612536
MD5 f62f6b09fd89d14b4746736d3d581570
BLAKE2b-256 c3fd6d7e42530875a0d7e1fec5de0857e8f3aac35218632c366bfd4306384dce

See more details on using hashes here.

Supported by

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