Registry / data / pysimstring

pysimstring

JSON →
library1.3.0pypypi✓ verified 82d ago

PySimString is a Python implementation of the simstring fast string similarity search library. Version 1.3.0 supports Python 3.7-3.13 across multiple platforms. It provides efficient approximate string matching using various similarity measures (cosine, dice, jaccard, overlap, exact) with configurable feature sizes.

pip install pysimstring
INSTALL
IMPORT
SIG · PYSIMSTRING
P
pysimstring
datapythonv1.3.0
Install
1.6s avg
Import
Disk
22MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

simstring
import pysimstring
import simstring

Create a simstring database, add strings, and retrieve similar strings using cosine similarity.

import simstring # Build a database from a list of strings db = simstring.reader() db.add('hello') db.add('hallo') db.add('hullo') db.add('world') # Use cosine similarity with threshold 0.7 results = db.retrieve('hallo', measure='cosine', threshold=0.7) print(results) # ['hello', 'hallo', 'hullo']
Debug
Known issues
gotchaThe default similarity measure is 'exact' (not cosine). Ensure you specify the desired measure via the `measure` parameter if you need fuzzy matching.
fix
Explicitly set measure='cosine', 'dice', 'jaccard', or 'overlap'.
affects: all
gotchaThe reader must be created via `simstring.reader()`, not `simstring.SimString()` or any other constructor. The API changed from the original simstring C++ library.
fix
Use `db = simstring.reader()`.
affects: >=1.0.0
gotchaThe database is stored in memory. Adding a large number of strings can consume significant memory.
fix
Batch insert or use the `simstring.writer()` (if available) to write to disk; currently only reader/writer-based API.
affects: all
Upgrade
Version history
1.3.0latest on PyPI · released Apr 6, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
pysimstring — pip install pysimstring · libregistry