Skip to main content

similar

A dependency less python library made for finding similar text inspired from similar

Usage

import similar

match = similar.best_match("apply", ["pickle", "apple", "orange"])
print(match)
> apple

Extras

Also works with

file -

import similar

match = similar.best_match("apply", open("words.txt", "r"))
print(match)
> apple

or generator object

import similar

def genwords():
    for word in ["picke", "apple", "orange"]:
        yield word

match = similar.best_match("apply", genwords())
print(match)
> apple

Metadata

Release files for similar.py 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for similar.py 1.0
File Size Uploaded
similar.py-1.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for similar.py 1.0
File Interpreter ABI Platform
similar.py-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / similar.py-1.0.tar.gz

Download URL similar.py-1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a500c67da8798171b1410e445ca8cdd50a7bf11a9470abbd5a310d5aca38bf7a
BLAKE2b-256 checksum
How to use checksums
eac09f451e63e06930e0d4ab2a82c9473d6ad2d4623516cc3eb8514b3b728a08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

Release files / similar.py-1.0-py3-none-any.whl

Download URL similar.py-1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec671b288a3e55157a9e3a989e10500b4feb124bddf528fa156b785dab7c5a61
BLAKE2b-256 checksum
How to use checksums
3781b4281d37f13cd4442bd1da928642003226e50ff9ca798ba3c8b61f6ce3f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page