Skip to main content

Python module to create and check MD5 files for digital deliveries.

Project description

simd5

Python module to create MD5 files for digital deliveries. Current version: 0.3.2

A project of the Digitization Program Office, OCIO, Smithsonian.

https://dpo.si.edu/

Installation

To install:

python3 -m pip install simd5

To upgrade add -U:

python3 -m pip install -U simd5

Usage

To create a MD5 file with the filenames and hashes:

import simd5

simd5.md5_file(folder="files", fileformat="m f", no_workers=4)

The command can take these arguments:

  • folder: Which folder to run in. Will ignore subfolders.
  • fileformat: What format to use when creating the MD5 file: ** m f: [MD5 hash] [filename] (space-separated) ** f m: [filename] [MD5 hash] (space-separated) ** m,f: [MD5 hash],[filename] (comma-separated) ** f,m: [filename],[MD5 hash] (comma-separated)
  • no_workers: How many parallel processes to use. By default, it will use the number of cores found in the system.

To verify if the files match a reference md5 file:

from simd5 import simd5

simd5.check_md5_file(md5_file="file.md5", files="*.tif*", csv=True, no_workers=4)

The command can take these arguments:

  • md5_file: The file with the hash and filenames
  • files: A search pattern for which files to compare the hashes
  • csv: Save the results to a results.csv file
  • no_workers: How many parallel processes to use. By default, it will use the number of cores found in the system.

License

Available under the Apache License 2.0. Consult the LICENSE file for details.

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

simd5-0.3.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

simd5-0.3.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file simd5-0.3.2.tar.gz.

File metadata

  • Download URL: simd5-0.3.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for simd5-0.3.2.tar.gz
Algorithm Hash digest
SHA256 69c11981f91b18ab53b1723e65acb5fefe5229042b9c871f70afcec69b7112de
MD5 54e742f566f645850769ce8e11985163
BLAKE2b-256 20824b69988a59fd025fab8c53d0a4d1ccc0e3358086a5488a19825fec06e3c8

See more details on using hashes here.

File details

Details for the file simd5-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: simd5-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for simd5-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fbacf3595d63f4425f6b9a07c87fdb36245db853fd95462b2aceb412de01773e
MD5 6f15f1498c23f735ac2aae4d6433d563
BLAKE2b-256 7f02c09ce345ca44c6a2108e7888467cb43368824a54c9553925240c713f7917

See more details on using hashes here.

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