clean files and directories using Unix-Shell Style wildcards
Project description
cleanup
Clean files and directories using Unix-Shell Style wildcards. Multiple clean parameters can be used in a single command, or they can be written to a file for easy execution.
Installation using pip
pip install cleanup_py
Building from Sources
python -m build
pip install .\dist\cleanup_py-0.1.32-py3-none-any.whl
Command
cleanup --help
usage: cleanup [-h] [-p PATTERNS] [-e EXCLUDES] [config_file]
Clean up the current folder
positional arguments:
config_file Configuration file, default to .cleanup in the current working directory
options:
-h, --help show this help message and exit
-p PATTERNS, --patterns PATTERNS
Matching expressions for folders and files, using Unix Shell style. If there are multiple expressions, use commas to separate them
-e EXCLUDES, --excludes EXCLUDES
Match expressions for files or folders that are not cleaned, using Unix Shell style. If there are multiple expressions, use commas
to separate them
Using .cleanup
# Matching expressions for folders and files, using Unix Shell style. If there are multiple expressions, use commas to separate them
patterns = dist,log,__pycache__,tmp,.pytest_cache,*.pyc
# Match expressions for files or folders that are not cleaned, using Unix Shell style. If there are multiple expressions, use commas to separate them
exclude_patterns = ./venv/*,*.tar.gz
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.
Source Distribution
cleanup_py-0.1.32.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for cleanup_py-0.1.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 314252186ce3dcba5dfdbaee9e96f79b3335d1bea19d5657b88254a1dc046ece |
|
MD5 | bdd88a47b2f27f23dc2b6919fefc82f9 |
|
BLAKE2b-256 | f4eef2f6ae6b03d1324bebb497b64be4f7a210b60cbb5baae8e9823c155d12cd |