A maid that sweeps your files
Project description
Maid Sweeper for files
Instead of cleaning the unused files, it calls a maid to label them and sweep them under the rug accordingly.
However, the maid can practice Danshari given permission. For example, she can sell your unused iPad for money.
Like Toki, she has two modes:
tag
: Label the files/directories automatically, based on their types and names.
- code projects and application directories are labeled, and their children are not scanned
- others are labeled based on the extensions
sweep
: Carry out actions based on the labels`.
Feature
- AsyncIO, so all operations are in parallel
- MongoDB for fast indexing
- Save time by not scanning every single file inside code and program directories and not checking the metadata
- Kyoufu
Installation
- Have Python 3.10.
- Install by running
pip install maid-sweeper
.
Usage
- Start a MongoDB instance.
- Run
maid-sweeper tag D:\Study
, then you can find tagged entries in the database. Sweeping works on all directories tagged. - Run
maid-sweeper sweep -t video game -x del \q \f {}
, and the maid is going to remove all 'video' or 'game' tagged files and directories.- Any other commands is OK as well
- By default the maid will do a sweep -- remove all those files. Kyoufu!
Ideas
- Multithreading
- Remove type hints
- Tags based on time
- How does it affect other tags? If not why bother?
- Maybe not tag, but just metadata
- There will be IO cost
- Group similarly named files: 01.jpg, 02.jpg, etc.
- Understand human language so they can toss away garbage
- Optionally clean up the database after sweeping.
- Single line mode: do the tag, sweep, and clean up database entries with a single command.
- Allow users to specify tags
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
maid-sweeper-0.6.96.tar.gz
(9.7 kB
view details)
Built Distribution
File details
Details for the file maid-sweeper-0.6.96.tar.gz
.
File metadata
- Download URL: maid-sweeper-0.6.96.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46b785bdbc20b3707d8c6f769775fc7131a9a755828622db9e663d33f14a0e1 |
|
MD5 | cccf1e93315a3e79d22e5d6125160cde |
|
BLAKE2b-256 | 643be6e69593871c8dfc052371feff92a0abe45ec5f500a685010dcea4a76e7d |
File details
Details for the file maid_sweeper-0.6.96-py3-none-any.whl
.
File metadata
- Download URL: maid_sweeper-0.6.96-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b715e79aba8230fc747abbaa1c9a97ec02ab87e205db72d6f46ecd35fc24aec |
|
MD5 | 94d73ebb44513a5dc42b1c01f49fc8fe |
|
BLAKE2b-256 | d03f5abb363a3f64074f9aa51ad5f304033773417c3fa358214d33690eec834d |