Skip to main content

Outil CLI de gestion de fichiers : doublons, inventaire, indexation.

Project description

Logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md5explorer-1.0.0.tar.gz (768.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md5explorer-1.0.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

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

Hashes for md5explorer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 57a391e2c892620b5890f29a1532a656c2f0c6cf9e08ac949ffd6d7fc6c83d8b
MD5 00cb61d28316cc0d13fb00ad81ea75b1
BLAKE2b-256 8ec0a1c7fee73e4fde194c5a901ba4eaf7e459ffbed194ec7eca816284c4e4d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for md5explorer-1.0.0.tar.gz:

Publisher: publish.yml on Erim32/md5explorer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for md5explorer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31239de1ba2c487401ea309ce4b632d77f8c792a70250adc93beccee2e267d8b
MD5 5ad29d888ae684d0e9dbfa33b1b8174c
BLAKE2b-256 b2c09449b6d93afe5e62ad5adc2eafdedcde98fbcaf8ebdde57ffb5844c4aebc

See more details on using hashes here.

Provenance

The following attestation bundles were made for md5explorer-1.0.0-py3-none-any.whl:

Publisher: publish.yml on Erim32/md5explorer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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