Outil CLI de gestion de fichiers : doublons, inventaire, indexation.
Project description
Md5explorer
A command-line file management toolkit: duplicate detection, directory comparison, MD5 inventories, empty-directory cleanup, and a SQLite index for large collections.
Installation
pip install md5explorer
Or, from a local checkout:
pip install -e .
Quickstart
# Detect duplicates (read-only)
md5explorer scan duplicates ./photos
# Simulate deletion, keeping the newest file of each group
md5explorer scan duplicates ./photos --delete --dry-run --keep newest
# Compare two directories
md5explorer scan compare ./dir1 ./dir2
# Generate an MD5 inventory
md5explorer scan inventory ./photos -o inventory.txt
# Index a large tree into SQLite (multiprocess)
md5explorer db index ./photos
# Compare a new folder against the index
md5explorer db compare ./incoming --delete --dry-run
Run md5explorer --help, md5explorer scan --help, or md5explorer db --help for
the full option list.
Commands
| Group | Subcommand | Purpose |
|---|---|---|
| scan | duplicates |
Detect and optionally delete duplicate files |
| scan | compare |
Compare two directories file by file |
| scan | inventory |
Write an MD5/name/date/path inventory to a text file |
| scan | diff-lists |
Diff two inventory files by MD5 |
| scan | empty-dirs |
Detect and optionally delete empty directories |
| db | index |
Index a directory into the SQLite database |
| db | list |
List entries from the database |
| db | check |
Check if a file is present in the database |
| db | compare |
Compare a directory against the indexed catalog |
Development
pip install -e ".[dev]"
pytest
ruff check src
mypy src
License
MIT - see LICENSE.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md5explorer-1.0.0.tar.gz.
File metadata
- Download URL: md5explorer-1.0.0.tar.gz
- Upload date:
- Size: 768.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57a391e2c892620b5890f29a1532a656c2f0c6cf9e08ac949ffd6d7fc6c83d8b
|
|
| MD5 |
00cb61d28316cc0d13fb00ad81ea75b1
|
|
| BLAKE2b-256 |
8ec0a1c7fee73e4fde194c5a901ba4eaf7e459ffbed194ec7eca816284c4e4d0
|
Provenance
The following attestation bundles were made for md5explorer-1.0.0.tar.gz:
Publisher:
publish.yml on Erim32/md5explorer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
md5explorer-1.0.0.tar.gz -
Subject digest:
57a391e2c892620b5890f29a1532a656c2f0c6cf9e08ac949ffd6d7fc6c83d8b - Sigstore transparency entry: 1391904833
- Sigstore integration time:
-
Permalink:
Erim32/md5explorer@a7a6b8261bbb07fc87f5e57f88661c691a15f0a7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Erim32
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a7a6b8261bbb07fc87f5e57f88661c691a15f0a7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file md5explorer-1.0.0-py3-none-any.whl.
File metadata
- Download URL: md5explorer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31239de1ba2c487401ea309ce4b632d77f8c792a70250adc93beccee2e267d8b
|
|
| MD5 |
5ad29d888ae684d0e9dbfa33b1b8174c
|
|
| BLAKE2b-256 |
b2c09449b6d93afe5e62ad5adc2eafdedcde98fbcaf8ebdde57ffb5844c4aebc
|
Provenance
The following attestation bundles were made for md5explorer-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on Erim32/md5explorer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
md5explorer-1.0.0-py3-none-any.whl -
Subject digest:
31239de1ba2c487401ea309ce4b632d77f8c792a70250adc93beccee2e267d8b - Sigstore transparency entry: 1391904839
- Sigstore integration time:
-
Permalink:
Erim32/md5explorer@a7a6b8261bbb07fc87f5e57f88661c691a15f0a7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Erim32
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a7a6b8261bbb07fc87f5e57f88661c691a15f0a7 -
Trigger Event:
push
-
Statement type: