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
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
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.5.tar.gz
(3.3 kB
view details)
File details
Details for the file dict_hash-1.0.5.tar.gz
.
File metadata
- Download URL: dict_hash-1.0.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b34a771f0d13c33e7e83a8645976d50dba0921c09e6cd3bbdbd93536517412bb |
|
MD5 | 6214f8171cdd0020cfa415acfb361c64 |
|
BLAKE2b-256 | 141e8e6395d708ce38de665969ee634acd1261628de456099efa724ac4c49e66 |