Skip to main content

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.

Feature

  • Asyncio
  • MongoDB
  • Not scanning every single file inside code and program directories, saving time
    • Avoid accessing metadata
  • Kyoufu

Installation

  1. Have Python 3.11 (as it used some fancy type hints that is incompatible with <3.11).
  2. Install the requirements by running pip install ..

Usage

  1. Start a MongoDB instance.
  2. Run python maid.py tag D:\Study, then you can find tagged entries in Database 'sweep_maid' Collection 'file_metadata'. Then it can be used for further processing.
  3. Run python maid.py sweep video,game rm -rf {}, the maid is going to remove all 'video' or 'game' tagged files and directories.
    • As fire is used, it is about the best we can get, without custom deserializer

TO-DO

  • Remove type hints

  • Better readme

  • Tag 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 similar named files

  • Automatically carry out actions based on the tags, like Dan, Sha and Ri, etc.

  • Understand human language so they can toss away garbage

  • Better command line interface

    • have to escape {} for fire
  • Optionally clean up the database after sweeping.

  • Single line mode: do the tag, sweep, and clean up database entries with a single command.

Project details


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.9.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

maid_sweeper-0.6.9-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file maid-sweeper-0.6.9.tar.gz.

File metadata

  • Download URL: maid-sweeper-0.6.9.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for maid-sweeper-0.6.9.tar.gz
Algorithm Hash digest
SHA256 53f4519a6e82e5624e1292535d64668a23e10ec7ce8b3047b761f185debf10bb
MD5 b640d10606a58ac3c27e2cef77ef8184
BLAKE2b-256 158c12914cc19a9433ad876205c02ffa47eb581293d186e8299c14ac5b9b532e

See more details on using hashes here.

File details

Details for the file maid_sweeper-0.6.9-py3-none-any.whl.

File metadata

File hashes

Hashes for maid_sweeper-0.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6dacf2e3fde7917603cf7f7e2277829169c61b04bde48e90abf28817a493cad0
MD5 d0c3a4bd20641c0cb0fb8b131be480be
BLAKE2b-256 2771d280e8ba7f26d52deea4e0cee551ff809e4c1dc902e086a6226beebc366d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page