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.33.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file cleanup_py-0.1.33.tar.gz
.
File metadata
- Download URL: cleanup_py-0.1.33.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed220a648cfcfd049c7b8c4ce96710b98874b254602c59e009b74b48f6f2d24e |
|
MD5 | 3e8cc985eae89b66a8369045e111fa2b |
|
BLAKE2b-256 | a019f2c432b34aec50ad76790c4736b9c340827166733ac7d2177ed0fa730d7c |
File details
Details for the file cleanup_py-0.1.33-py3-none-any.whl
.
File metadata
- Download URL: cleanup_py-0.1.33-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f76464b89d199f5ea2727f6f30b283e8c1f48cbbc1d050d9be9bbf7cbe4cf85 |
|
MD5 | f5a64e046db80a1446749d9a67953ba8 |
|
BLAKE2b-256 | 75997b17657449ee9a68c21f9383b5df28d4770006c023c63e337e469dd9e787 |