Python module to create MD5 files for digital deliveries.
Project description
si_md5_file
Python module to create MD5 files for digital deliveries.
A project of the Digitization Program Office, OCIO, Smithsonian.
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:
from simd5 import simd5
simd5.md5_file(folder="files", fileformat="m f", 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)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
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
simd5-0.2.1.tar.gz
(9.4 kB
view details)
Built Distribution
simd5-0.2.1-py3-none-any.whl
(7.0 kB
view details)
File details
Details for the file simd5-0.2.1.tar.gz
.
File metadata
- Download URL: simd5-0.2.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9eec726331c0cb53a3cac1f6e841deb4db36466a24740e94488e0f939e9dff |
|
MD5 | a355e56b50bdbead19aa4e30b1fb0029 |
|
BLAKE2b-256 | 73b47f76e0a90cdfd2324fdb2d6a1b479887a3478705697162914de656d5076e |
File details
Details for the file simd5-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: simd5-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f03ee6aab6ae632027e8dba7be796ae1c346e2e5db1dd56472a9e091c12194b4 |
|
MD5 | c16a25de83e516818428d024d1d52ecd |
|
BLAKE2b-256 | 24b692ae0d76dbf9997da99a6be1d892d5d7ecf95453acac7b858e527402791e |