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

Project details


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.2.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

keyvi-0.5.2-cp39-cp39-manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.9

keyvi-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl (919.4 kB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

keyvi-0.5.2-cp38-cp38-manylinux2014_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.8

keyvi-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl (914.2 kB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

keyvi-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.7m

keyvi-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl (909.1 kB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

keyvi-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.6m

keyvi-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl (926.1 kB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

File details

Details for the file keyvi-0.5.2.tar.gz.

File metadata

  • Download URL: keyvi-0.5.2.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for keyvi-0.5.2.tar.gz
Algorithm Hash digest
SHA256 65b99ebb3ab54d421c5038ca01257d794e7a3836975e0bc005fd64105261f979
MD5 00f8836b1e764fa4dff31d92cee3aece
BLAKE2b-256 9387a0dc117682206274091ac2ae7fd47d75a0d2702e9728206d9cae8af19242

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for keyvi-0.5.2-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b20d42df33d1912c7b319a49da422f38f4acdd8a896fcdb3e03fdf308f9eb786
MD5 d541e66431017d98ea1e0de69ff0a4a9
BLAKE2b-256 dc79b54e250ece3e78012d6acdcce3144f87a2fa1f2e930b9d38faff83b1adcf

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 919.4 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for keyvi-0.5.2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7194953f30bdd26f0e17653cc6f58bb128f820b867a5fc7a1e0b5741c6c61e12
MD5 37e1a2b100ea7236774d931d752ae2fc
BLAKE2b-256 38713ee57a7b8ab73850fd252cb427d9918b319fbb95663154c291c0321e7ff9

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for keyvi-0.5.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94c9aca94571aeca7f81b1f8e3b76109076a3997b20f64083e2b52e5e8490df1
MD5 667e4833403720e0292522d14b3b97be
BLAKE2b-256 38707a0300a9de186ffa915c80b97e47bcc036b67389eda14fed3a76d50107ce

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 914.2 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for keyvi-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c5643f6f05ce27b0bcb001ef81606d89b855b79e5c7f59be517e97efa9e8d723
MD5 700a58c0f6ea353ebfaf0bec7f337c3c
BLAKE2b-256 271ca050cbc6b0d835b2ad35a935269dde30f7bcc698ac1f97b2d3d8d6ccac3a

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for keyvi-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88922fe916591732b1e66de6d713dfa08f0e670bc1bcce069b294506eb12433f
MD5 99b58fdd43cfa43254c65748c3af9c03
BLAKE2b-256 dbafa68fb787d9cbe866b8ab3c04483156e601037645d6c422bc32eaef3623d7

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 909.1 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for keyvi-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1987d2147d03e1ab2698585be927b8717b5110ef4b245fdb907033fd8c2fe023
MD5 6766f33151141c867033638c7f9b7122
BLAKE2b-256 e308d3c0ec01f0b30c587ee59a12d09f010c3197e23ebf436ad02016d5cfc69b

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for keyvi-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0e223746f69967f61615dce6617747b842966cfdcb7f4a5d31a80e061ff7a7f
MD5 9c16a8b8c5efceecced09ea4101a70f3
BLAKE2b-256 090ce437e501b3de8cd81cd98f006d246862be3cd3da3a6e9b8457dd37a2f00d

See more details on using hashes here.

File details

Details for the file keyvi-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: keyvi-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 926.1 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for keyvi-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0219928f22d2f0384ad51c055f67d1f65bf84f89f7d011ee205071b330c98f95
MD5 918a8909dfddd42a67efb783c3ed736e
BLAKE2b-256 50038c0e8468aab265da08a8e49ad65da4ae317f17ce2bf5da8a749303d2b12f

See more details on using hashes here.

Supported by

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