Skip to main content

Python package for keyvi

Project description

Keyvi - the short form for "Key value index" is a key value store (KVS) optimized for size and lookup speed. The usage of shared memory makes it scalable and resistant. The biggest difference to other stores is the underlying data structure based on finite state machine. Storage is very space efficient, fast and by design makes various sorts of approximate matching be it fuzzy string matching or geo highly efficient. The immutable FST data structure can be used stand-alone for static datasets. If you need online writes, you can use keyvi index, a near realtime index.

Quick Start

Install keyvi with

pip3 install keyvi

create your first very simple index:

import keyvi.index
index = keyvi.index.Index("test-index")

index.Set('key', '{"answer": 42, "condition": "always"}')
index.Flush()
# get the entry for key
m = index.Get('key')
print(m.GetValue())

# match fuzzy(levenshtein distance) with max edit distance 1, exact prefix 2
m = index.GetFuzzy("kei", 1, 2)
print(m.GetMatchedString())

For more information visit http://keyvi.org

Download files

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

Files for keyvi, version 0.5.3
Filename, size File type Python version Upload date Hashes
Filename, size keyvi-0.5.3-cp36-cp36m-macosx_10_14_x86_64.whl (926.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size keyvi-0.5.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size keyvi-0.5.3-cp37-cp37m-macosx_10_14_x86_64.whl (909.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size keyvi-0.5.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size keyvi-0.5.3-cp38-cp38-macosx_10_14_x86_64.whl (914.2 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size keyvi-0.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.6 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size keyvi-0.5.3-cp39-cp39-macosx_10_14_x86_64.whl (919.4 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size keyvi-0.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size keyvi-0.5.3.tar.gz (2.1 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page