{"id":16217287,"url":"https://github.com/synodriver/sioresp","last_synced_at":"2026-05-13T21:36:16.293Z","repository":{"id":100676427,"uuid":"467981175","full_name":"synodriver/sioresp","owner":"synodriver","description":"sans-io style redis protocol parser","archived":false,"fork":false,"pushed_at":"2022-05-18T06:25:36.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T00:23:52.944Z","etag":null,"topics":["redis","redis-protocol","resp","resp3","sans-io"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-09T15:20:14.000Z","updated_at":"2022-11-26T01:40:57.000Z","dependencies_parsed_at":"2023-05-16T18:30:37.745Z","dependency_job_id":null,"html_url":"https://github.com/synodriver/sioresp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fsioresp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fsioresp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fsioresp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fsioresp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/sioresp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744333,"owners_count":20988783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["redis","redis-protocol","resp","resp3","sans-io"],"created_at":"2024-10-10T11:26:27.480Z","updated_at":"2026-05-13T21:36:11.272Z","avatar_url":"https://github.com/synodriver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sioresp\n\n### sans-io style redis protocol parser for respv2 and v3\n\n# usage\n\n```python\nfrom sioresp import Connection, Config\n\nc = Connection(Config(resp_version=3))\nc.feed_data(b\"+OK\\r\\n\")\ndata = next(c)  # b\"OK\"\nassert data == b\"OK\"\ntry:\n    next(c)  # raise StopIteration\nexcept Exception as e:\n    assert type(e) == StopIteration\nc.feed_data(b\"~5\\r\\n+orange\\r\\n+apple\\r\\n#t\\r\\n:100\\r\\n:999\\r\\n\")\ndata = next(c)\nassert data == {True, 100, 999, b'apple', b'orange'}\n\ndata = c.send_command(\"GET\", \"key\")\nassert data == b'*2\\r\\n$3\\r\\nGET\\r\\n$3\\r\\nkey\\r\\n'\n```\n\n#### Note:\n\n- You can subclass Connection class to rewrite pack_element method to have customs serialize strategies.\n\n### TODO\n\n- [x] deserialize\n- [x] serialize\n- [x] unitest\n- [ ] hiredis parser\n- [ ] docs","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fsioresp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Fsioresp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fsioresp/lists"}