Skip to main content

No project description provided

Project description

sublime-search

A simple, fast, Rust implementation of sublime-text style fuzzy matching for Python.

Installation

pip install sublime-search
uv add sublime-search

Usage

import sublime_search

# Check if a pattern matches a string with a score
is_match, score = sublime_search.fuzzy_match("abc", "abcdef")
print(f"Match: {is_match}, Score: {score}")

# Find best matching strings from a list of candidates
results = sublime_search.get_best_matches("abc", ["abcdef", "xabc", "testing"])
for candidate, score in results:
    print(f"{candidate}: {score}")

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

sublime_search-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sublime_search-0.1.1-cp312-cp312-win_amd64.whl (124.9 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file sublime_search-0.1.1.tar.gz.

File metadata

  • Download URL: sublime_search-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for sublime_search-0.1.1.tar.gz
Algorithm Hash digest
SHA256 218b20221ad814255709ec8c528acd612e9763da7402342d2aa183fa40c9ff4b
MD5 a780adb7c8c5ec9cb315cc903a3fc860
BLAKE2b-256 bac446536220c86a373d5d5d6fd7b30f884c31d00566385a679dc3cf686df13c

See more details on using hashes here.

File details

Details for the file sublime_search-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for sublime_search-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b02ff89db23eb6c3ff8e6b71995a40cfd08794179d6b75a25b02f0079b12b530
MD5 b96cab82dbbc2adcc2c6013aa3dc22ac
BLAKE2b-256 c7cf30825c580b3cbfbd3593984fe7fc2e03295381ba3bccbd0c4d4abce0fb6f

See more details on using hashes here.

Supported by

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