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.

Source Distribution

keyvi-0.5.6.tar.gz (2.1 MB view hashes)

Uploaded source

Built Distributions

keyvi-0.5.6-cp310-cp310-macosx_12_0_arm64.whl (15.3 MB view hashes)

Uploaded cp310

keyvi-0.5.6-cp39-cp39-macosx_12_0_arm64.whl (15.3 MB view hashes)

Uploaded cp39

keyvi-0.5.6-cp38-cp38-macosx_12_0_arm64.whl (15.3 MB view hashes)

Uploaded cp38

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 Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page