Skip to main content
clean
=====

## Objective

The python script "clean" allow the user to clean directory off temporary files with its default behavior.
With anoter configuration, it can allow you to clean a working directory before committing.

The final goal is to provide multiple configurations to clean a directory the exact way you want it.

## Suggestion

The best way to use this script at its fullest is to place clean.py in a personnal bin directory.
For example, you can create a directory "bin" in your home and add it to the variable $PATH.
Then, place the binaries and script you want to execute them wherever you are.
You can of course rename clean.py to clean or another name you prefer.

## Important options

### Help

./clean.py -h or ./clean.py --help

Print basical informations to the user, with a summary of the available commands.

### Pattern

./clean.py -p PATTERN or ./clean.py --pattern PATTERN

Allow the user to search for one or more pattern, overridding the default patterns.
You can use this option multiple times. For example, this command imitate the normal behavior : "./clean.py -p '#*#' -p '*~'"

### Force

./clean.py -f or ./clean.py --force

Skip the prompt for all the files targeted.
Use this command with prudence, and verify that the command will not remove a file you want to keep.

### Recursive

./clean.py -r or ./clean.py --recursive

Make a recursion to clean every subdirectory found.
Usefull if your working directory is subdivised into multiple directories.

### Configuration

./clean.py -c CONFIGURATION or ./clean.py --configuration CONFIGURATION

Override the default behavior with the given configuration.
The argument for this option must be the name of the configuration placed in $HOME/.config/clean.

Metadata

Release files for clean-directories 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clean-directories 1.1.0
File Size Uploaded
clean_directories-1.1.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clean-directories 1.1.0
File Interpreter ABI Platform
clean_directories-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / clean_directories-1.1.0.tar.gz

Download URL clean_directories-1.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b33bf5bbf48b9616f8e6a9e4e2085461b5639b82321908d09a7f966b599c27b4
BLAKE2b-256 checksum
How to use checksums
1752f238a93caa368b68be608a3ed8a791b05e80ab18671b69545bb86ba6dfd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / clean_directories-1.1.0-py3-none-any.whl

Download URL clean_directories-1.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26f114cdbd94da3a36b46a9fc6f47f9db532ffea129a07e4a866ded7f86273ed
BLAKE2b-256 checksum
How to use checksums
012cf55936cb9eb6593c29d166db9287dde6e55b3a876a6bb53471713f84fcb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page