{"id":34063630,"url":"https://github.com/cfhamlet/os-qdb-protocal","last_synced_at":"2026-03-11T04:32:26.920Z","repository":{"id":57449743,"uuid":"159329532","full_name":"cfhamlet/os-qdb-protocal","owner":"cfhamlet","description":"qdb protocal","archived":false,"fork":false,"pushed_at":"2019-01-09T03:30:16.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T03:50:26.475Z","etag":null,"topics":["protocal","qdb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfhamlet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-27T12:07:41.000Z","updated_at":"2020-03-08T06:24:24.000Z","dependencies_parsed_at":"2022-09-26T17:31:10.078Z","dependency_job_id":null,"html_url":"https://github.com/cfhamlet/os-qdb-protocal","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cfhamlet/os-qdb-protocal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfhamlet%2Fos-qdb-protocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfhamlet%2Fos-qdb-protocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfhamlet%2Fos-qdb-protocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfhamlet%2Fos-qdb-protocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfhamlet","download_url":"https://codeload.github.com/cfhamlet/os-qdb-protocal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfhamlet%2Fos-qdb-protocal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["protocal","qdb"],"created_at":"2025-12-14T05:34:53.804Z","updated_at":"2026-03-11T04:32:26.901Z","avatar_url":"https://github.com/cfhamlet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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 \u003e= 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfhamlet%2Fos-qdb-protocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfhamlet%2Fos-qdb-protocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfhamlet%2Fos-qdb-protocal/lists"}