{"id":18681343,"url":"https://github.com/bitaps-com/aiojsonrpc","last_synced_at":"2025-06-28T01:03:29.528Z","repository":{"id":92871727,"uuid":"96693130","full_name":"bitaps-com/aiojsonrpc","owner":"bitaps-com","description":"Python asyncio client for JSON-RPC API","archived":false,"fork":false,"pushed_at":"2024-09-06T09:57:43.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T11:55:04.250Z","etag":null,"topics":[],"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/bitaps-com.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null}},"created_at":"2017-07-09T15:26:34.000Z","updated_at":"2024-09-30T08:45:05.000Z","dependencies_parsed_at":"2025-04-12T04:08:44.714Z","dependency_job_id":"eb038180-f411-4c55-919f-bbe571e7d54b","html_url":"https://github.com/bitaps-com/aiojsonrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitaps-com/aiojsonrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitaps-com%2Faiojsonrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitaps-com%2Faiojsonrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitaps-com%2Faiojsonrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitaps-com%2Faiojsonrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitaps-com","download_url":"https://codeload.github.com/bitaps-com/aiojsonrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitaps-com%2Faiojsonrpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262357524,"owners_count":23298459,"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":[],"created_at":"2024-11-07T10:06:57.125Z","updated_at":"2025-06-28T01:03:29.506Z","avatar_url":"https://github.com/bitaps-com.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiojsonrpc\nPython asyncio client interface fo JSON-RPC 2.0\n\n\n#### Example\n\n```angular2html\nimport asyncio\nimport aiojsonrpc\n\nasync def test(loop):\n    t = aiojsonrpc.rpc(\"http://user:password@host:port\", loop)\n    while 1:\n        p = await  t.getinfo()\n        print(p)\n        await asyncio.sleep(10)\n\n\nloop = asyncio.get_event_loop()\nloop.create_task(test(loop))\nloop.run_forever()\n```\n\n```angular2html\npython3 test.py \n{'timeoffset': 0, 'version': 140200, 'relayfee': 1e-05, 'connections': 18, 'difficulty': 708659466230.332, 'proxy': '', 'testnet': False, 'errors': '', 'blocks': 475003, 'protocolversion': 70015}\n\n```\n\n```angular2html\nimport asyncio\nimport aiojsonrpc\n\nasync def test(loop):\n    t = aiojsonrpc.rpc(\"http://user:password@host:port  \", loop)\n    while 1:\n        p = await t.batch([[\"net_peerCount\"],\n                           [\"net_peerCount\"],\n                           [\"eth_getTransactionByHash\",\n                            \"0xbcad8332d6d68344389f69ec547ecea4a838a2a2cab50407cf7d082531a7c058\"]])\n        print(p)\n        await asyncio.sleep(10)\n\nloop = asyncio.get_event_loop()\nloop.create_task(test(loop))\nloop.run_forever()\n\n```\n\n```angular2html\npython3 test.py \n[{'jsonrpc': '2.0', 'id': 1, 'result': '0x19'}, {'jsonrpc': '2.0', 'id': 2, 'result': '0x19'}, {'jsonrpc': '2.0', 'id': 3, 'result': None}]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitaps-com%2Faiojsonrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitaps-com%2Faiojsonrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitaps-com%2Faiojsonrpc/lists"}