{ "info": { "author": "Ozzy", "author_email": "cfhamlet@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# os-qdb-protocal\n\n[![Build Status](https://www.travis-ci.org/cfhamlet/os-qdb-protocal.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-qdb-protocal)\n[![codecov](https://codecov.io/gh/cfhamlet/os-qdb-protocal/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-qdb-protocal)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-qdb-protocal.svg)](https://pypi.python.org/pypi/os-qdb-protocal)\n[![PyPI](https://img.shields.io/pypi/v/os-qdb-protocal.svg)](https://pypi.python.org/pypi/os-qdb-protocal)\n\n\nqdb protocal.\n\nSupport qdb commands: ``get``, ``test``\n \n\n# Install\n\n`pip install os-qdb-protocal`\n\n# Usage\n\n* create a protocal object from cmd and key\n\n ```\n from os_qdb_protocal import create_protocal\n proto = create_protocal('get', b'test-key')\n ```\n\n* use upstream method to generate data to be send\n\n \n ```\n # s is something which used to write data to, like socket, file, etc.\n for data in proto.upstream(): \n s.send(data)\n ```\n\n* use downstream method to parse data and get size will be recived\n\n ```\n downstream = proto.downstream()\n read_size = next(downstream)\n while read_size >= 0:\n # s is something which used to recieve data from, like socket, file, etc.\n data = s.read(read_size)\n read_size = downstream.send(data)\n ```\n\n* access key and value\n\n ```\n proto.key\n proto.value\n ```\n\n\n# Unit Tests\n\n`$ tox`\n\n# License\n\nMIT licensed.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cfhamlet/os-qdb-protocal", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "os-qdb-protocal", "package_url": "https://pypi.org/project/os-qdb-protocal/", "platform": "", "project_url": "https://pypi.org/project/os-qdb-protocal/", "project_urls": { "Homepage": "https://github.com/cfhamlet/os-qdb-protocal" }, "release_url": "https://pypi.org/project/os-qdb-protocal/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "qdb protocal.", "version": "0.2.2" }, "last_serial": 4675217, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e2e9fb21e5b714fcc246e2d4aa4ddaf4", "sha256": "197abce9c58d400ceba1f536192351a83a84326a055857664f83a7b2a73283f9" }, "downloads": -1, "filename": "os-qdb-protocal-0.1.tar.gz", "has_sig": false, "md5_digest": "e2e9fb21e5b714fcc246e2d4aa4ddaf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3423, "upload_time": "2018-11-28T08:32:26", "url": "https://files.pythonhosted.org/packages/46/30/b1aea34c4f2dce086b8b115eff567e59553472072f2810d6129c870e41cf/os-qdb-protocal-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "17e22f8e1f35d250c441e1a670600d50", "sha256": "5572bd376e931ff86e718f0c01be408773302b18bbeaa5e6ef06fd1a7838f11d" }, "downloads": -1, "filename": "os-qdb-protocal-0.2.tar.gz", "has_sig": false, "md5_digest": "17e22f8e1f35d250c441e1a670600d50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3917, "upload_time": "2018-12-11T14:30:55", "url": "https://files.pythonhosted.org/packages/be/07/9f779f8bcd8f0f7eb96845dd829fa18e93da7d562541c98879b7c8d9f88c/os-qdb-protocal-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7c54ccd3c3d9c81e21456b8ba694c525", "sha256": "57f4c710ca889b9105d900417d5b3af22f8e0bbde9cf46e324eef1fb5d151cd0" }, "downloads": -1, "filename": "os-qdb-protocal-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7c54ccd3c3d9c81e21456b8ba694c525", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4257, "upload_time": "2018-12-16T12:55:15", "url": "https://files.pythonhosted.org/packages/ae/61/ea9631844bd89cb40f3ebec18b322eaf85bdcc72487a646311606c2895fa/os-qdb-protocal-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "84c3b17443c4b5d8f2ddcdf7980bfd2b", "sha256": "ad0c4146f8155279b6cea0cb6af12924bc6ac3a81945ed5fe10b6dd14b707705" }, "downloads": -1, "filename": "os-qdb-protocal-0.2.2.tar.gz", "has_sig": false, "md5_digest": "84c3b17443c4b5d8f2ddcdf7980bfd2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4250, "upload_time": "2019-01-09T03:31:35", "url": "https://files.pythonhosted.org/packages/4c/6a/942cd8f25f8e67c2f68c4ef811d8ec5f8d3298627b5cde537f1ffa0085d6/os-qdb-protocal-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "84c3b17443c4b5d8f2ddcdf7980bfd2b", "sha256": "ad0c4146f8155279b6cea0cb6af12924bc6ac3a81945ed5fe10b6dd14b707705" }, "downloads": -1, "filename": "os-qdb-protocal-0.2.2.tar.gz", "has_sig": false, "md5_digest": "84c3b17443c4b5d8f2ddcdf7980bfd2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4250, "upload_time": "2019-01-09T03:31:35", "url": "https://files.pythonhosted.org/packages/4c/6a/942cd8f25f8e67c2f68c4ef811d8ec5f8d3298627b5cde537f1ffa0085d6/os-qdb-protocal-0.2.2.tar.gz" } ] }