Skip to main content

qdb protocal.

Project description

# os-qdb-protocal

[![Build Status](](
[![PyPI - Python Version](](

qdb protocal.

Support qdb commands: ``get``, ``test``

# Install

`pip install os-qdb-protocal`

# Usage

* create a protocal object from cmd and key

from os_qdb_protocal import create_protocal
proto = create_protocal('get', b'test-key')

* use upstream method to generate data to be send

# s is something which used to write data to, like socket, file, etc.
for data in proto.upstream():

* use downstream method to parse data and get size will be recived

downstream = proto.downstream()
read_size = next(downstream)
while read_size >= 0:
# s is something which used to recieve data from, like socket, file, etc.
data =
read_size = downstream.send(data)

* access key and value


# Unit Tests

`$ tox`

# License

MIT licensed.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for os-qdb-protocal, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size os-qdb-protocal-0.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page