semvec/pypi-packages huggingface dataset:
distans 0.1.6
Different distances for Python
License: Apache-2.0
Requires Python: >=3.8,<4.0

# 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]

p = 2
norm = lp(a, p=p)
dist = lp(a, b, p=p)
```

### Edit similarity

```py
from distans import jaro_sim, jaro_winkler_sim

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