{"id":18769425,"url":"https://github.com/learnforpractice/mixin-python","last_synced_at":"2025-10-14T22:32:33.865Z","repository":{"id":53771210,"uuid":"347834741","full_name":"learnforpractice/mixin-python","owner":"learnforpractice","description":"Python bindings for Mixin","archived":false,"fork":false,"pushed_at":"2023-06-26T23:20:59.000Z","size":285,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-31T09:42:13.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","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,"publiccode":null,"codemeta":null}},"created_at":"2021-03-15T04:20:37.000Z","updated_at":"2023-12-06T11:35:01.000Z","dependencies_parsed_at":"2024-06-21T17:57:40.242Z","dependency_job_id":"b0dae7fc-3452-4f86-9d27-877229d5a7ae","html_url":"https://github.com/learnforpractice/mixin-python","commit_stats":{"total_commits":204,"total_committers":4,"mean_commits":51.0,"dds":"0.014705882352941124","last_synced_commit":"827a4bde1e29db5345a66963a2f947a797a30227"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fmixin-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fmixin-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fmixin-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnforpractice%2Fmixin-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/learnforpractice","download_url":"https://codeload.github.com/learnforpractice/mixin-python/tar.gz/refs/heads/main","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:49.401Z","updated_at":"2025-10-14T22:32:28.834Z","avatar_url":"https://github.com/learnforpractice.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Bindings for [Mixin](https://github.com/mixinNetwork/mixin)\n\n[![PyPi](https://img.shields.io/pypi/v/mixin-python.svg)](https://pypi.org/project/mixin-python)\n[![PyPi](https://img.shields.io/pypi/dm/mixin-python.svg)](https://pypi.org/project/mixin-python)\n\n\n\u003ch3\u003e\n  \u003ca\n    target=\"_blank\"\n    href=\"https://mybinder.org/v2/gh/learnforpractice/mixin-python/HEAD?filepath=notebook%2Fhelloworld.ipynb\"\n  \u003e\n    Quick Start\n    \u003cimg alt=\"Binder\" valign=\"bottom\" height=\"25px\"\n    src=\"https://mybinder.org/badge_logo.svg\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/h3\u003e\n\n# Install mixin-python\n\n```bash\npip install mixin-python\n```\n\n# Quick Start\n\n```python\nimport asyncio\nfrom pymixin.mixin_api import MixinApi\napi = MixinApi('http://mixin-node0.exinpool.com:8239')\naddr = api.create_address()\nprint(addr)\n\nasync def get_info():\n  info = await api.get_info()\n  print(info)\n\nasyncio.run(get_info())\n\n```\n\n```\n    {'address': 'XIN9M9T32UhraHpJ9Do4s7FVFeTpery49JB1u6bAcgLe2wY4As918roNTVmbh3GXuuoRLx5FyeuhvUQUmvtWtUthGdgBCdMG',\n     'view_key': '6396fd4201bbec6f495ded697428003dfd227578174f97e034c94e1abb420d0f',\n     'spend_key': '02f0ea8504740a1c2916e1b9965c23c242aeeb02d093f3f1ed0e5e0d494bc603'}\n```\n\n# Run Mixin from Python\n\n```bash\npython3 -m pymixin.main kernel --dir config --port 9000\n```\n\n# Run a Local Mixin Testnet\n\n```bash\npython3 tests/start_testnet.py\n```\n\nConnect to Local Testnet\n\n```python\nimport asyncio\nfrom pymixin.mixin_api import MixinApi\napi = MixinApi('http://127.0.0.1:8001')\n\nasync def get_info():\n  info = await api.get_info()\n  print(info)\n\nasyncio.run(get_info())\n```\n\n# [Releases](https://github.com/learnforpractice/mixin-python/releases)\n\n# [Docs](https://learnforpractice.github.io/mixin-python/)\n\n# Install Build Dependencies\n\nclang \u0026 go 1.16 \u0026 cmake\n\nUbuntu\n```\nsudo apt install python3-dev\nsudo apt install python3-pip\nsudo apt install clang\nsudo apt install cmake\n```\n\n[Intall golang](https://golang.org/doc/install)\n\n\n# Building\n\n### Download Source Code\n\n```\ngit clone https://github.com/learnforpractice/mixin-python --recursive\ncd mixin-python\npython3 -m pip install -r requirements-dev.txt \n```\n\n### Update mixin-python Source Code\n\n```bash\ngit pull\ngit submodule update --init --recursive\n```\n\n### Build on Linux\n\n```\n./build-linux.sh\n```\n\n### Build on macOS X\n\n```\n./build-mac.sh\n```\n\n# Run Tests in Jupyter Notebook\n```bash\npython3 -m pip install notebook\ncd notebook\npython3 -m notebook\n```\n\nOpen helloworld.ipynb, hit Ctrl+Enter to run the test code in cell\n\nDo not forget to run testnet.stop() to stop the testnet, otherwise the testnet processes will still running in the backgroud.\n\n# Reference\n\nhttps://github.com/wenewzhang/mixin-python3-sdk\n\n# License\n\n[GPL3.0](./LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnforpractice%2Fmixin-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flearnforpractice%2Fmixin-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnforpractice%2Fmixin-python/lists"}