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
Release history Release notifications | RSS feed
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.0.tar.gz
(108.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sublime_search-0.1.0.tar.gz.
File metadata
- Download URL: sublime_search-0.1.0.tar.gz
- Upload date:
- Size: 108.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3f76c8b8c1870875655bed2d0bf78f1b6c6eb0730a6c334e1c054f47cc68e2c
|
|
| MD5 |
424e07718ae834b26593c9d1ca88f521
|
|
| BLAKE2b-256 |
642afc560a66caaedd86ef8189fa3923e8ea618e13b360a8edd97153ac29654c
|
File details
Details for the file sublime_search-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: sublime_search-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 119.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5920026b975d77f42e0fa6ffc2186ae2f2d802fee0a910dfdb22a4726c1372cf
|
|
| MD5 |
5ce373e039300492df7b5b489056b03e
|
|
| BLAKE2b-256 |
cc0954ab634a20d8a8352186ec7159cd7b9d6b2672e239ffb6db586844ed84cf
|