Metadata-Version: 2.1
Name: Hashami
Version: 1.0.0
Summary: Deterministic dictionary hashing
Author-email: "James T. Perreault" <james@perreau.lt>
Project-URL: Homepage, https://github.com/jtperreault/hashami
Project-URL: Bug Tracker, https://github.com/jtperreault/hashami/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](https://docs.python.org/3/tutorial/datastructures.html#dictionaries) 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

```python
from hashami import hasher as h

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

params_hash = h.hash_dict(outgoing_params)
```
