Skip to main content

Deterministic dictionary hashing

Project description

Hashami

Deterministic dictionary hashing in Python.

Use Case

When modeling API response data in our data warehouse we needed a way to reference similar calls (i.e. the parameters were the same) over time in order to analyze changes in the data. Python Dictionary objects were the most common vehicle for working with the parameter groupings and so we reached for a method to deterministically generate a hash based on those values.

Example Usage

from hashami import hasher as h

outgoing_params = {
    'foo': 'bar',
    'baz': 'qux',
    'quux': 'quuz'
}

params_hash = h.hash_dict(outgoing_params)

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

Hashami-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Hashami-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file Hashami-1.0.0.tar.gz.

File metadata

  • Download URL: Hashami-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for Hashami-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cc24cb706b0b5c41496117032cca355743da36b94e3b96229a2576810e541137
MD5 ab1a1f7acb409c6385afbaa1773ff0af
BLAKE2b-256 c174c597b5ce3e8007d409af545b118ced881e66584d31ea6dabe870b3691fad

See more details on using hashes here.

File details

Details for the file Hashami-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: Hashami-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for Hashami-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 283366dc54e8d152a968044b40ed44b6e43051cc87002f2fe7d0032b927d9dc8
MD5 14cc8800bc684b9ebb0b0e9d35264726
BLAKE2b-256 ee2942cc7a6b16c72db069b4efb228973373552065e20fc46274c92fadd410a1

See more details on using hashes here.

Supported by

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