Skip to content

coleifer/ukt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 15, 2024
cdd95b5 · Oct 15, 2024
Sep 3, 2019
Sep 27, 2019
Sep 13, 2019
Oct 15, 2024
Sep 4, 2019
Nov 15, 2023
Jul 13, 2019
Apr 6, 2023
Jul 16, 2019
Jan 4, 2023
Dec 16, 2020
Mar 25, 2024

Repository files navigation

Fast bindings to kyototycoon.

  • Full-featured implementation of protocol.
  • Simple APIs.
  • Thread-safe and greenlet-safe.
  • Additional serializers implemented as a C extension.

View the documentation for more info.

installing

$ pip install ukt

usage

>>> from ukt import KyotoTycoon
>>> client = KyotoTycoon()
>>> client.set('k1', 'v1')
1
>>> client.get('k1')
'v1'
>>> client.remove('k1')
1

>>> client.set_bulk({'k1': 'v1', 'k2': 'v2', 'k3': 'v3'})
3
>>> client.get_bulk(['k1', 'xx, 'k3'])
{'k1': 'v1', 'k3': 'v3'}
>>> client.remove_bulk(['k1', 'xx', 'k3'])
2