Mixin Binding Project
Project description
Python Bindings for Mixin
Quick Start
Install mixin-python
pip install mixin-python
Quick Start
import asyncio
from pymixin.mixin_api import MixinApi
api = MixinApi('http://mixin-node0.exinpool.com:8239')
addr = api.create_address()
print(addr)
async def get_info():
info = await api.get_info()
print(info)
asyncio.run(get_info())
{'address': 'XIN9M9T32UhraHpJ9Do4s7FVFeTpery49JB1u6bAcgLe2wY4As918roNTVmbh3GXuuoRLx5FyeuhvUQUmvtWtUthGdgBCdMG',
'view_key': '6396fd4201bbec6f495ded697428003dfd227578174f97e034c94e1abb420d0f',
'spend_key': '02f0ea8504740a1c2916e1b9965c23c242aeeb02d093f3f1ed0e5e0d494bc603'}
Run Mixin from Python
python3 -m pymixin.main kernel --dir config --port 9000
Run a Local Mixin Testnet
python3 tests/start_testnet.py
Connect to Local Testnet
import asyncio
from pymixin.mixin_api import MixinApi
api = MixinApi('http://127.0.0.1:8001')
async def get_info():
info = await api.get_info()
print(info)
asyncio.run(get_info())
Releases
Docs
Install Build Dependencies
clang & go 1.16 & cmake
Ubuntu
sudo apt install python3-dev
sudo apt install python3-pip
sudo apt install clang
sudo apt install cmake
Building
Download Source Code
git clone https://github.com/learnforpractice/mixin-python --recursive
cd mixin-python
python3 -m pip install -r requirements-dev.txt
Update mixin-python Source Code
git pull
git submodule update --init --recursive
Build on Linux
./build-linux.sh
Build on macOS X
./build-mac.sh
Run Tests in Jupyter Notebook
python3 -m pip install notebook
cd notebook
python3 -m notebook
Open helloworld.ipynb, hit Ctrl+Enter to run the test code in cell
Do not forget to run testnet.stop() to stop the testnet, otherwise the testnet processes will still running in the backgroud.
Reference
https://github.com/wenewzhang/mixin-python3-sdk
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file mixin_python-0.2.10-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c77c1cc2864edcc1ef0ae02376eb624b60e4850a42eb0070b69980ba7a899360 |
|
MD5 | 8156816aa27f5be7a02137829be004ef |
|
BLAKE2b-256 | 5db1eea349f2069e7b3f921df173e8b24e1b8b93b8c6266f558184b538985a71 |
File details
Details for the file mixin_python-0.2.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d56a1643835baaf81eaba90ce8eb81379c20b77404587bec41bbf4e482173933 |
|
MD5 | 66421b513568554ce9d38a4f0a689f9f |
|
BLAKE2b-256 | 0b5f668f4a07ba80c3e0faeebe9da193d9b17ef1ff45d136139b5d6d722085a8 |
File details
Details for the file mixin_python-0.2.10-cp311-cp311-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp311-cp311-macosx_10_15_x86_64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.11, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9066bf0d07a7ba0f3c889b3ec6eec9923a1320ceb352be9db9d0460aba93fd |
|
MD5 | 58e04d9c2f871df17c9bc38864fa6d88 |
|
BLAKE2b-256 | aa452eb3aa631cd08f364daa130bb1e4b5b3555592989c61fe3d38f8f6db28de |
File details
Details for the file mixin_python-0.2.10-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dd1a27643c75013a80c34de92130362beba10b36aa5f98d21caf01fceb20f87 |
|
MD5 | 520bf85e0ae3a556b9883be404e82345 |
|
BLAKE2b-256 | bb99ef010c228c913422c1f86686cd5cd6b81f8b2f532e185f05f2ea46c65f2d |
File details
Details for the file mixin_python-0.2.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc71717e2638762db7214e15a09a839d0c3f572944b376ce195af88aa44456a |
|
MD5 | 13551664c1f0098770f51f01c3258de3 |
|
BLAKE2b-256 | 016762c0646440c02fe1ee37df32115adc256feece9546ad93293b5eb507760a |
File details
Details for the file mixin_python-0.2.10-cp310-cp310-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1de6d8c01405a131c4898b65f0c74bf46bb1247e081062063645b7ca07d43ae |
|
MD5 | 82ba518a0b5cc4e88dbff41e3eeac1fb |
|
BLAKE2b-256 | 3568e36bf1f8b1fec69a734f127af30e250617ffa78239024a088ff6b0c5f612 |
File details
Details for the file mixin_python-0.2.10-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13c1527f1f82a01f2f159d3c55c27e963de18f5196bdfe76ebdd81338427e70 |
|
MD5 | db24b070b3fe3e2b587914b0a4fcf248 |
|
BLAKE2b-256 | 6be789b496c0da8ec1741c38a06aa6b9f2974e7b357813f7c6396ac783af8492 |
File details
Details for the file mixin_python-0.2.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd45314f197287169d456d1fb39f3b4e130a76d06c5d88bea71737213742c642 |
|
MD5 | beb2ad5c1aa78a813d7d32ecf4e450ca |
|
BLAKE2b-256 | 9672888cc8339e539cbf8791cc89f670226cccb5883773203e202752eac485c0 |
File details
Details for the file mixin_python-0.2.10-cp39-cp39-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5623fd132c213f73d264dc1ea8aee3a552bc48c820de7a73127d215c40601e40 |
|
MD5 | c45c44fc4a63223150f33cf15f0e8b16 |
|
BLAKE2b-256 | 976aad2ec9ea9ca1b4cd4155f73221e6f4ab4075f4bb2394942bd9fd04fb4850 |
File details
Details for the file mixin_python-0.2.10-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a09141a373a3aa774afec7c1fc37579c5794aabdb47d908e5a461e97c3af5a02 |
|
MD5 | 4fc8cc3005418e4e94873fa9ebce3495 |
|
BLAKE2b-256 | 184c1adad270d2bcff4a34471e28f891cd13a374cfb29559c458c12dbc4c9290 |
File details
Details for the file mixin_python-0.2.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | facd186f193ecf4cef13d5bf691d4cf3f23cb2c8064a302d6c4a063d258fc12f |
|
MD5 | 17fc3457745252cd21180657caed3a3b |
|
BLAKE2b-256 | 1116116541bd385e6db3c9f23bfc11c9b8fad4620b993037820e212e3ca98fdc |
File details
Details for the file mixin_python-0.2.10-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6c4f0ba35c18b2d53812a661bc810c51d08485b979293d41b2f68c635877f21 |
|
MD5 | ebb36ec3b9b11e9e80a519fb30189d34 |
|
BLAKE2b-256 | 77025b07f3969e8e698f99d7cffd9a5153eef23137dc0910bc1a5a4a1ad63ed8 |
File details
Details for the file mixin_python-0.2.10-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1acf57f295cc8b817a2b15cd6244d8e017a352cef8bb4d0fc06d3f3d8d6e3e16 |
|
MD5 | 5cab401fdf845939eef3db1d12166a1a |
|
BLAKE2b-256 | 9bbd7bd812ec5ee0d37c3a2b2af4d05b880ec509ad9c41b28d1c2fe339b59ad1 |
File details
Details for the file mixin_python-0.2.10-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 13.2 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82ce8c08039df678302c11f2e9a6e06fed822e9671d1aacc04ad7aa3a75142a |
|
MD5 | b891ff53854c4b6132ce2509f860a7ba |
|
BLAKE2b-256 | 21293e0daeec43173f7f31f80d141be37af4d4f6991c4e1dfbde10ca676a69d3 |
File details
Details for the file mixin_python-0.2.10-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: mixin_python-0.2.10-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22bc162bd2a7f08cd566c89313e8731c7dc64d40329779c3529e2ff1d522c67b |
|
MD5 | 53c124ac3636221e0a961d80205d1cdf |
|
BLAKE2b-256 | 1a092f4ccb7de442dec624b51d7719a55332653240c67bfceb2fd57ccac76401 |