{"id":13453296,"url":"https://github.com/Netherdrake/py-eos-api","last_synced_at":"2025-03-24T01:31:18.597Z","repository":{"id":77058564,"uuid":"103629328","full_name":"Netherdrake/py-eos-api","owner":"Netherdrake","description":"Unofficial Wrapper for EOS API (eosd) for Python 3.6+","archived":false,"fork":false,"pushed_at":"2018-05-18T14:34:48.000Z","size":23,"stargazers_count":54,"open_issues_count":1,"forks_count":21,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-28T20:38:01.728Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Netherdrake.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-15T07:44:07.000Z","updated_at":"2024-05-17T14:24:51.000Z","dependencies_parsed_at":"2024-01-18T17:43:22.817Z","dependency_job_id":"94216027-dbc6-4b08-8b3a-847268cc5046","html_url":"https://github.com/Netherdrake/py-eos-api","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/Netherdrake%2Fpy-eos-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netherdrake%2Fpy-eos-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netherdrake%2Fpy-eos-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Netherdrake%2Fpy-eos-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Netherdrake","download_url":"https://codeload.github.com/Netherdrake/py-eos-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245194207,"owners_count":20575724,"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-07-31T08:00:37.589Z","updated_at":"2025-03-24T01:31:18.299Z","avatar_url":"https://github.com/Netherdrake.png","language":"Python","readme":"## Python EOS Api Client\nThis is an unofficial API wrapper by [@furion](https://steemit.com/@furion)\n\n## Installation\n```\npip install -U git+https://github.com/Netherdrake/py-eos-api\n```\n\n## Usage\n```python\n\u003e\u003e\u003e from eosapi import Client\n\u003e\u003e\u003e c = Client(nodes=['http://localhost:8888'])\n\n\u003e\u003e\u003e c.get_info()\n\n    {'head_block_id': '0000652e92c1f73e14503383ee18c28901dd301ff5be0b94c77d846d799d5050',\n     'head_block_num': 25902,\n     'head_block_producer': 'initi',\n     'head_block_time': '2017-09-16T04:25:18',\n     'last_irreversible_block_num': 25884,\n     'participation_rate': '1.00000000000000000',\n     'recent_slots': '1111111111111111111111111111111111111111111111111111111111111111'}\n\n\u003e\u003e\u003e c.get_account?\n\n    Signature: c.get_account(name) -\u003e dict\n    Docstring: Fetch a blockchain account\n    File:      ~/GitHub/EOS/py-eos-api/eosapi/api.py\n    Type:      method\n\n\u003e\u003e\u003e c.get_account('inita')\n\n    {'eos_balance': '1000000.0000 EOS',\n     'last_unstaking_time': '1969-12-31T23:59:59',\n     'name': 'inita',\n     'permissions': [{'name': 'active',\n       'parent': 'owner',\n       'required_auth': {'accounts': [],\n        'keys': [{'key': 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV',\n          'weight': 1}],\n        'threshold': 1}},\n      {'name': 'owner',\n       'parent': 'owner',\n       'required_auth': {'accounts': [],\n        'keys': [{'key': 'EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV',\n          'weight': 1}],\n        'threshold': 1}}],\n     'staked_balance': '0.0000 EOS',\n     'unstaking_balance': '0.0000 EOS'}\n```\n\nYou can also use a lower level `HttpClient` directly:\n```python\nfrom eosapi import HttpClient\n\nh = HttpClient([\"http://localhost:8888\"])\n\nprint(h.exec('chain', 'get_block', '{\"block_num_or_id\": 5}'))\nprint(h.exec('chain', 'get_block', {\"block_num_or_id\": 5}))\nprint(h.exec('chain', 'get_info'))\n```\n\nYou can also stream raw blocks (polling indefinitely):\n```python\nfrom eosapi import Client\nc = Client()\n\nfor block in c.stream_blocks(start_block=100, mode='head'):\n    print(block)\n```\n\n### TODO\n - add support for type hints _(Union[NativeType, PythonType])_\n - split api into submodules to avoid potential collisions\n - apigen: load from json spec files once they are finalized\n\n### License\nMIT\n","funding_links":[],"categories":["EOS Smart Contract Development","Language Support","EOS Libraries"],"sub_categories":["Programming tools","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNetherdrake%2Fpy-eos-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNetherdrake%2Fpy-eos-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNetherdrake%2Fpy-eos-api/lists"}