Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coleifer/ukt
Kyoto Tycoon client library for Python.
https://github.com/coleifer/ukt
dank gametight kyoto-tycoon python
Last synced: about 2 months ago
JSON representation
Kyoto Tycoon client library for Python.
- Host: GitHub
- URL: https://github.com/coleifer/ukt
- Owner: coleifer
- License: mit
- Created: 2019-07-16T13:54:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T13:34:39.000Z (9 months ago)
- Last Synced: 2024-04-26T04:44:59.699Z (8 months ago)
- Topics: dank, gametight, kyoto-tycoon, python
- Language: Python
- Size: 313 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](http://media.charlesleifer.com/blog/photos/logo-1.png)
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](http://ukt.readthedocs.io/en/latest/) for more info.
#### installing
```console
$ pip install ukt
```#### usage
```pycon
>>> 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
```