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.3

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.3.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.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simd5-0.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 aa129a3636509431abdbaa0cdeb281ca9c25a10a0a463efe2a02d8ff89da479f
MD5 2a6856d119557589551a5037389676cf
BLAKE2b-256 d91e304f2ac1db463c4c7045edb6670af1223fac175e58a2098883756a3b9790

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simd5-0.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41df2913b9c0c60aaf17c68cd6fee1bc0a6236f467f6722eea71cd8e596a3812
MD5 e9faf6cb6ad5ad266506a45a309bfd4b
BLAKE2b-256 d7e493d39498ce66cd4cb132e2f1fe676e041c10015c538b80aec62b20138470

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