Simple python tool to hash dictionaries using both default hash and sha256.
Project description
Simple python tool to hash dictionaries using both default hash and sha256.
How do I install this package?
As usual, just download it using pip:
pip install dict_hash
Usage examples
The package offers two functions: sha256 to generate constant sha256 hashes and dict_hash, to generate hashes using the native hash function.
dict_hash
from dict_hash import dict_hash
from random_dict import random_dict
from random import randint
d = random_dict(randint(1, 10), randint(1, 10))
my_hash = dict_hash(d)
sha256
from dict_hash import sha256
from random_dict import random_dict
from random import randint
d = random_dict(randint(1, 10), randint(1, 10))
my_hash = sha256(d)
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
dict_hash-1.0.0.tar.gz
(2.7 kB
view details)
File details
Details for the file dict_hash-1.0.0.tar.gz
.
File metadata
- Download URL: dict_hash-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.13.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c914ac07183f0f229365f413f02f0e33b9127b4fb24001cd43c7805bc7ab78 |
|
MD5 | c01aa5912e96287d7dcf65199a563972 |
|
BLAKE2b-256 | a01714d994c170a3b81375209d267765a135608da535abd40a6315593a010489 |