Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coleifer/kt
Fast Python client for KyotoTycoon
https://github.com/coleifer/kt
dank gametight kyoto-cabinet kyoto-tycoon tokyo-tyrant tokyocabinet
Last synced: about 2 months ago
JSON representation
Fast Python client for KyotoTycoon
- Host: GitHub
- URL: https://github.com/coleifer/kt
- Owner: coleifer
- Created: 2018-04-05T03:21:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-15T14:53:52.000Z (about 1 year ago)
- Last Synced: 2023-11-15T15:46:16.382Z (about 1 year ago)
- Topics: dank, gametight, kyoto-cabinet, kyoto-tycoon, tokyo-tyrant, tokyocabinet
- Language: Python
- Homepage: http://kt-lib.readthedocs.io/en/latest/
- Size: 307 KB
- Stars: 17
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](http://media.charlesleifer.com/blog/photos/logo.png)
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](http://kt-lib.readthedocs.io/en/latest/) for more
info.#### installing
```console
$ pip install kt
```#### usage
```pycon
>>> 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
```