{"id":18769434,"url":"https://github.com/learnforpractice/pyeoskit","last_synced_at":"2025-04-13T07:31:24.403Z","repository":{"id":41474242,"uuid":"151916767","full_name":"learnforpractice/pyeoskit","owner":"learnforpractice","description":"Python Toolkit for Eos","archived":false,"fork":false,"pushed_at":"2024-01-31T02:57:19.000Z","size":11151,"stargazers_count":16,"open_issues_count":2,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-09T08:56:12.009Z","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/learnforpractice.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,"dei":null}},"created_at":"2018-10-07T07:31:04.000Z","updated_at":"2024-07-08T14:10:55.000Z","dependencies_parsed_at":"2024-01-31T03:46:08.220Z","dependency_job_id":"e7f6f37c-3a28-4ffc-88db-495473f76345","html_url":"https://github.com/learnforpractice/pyeoskit","commit_stats":{"total_commits":569,"total_committers":5,"mean_commits":113.8,"dds":"0.024604569420035194","last_synced_commit":"59073cd863cf9989e035e422cd8804b2cfa5ab42"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fpyeoskit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fpyeoskit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fpyeoskit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fpyeoskit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/learnforpractice","download_url":"https://codeload.github.com/learnforpractice/pyeoskit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223573772,"owners_count":17167369,"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-07T19:15:51.007Z","updated_at":"2024-11-07T19:15:51.790Z","avatar_url":"https://github.com/learnforpractice.png","language":"Python","readme":"Python Toolkit for EOS\n\n[![PyPi](https://img.shields.io/pypi/v/pyeoskit.svg)](https://pypi.org/project/pyeoskit)\n[![PyPi](https://img.shields.io/pypi/dm/pyeoskit.svg)](https://pypi.org/project/pyeoskit)\n\n# Installation\n\n## On Linux platform\n\n```bash\npython3 -m pip install -U pip\npython3 -m pip install pyeoskit\n```\n\n## On Windows platform:\n\n```bash\npython -m pip install -U pip\npython -m pip install pyeoskit\n```\n\n## On Apple M1 hardware\n\npyeoskit does not have pre-built versions available for ARM chips. in order to build it from source code, you need to install `cmake`, `go`, `scikit-build`, `cython`.\n\n```bash\nbrew install go\nbrew install cython\nxcode-select --install\npython3 -m pip install -U pip\npython3 -m pip install cmake\npython3 -m pip install scikit-build\npython3 -m pip install pyeoskit\n```\n\n# Code Examples\n\n## Example1\n```python\nimport os\nfrom pyeoskit import eosapi, wallet\n#import your account private key here\nwallet.import_key('mywallet', '5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')\n\neosapi.set_node('https://eos.greymass.com')\ninfo = eosapi.get_info()\nprint(info)\nargs = {\n    'from': 'test1',\n    'to': 'test2',\n    'quantity': '1.0000 EOS',\n    'memo': 'hello,world'\n}\neosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})\n```\n\n## Async Example\n```python\nimport os\nimport asyncio\nfrom pyeoskit import wallet\nfrom pyeoskit.chainapi import ChainApiAsync\n\n#import your account private key here\nwallet.import_key('mywallet', '5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')\n\nasync def test():\n    eosapi = ChainApiAsync('https://eos.greymass.com')\n    info = await eosapi.get_info()\n    print(info)\n    args = {\n        'from': 'test1',\n        'to': 'test2',\n        'quantity': '1.0000 EOS',\n        'memo': 'hello,world'\n    }\n    r = await eosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})\n    print(r)\n\nasyncio.run(test())\n```\n\n## Sign With Ledger Hardware Wallet Example\n```python\nimport os\nfrom pyeoskit import eosapi\neosapi.set_node('https://eos.greymass.com')\nargs = {\n    'from': 'test1',\n    'to': 'test2',\n    'quantity': '1.0000 EOS',\n    'memo': 'hello,world'\n}\n\n#indices is an array of ledger signing key indices\neosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'}, indices=[0])\n```\n\n\n\n\n# [Docs](https://learnforpractice.github.io/pyeoskit/#/MODULES?id=pyeoskit-modules)\n\n# Building from Source Code\n\n### Installing Prerequisites\n\n```\npython3 -m pip install scikit-build\npython3 -m pip install cython\n```\n\nFor Windows platform\n\n```\npython -m pip install scikit-build\npython -m pip install cython\n```\n\n1. Download and Install gcc compiler from [tdm-gcc](https://jmeubank.github.io/tdm-gcc)\n2. Install Go compiler from [download](https://golang.org/doc/install#download)\n3. Install cmake from [download](https://cmake.org/download)\n4. Install python3 from [downloads](https://www.python.org/downloads/windows/)\n\nPress Win+R to open Run Dialog, input the following command\n```\ncmd -k /path/to/gcc/mingwvars.bat\n```\n\n### Downloading Source Code\n\n```\ngit clone https://www.github.com/learnforpractice/pyeoskit\ncd pyeoskit\ngit submodule update --init --recursive\n```\n\n### Build\n```\n./build.sh\n```\n\nFor Windows platform, in the cmd dialog, enter the following command:\n```\npython setup.py sdist bdist_wheel\n```\n\n### Installation\n\n```\n./install.sh\n```\n\nFor Windows platform\n```\npython -m pip uninstall pyeoskit -y;python -m pip install .\\dist\\pyeoskit-[SUFFIX].whl\n```\n\n### License\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnforpractice%2Fpyeoskit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flearnforpractice%2Fpyeoskit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnforpractice%2Fpyeoskit/lists"}