Skip to main content

Different distances for Python

Project description

distans

Different distances for Python

Install

pip install distans

Usage

Lp distance

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

from distans import jaro_sim, jaro_winkler_sim

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

distans-0.1.6.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

distans-0.1.6-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file distans-0.1.6.tar.gz.

File metadata

  • Download URL: distans-0.1.6.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.3 Darwin/22.1.0

File hashes

Hashes for distans-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d0dd665e65f8e831583d47e9094e5c6ef83c86ef6c6a35ca3de3fbc35de5122c
MD5 edaf0c6d5a685fd7218365514154edec
BLAKE2b-256 fd660ecb3bd64d7e2a0a31e93f7380523c5643295d686b2bd9bfb258a18707cb

See more details on using hashes here.

File details

Details for the file distans-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: distans-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.3 Darwin/22.1.0

File hashes

Hashes for distans-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9100a5c868135c49ac049913b0c1c29d6dad212450218c97b83d5f7daf7509c5
MD5 f74a88b96c0b99b7ca95f28b1c25439e
BLAKE2b-256 f5770801f262c75d664cc4e6d772eb2aaabd113bbc4709d87d7ec40113a09e21

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page