codehash-0.1.0
توضیحات
Hashing Python code
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | codehash-0.1.0 |
| نام | codehash |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jan Hermann |
| ایمیل نویسنده | dev@jan.hermann.name |
| آدرس صفحه اصلی | https://github.com/jhrmnn/codehash |
| آدرس اینترنتی | https://pypi.org/project/codehash/ |
| مجوز | MPL-2.0 |
# 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
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | typing_extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl codehash-0.1.0:
pip install codehash-0.1.0.whl
نصب پکیج tar.gz codehash-0.1.0:
pip install codehash-0.1.0.tar.gz