Metadata-Version: 2.1
Name: codehash
Version: 0.1.0
Summary: Hashing Python code
Home-page: https://github.com/jhrmnn/codehash
License: MPL-2.0
Author: Jan Hermann
Author-email: dev@jan.hermann.name
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Utilities
Requires-Dist: typing_extensions (>=3.6,<4.0)
Project-URL: Documentation, https://jhrmnn.github.io/codehash
Project-URL: Repository, https://github.com/jhrmnn/codehash
Description-Content-Type: text/markdown

# Codehash

## Installing

Install and update using [Pip](https://pip.pypa.io/en/stable/quickstart/).

```
pip install -U codehash
```

## A simple example

```python
from codehash import hash_function

dct = {'a': 1}

def f(x):
    return 1 + dct["param"]

h1 = hash_function(f)

def f(x):
    """Docstring."""
    return 1 + dct["param"]  # comment

h2 = hash_function(f)

dct = {'a': 2}

def f(x):
    return 1 + dct["param"]

h3 = hash_function(f)

assert h1 == h2
assert h1 != h3
```

