Calculate directory hash
Project description
Directory Hash Calculator
This project is a super simple Python library which can be used in both command line and library ways.
To install it:
$ pip install dirhashcalc
Commandline Usage
To use it in commandline:
$ dir_hash path/to/dir
8907645cfe42941cf7dbc656d59ccc4f02ec2a16493c097e04ce2547ad1e5484
You can also pass mlutiple arguments:
$ dir_hash first second
first: 8907645cfe42941cf7dbc656d59ccc4f02ec2a16493c097e04ce2547ad1e5484
second: 9f29e53d60a5a8e92da03e41678374ac584c2c94a24898c0c719736412723c4d
Library Usage
You can use this project in your own projects to calculate directory hash.
from dirhashcalc import DirHashCalculator
dir_sha256 = DirHashCalculator('path/to/dir').calc()
Class DirHashCalculator
has more methods. To see them and use it in any other way that you want, see content of dir_hash.py
in the project and read description of each method in docstring.
License
This project is licensed under MIT License.
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
dirhashcalc-0.0.1.dev0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for dirhashcalc-0.0.1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf199cb8d35d3df848de1f2b092302fa7d2cdefdde52231600e1b8954e4fc76f |
|
MD5 | 111f0568da9cd63b9a7677456ad4949d |
|
BLAKE2b-256 | 0ae0ee8f5126a6a6a7b6e21153b96ee0f206e7edde10ef8d7a957f46b2a8bc15 |