Skip to content

coleifer/kt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
kt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fast bindings to kyototycoon and tokyotyrant.

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

View the documentation for more info.

installing

$ pip install kt

usage

>>> from kt 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