CleanUp
A simple command line utility that organises files in a directory into subdirectories based on the files' extensions.
Usage
When run without any option, it organises the files in the specified directory into subdirectories based on the files' extensions.
Options
-
-d,--dry-runJust displays the changes that would be made, without actually doing anything.
cleanup -d path/to/dir # dry run the cleanup cleanup -dr path/to/dir # dry run the reverting a cleanup
-
-s,--silentPrevents displaying any information while performing operations. Errors, however, are displayed irrespective of whether this option is enabled or not.
cleanup -s path/to/dir # silently cleanup cleanup -sr path/to/dir # silently revert a cleanup
-
-r,--revertReverts the cleanup of a directory. Note that for this to work, the specified directory should have been cleaned up before.
cleanup -r path/to/dir # revert the cleanup of a directory
-
-h,--helpDisplays the help text.
cleanup -h
Development
Setup
-
Clone the repo and
cdinto it. -
Set up a Python 3 virtual environment using pipenv:
pipenv --three # create Python 3 virtual environment pipenv install --dev # install all dependencies pipenv shell # activate virtual environment shell
-
The cleanup script can now be run from the root directory of the project:
python3 -m cleanup.cleanup -h
Test
Make sure you're in the root directory of the project. You can then run the test using:
python3 -m tests.test
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for cleanup 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cleanup-1.0.4.tar.gz | 40.5 kB | Without provenance | Details for cleanup-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cleanup-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for cleanup-1.0.4-py3-none-any.whl |
Total release size: 80.2 kB
Release files / cleanup-1.0.4.tar.gz
| Download URL | cleanup-1.0.4.tar.gz |
|---|---|
| Size | 40.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
805f2763ec5c0bee392e3d087690503379d5bd7d1e0dada405f27a299e5a03a2
|
|
BLAKE2b-256 checksum How to use checksums |
e23714b7da1821230485310f04dd636f5134848f57910777b96398b5136ce3f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / cleanup-1.0.4-py3-none-any.whl
| Download URL | cleanup-1.0.4-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08486a9e3bf6e13f1c1f8694ea7d73970715515eebb3956adf02734b4ac3057a
|
|
BLAKE2b-256 checksum How to use checksums |
d111fd257e347f07829c1d544737b4c756cfb52bf3f9fe295b1d068bde16b6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for cleanup 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.