python-kyototycoon-binary
A lightweight Python client for accessing Kyoto Tycoon via its binary protocol.
The specification of the binary protocol is explained here.
Installation
$ pip install Cython
$ pip install python-kyototycoon-binary
Basic Usage
>>> from bkyototycoon import KyotoTycoonConnection
>>> client = KyotoTycoonConnection()
>>> client.set_bulk({'key1': 'value1', 'key2': 'value2'})
2
>>> client.get_bulk(['key1', 'key2', 'key3'])
{'key2': 'value2', 'key1': 'value1'}
>>> client.remove_bulk(['key1', 'key2'])
1
>>> client.get_bulk(['key1', 'key2', 'key3'])
{'key1': 'value1'}
Performance
In our benchmark tests, python-kyototycoon-binary was about 6-8 faster than python-kyototycoon.
$ pip install python-kyototycoon
$ ktserver -dmn
$ python benchmarks/benchmark.py
python-kyototycoon-binary get_bulk qps: 30961
python-kyototycoon-binary set_bulk qps: 40320
python-kyototycoon-binary get_bulk_with_pool qps: 31722
python-kyototycoon-binary set_bulk_with_pool qps: 42961
python-kyototycoon get_bulk qps: 4394
python-kyototycoon set_bulk qps: 4534
Documentation
Documentation is available at http://python-kyototycoon-binary.readthedocs.org.
Metadata
Release files for python-kyototycoon-binary 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-kyototycoon-binary-0.1.5.tar.gz | 53.5 kB | Without provenance | Details for python-kyototycoon-binary-0.1.5.tar.gz |
Release files / python-kyototycoon-binary-0.1.5.tar.gz
| Download URL | python-kyototycoon-binary-0.1.5.tar.gz |
|---|---|
| Size | 53.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ce99716c110efd081f6661652aae57007b41a4ea123adc16dd7edee3a49c580
|
|
BLAKE2b-256 checksum How to use checksums |
3f5330a139121863827bed8f39720f5b274cd851206b6892f3e01619e5b043c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-kyototycoon-binary 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.