checksumdir 1.2.0
pip install checksumdir
Latest version
Released:
Compute a single hash of the file contents of a directory.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tom McCarthy
- Tags hash, checksum, md5, directory
- Requires: Python >=3.6, <4.0
Classifiers
- License
- Operating System
- Programming Language
- Topic
Project description
A simple module for creating a single hash for a directory of files, with file contents; ignoring any metadata such as file name. Options exist to also exclude specific files or files with specific extensions.
Usage
from checksumdir import dirhash
directory = '/path/to/directory/'
md5hash = dirhash(directory, 'md5')
sha1hash = dirhash(directory, 'sha1', excluded_files=['package.json'])
sha256hash = dirhash(directory, 'sha256', excluded_extensions=['pyc'])
Or to use the CLI:
# Defaults to md5.
$ checksumdir /path/to/directory
# Create sha1 hash:
$ checksumdir -a sha1 /path/to/directory
# Exclude files:
$ checksumdir -e <files> /path/to/directory
# Exclude files with specific extensions:
$ checksumdir -x <extensions> /path/to/directory
# Follow soft links:
$ checksumdir --follow-links /path/to/directory
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Tom McCarthy
- Tags hash, checksum, md5, directory
- Requires: Python >=3.6, <4.0
Classifiers
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file checksumdir-1.2.0.tar.gz
.
File metadata
- Download URL: checksumdir-1.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10bfd7518da5a14b0e9ac03e9ad105f0e70f58bba52b6e9aa2f21a3f73c7b5a8 |
|
MD5 | 9d05e70d9b52e7dc36c068deac7d3531 |
|
BLAKE2b-256 | b5bc7446a3877cae4638c93531239736ca3ee7933bd3f775db325bb1a1d5102c |
File details
Details for the file checksumdir-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: checksumdir-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77687e16da95970c94061c74ef2e13666c4b6e0e8c90a5eaf0c8f7591332cf01 |
|
MD5 | 9d14f9149192c14edc4b12df7c3496c3 |
|
BLAKE2b-256 | 1f75cc1e76d4957ef6852ef9a49c3f75794a2952d0af3d2482dc7d19f659fa42 |