Skip to main content
https://img.shields.io/pypi/v/cleaner.svg?maxAge=3600:target:https://github.com/Shir0kamii/cleaner

Cleaner

Cleaner is a cool interactive shell that allows you to clean your directories with less eforts.

Why Cleaner ?

Have you ever been tired to clean a messy ~/Downloads/ directory ? Do you think this bunch of ls and rm <file> or mv <file> <destination> are needed ?

Cleaner solve exactly this problem, submiting to you each file of the directory you want to clean, and reducing the commands to type to rm and mv <destination>.

Installation

Via pip

you can just pip install cleaner

Usage

Use cleaner <directory> to clean a messy directory

A shell will be spawn, with the prompt containing a filename. The command you will type will take effect on this file. Next, another filename will be prompted and each file of the directory will be submited to you this way.

Directories end with a ‘/’ character on the prompt.

To exit the shell, you can either type quit, Ctrl-D or Ctrl-C.

The info command prints a line containing some useful informations. The default format is <mode> | <user>:<group> wiht <mode> being in the same format than the first columns of a ls –long command in bash.

Use enter on a directory to list its tree. The directory will be printed again after the traversal.

Use rm on a filename to remove an entry. If it’s used on a directory, it will recursively remove all its tree.

Use mv <destination> to move an entry to <destination>. If it’s used on a directory, it will recursively move all its tree to <destination>.

Use chmod <mode> to modify permissions of a file or directory. The shell will keep the same file after this command.

Use chown <user>[:<group>] to modify ownership of the file or directory. The shell will keep the same file after this command.

If you don’t type anything, the shell will go to the next element. This same effect will take place if you type pass.

Metadata

Release files for cleaner 0.4.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 cleaner 0.4.0
File Size Uploaded
cleaner-0.4.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cleaner 0.4.0
File Interpreter ABI Platform
cleaner-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / cleaner-0.4.0.tar.gz

Download URL cleaner-0.4.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4487e689f9d30f5f2aedd4d7b6aaf8cc9e242b8ddd61fcfe47824578116823d7
BLAKE2b-256 checksum
How to use checksums
b292a45039f209dc53268ef0869332510ba5e300bb3379a13e6ea9e4d757abd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / cleaner-0.4.0-py3-none-any.whl

Download URL cleaner-0.4.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aeee5a24550a40cf0db99cb9e82c889a66b94b49276040d5b9f0ffd8277ad6b
BLAKE2b-256 checksum
How to use checksums
fad27a986e534e179eea93fde2e72229e106afb2040f38b763d4bfdd5de83158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.7

1 release file

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