Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

String similarity searching using the FastSS algorithm.

Project Description

FastSS is a string similarity searching algorithm. For each query, which

consists of query string s and distance d, it retrieves all the words in a dictionary whose edit distance from s is equal or smaller than d. FastSS is an offline searching algorithm, as it needs to create an index of its dictionary before it can search. For more information on FastSS you can visit the website of its inventors at <>.

Here are some of the characteristics of this implementation, to help you decide whether it fits your purposes:

  • Very fast searching at the cost of a rather large index size.
  • Indices are plain sqlite databases so they carry ACID guarantees.
  • Only unicode strings are supported.

Example of usage:

>>> import fastss
>>> manager = fastss.FastSSManager('idx')
>>> manager.create_index(False)
# Insert lemmas in the index, using 20% of their length as the depth:
>>> manager.update_index([u'Mike', u'Johnny', u'johnny'], lambda s: int(len(s)*.2))
# Search:
>>> for match in'Mike', 2): print match
(u'Mike', 0)
>>> for match in'johnny', 1): print match
(u'johnny', 0)
(u'Johnny', 1)
>>> for match in'johnny', 1, nocase=True): print match
(u'Johnny', 0)
(u'johnny', 0)
>>> for match in'johny', 2, nocase=True): print match
(u'johnny', 1)
(u'Johnny', 1)

Release History

This version
History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(16.4 kB) Copy SHA256 Hash SHA256
Source Mar 17, 2011
(203.2 kB) Copy SHA256 Hash SHA256
any Windows Installer Mar 17, 2011
(18.5 kB) Copy SHA256 Hash SHA256
Source Mar 17, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting