Metadata-Version: 2.1
Name: distans
Version: 0.1.0
Summary: Different distances for Python
Home-page: https://github.com/cospectrum/distans
License: Apache-2.0
Author: cospectrum
Author-email: severinalexeyv@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Project-URL: Repository, https://github.com/cospectrum/distans
Description-Content-Type: text/markdown

# distans
Different distances for Python


## Install

```sh
pip install distans
```

## Usage

### Lp distance

```py
from distans import lp

a = [1, -2, 3]
b = [3, 4, -5]

norm = lp(a, p=4)
dist = lp(a, b, p=3)
```

### Edit similarity

```py
from distans import jaro_sim, jaro_winkler_sim

jaro_sim('hello', 'helo')
jaro_winkler_sim('hi', 'hey')
```

