Skip to main content

Simple python tool to hash dictionaries using both default hash and sha256.

Project description

Travis CI build SonarCloud Quality SonarCloud Maintainability Codacy Maintainability Maintainability Pypi project Pypi total project downloads

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:

Coveralls Coverage SonarCloud Coverage Code Climate Coverate

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


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.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file dict_hash-1.0.2.tar.gz.

File metadata

  • Download URL: dict_hash-1.0.2.tar.gz
  • Upload date:
  • Size: 3.2 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

Hashes for dict_hash-1.0.2.tar.gz
Algorithm Hash digest
SHA256 09c12be3927e3f835b2149e528ef25ae38084cf8d92ff35941cda0551d1a7068
MD5 a575d170a4b1f30e4aac222a1a236eec
BLAKE2b-256 39d76d82a0296dcb69324f4a61d0723d4b8478c136dde75e7acf69e5ce86ec4d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page