[](https://www.travis-ci.org/cfhamlet/os-qdb-protocal)
[](https://codecov.io/gh/cfhamlet/os-qdb-protocal)
[](https://pypi.python.org/pypi/os-qdb-protocal)
[](https://pypi.python.org/pypi/os-qdb-protocal)
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():
s.send(data)
```
* 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 = s.read(read_size)
read_size = downstream.send(data)
```
* access key and value
```
proto.key
proto.value
```
# Unit Tests
`$ tox`
# License
MIT licensed.
Metadata
Release files for os-qdb-protocal 0.2.2
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 | |
|---|---|---|---|---|
| os-qdb-protocal-0.2.2.tar.gz | 4.2 kB | Without provenance | Details |
Release files / os-qdb-protocal-0.2.2.tar.gz
| Download URL | os-qdb-protocal-0.2.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad0c4146f8155279b6cea0cb6af12924bc6ac3a81945ed5fe10b6dd14b707705
|
|
BLAKE2b-256 checksum How to use checksums |
4c6a942cd8f25f8e67c2f68c4ef811d8ec5f8d3298627b5cde537f1ffa0085d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.14
|
Security for os-qdb-protocal 0.2.2
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.