dict_hash
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)
Metadata
Release files for dict-hash 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dict_hash-1.0.3.tar.gz | 3.2 kB | Without provenance | Details for dict_hash-1.0.3.tar.gz |
Release files / dict_hash-1.0.3.tar.gz
| Download URL | dict_hash-1.0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e37dd13727cecab31d3753919a7b5d12618ec09f1e0307e0d3dc7c2f457fa293
|
|
BLAKE2b-256 checksum How to use checksums |
0a2443e534ea74b42b2f4d524c9d00ec6955c03af796588232d362ffb6b29faf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for dict-hash 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.