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"}')
# get the entry for key
m = index.Get('key')

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

For more information visit

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.7.tar.gz (2.2 MB view hashes)

Uploaded source

Built Distributions

keyvi-0.5.7-cp312-cp312-macosx_13_0_arm64.whl (16.0 MB view hashes)

Uploaded cp312

keyvi-0.5.7-cp312-cp312-macosx_12_0_arm64.whl (16.0 MB view hashes)

Uploaded cp312

keyvi-0.5.7-cp311-cp311-macosx_13_0_arm64.whl (16.0 MB view hashes)

Uploaded cp311

keyvi-0.5.7-cp311-cp311-macosx_12_0_arm64.whl (16.0 MB view hashes)

Uploaded cp311

keyvi-0.5.7-cp310-cp310-macosx_13_0_arm64.whl (16.0 MB view hashes)

Uploaded cp310

keyvi-0.5.7-cp310-cp310-macosx_12_0_arm64.whl (16.0 MB view hashes)

Uploaded cp310

keyvi-0.5.7-cp39-cp39-macosx_13_0_arm64.whl (16.0 MB view hashes)

Uploaded cp39

keyvi-0.5.7-cp39-cp39-macosx_12_0_arm64.whl (16.0 MB view hashes)

Uploaded cp39

keyvi-0.5.7-cp39-cp39-macosx_11_0_x86_64.whl (16.4 MB view hashes)

Uploaded cp39

keyvi-0.5.7-cp38-cp38-macosx_13_0_arm64.whl (16.0 MB view hashes)

Uploaded cp38

keyvi-0.5.7-cp38-cp38-macosx_12_0_arm64.whl (16.0 MB view hashes)

Uploaded cp38

keyvi-0.5.7-cp38-cp38-macosx_11_0_x86_64.whl (16.4 MB view hashes)

Uploaded cp38

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page