Skip to main content

Python Bindings for Mixin

PyPi PyPi

Quick Start Binder

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

Intall golang

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

GPL3.0

Metadata

Release files for mixin-python 0.2.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for mixin-python 0.2.10
File
mixin_python-0.2.10-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
mixin_python-0.2.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details
mixin_python-0.2.10-cp311-cp311-macosx_10_15_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.15+ x86-64 Details
mixin_python-0.2.10-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
mixin_python-0.2.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.5+ x86-64, Linux glibc 2.17+ x86-64 Details
mixin_python-0.2.10-cp310-cp310-macosx_10_15_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.15+ x86-64 Details
mixin_python-0.2.10-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
mixin_python-0.2.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64, Linux glibc 2.17+ x86-64 Details
mixin_python-0.2.10-cp39-cp39-macosx_10_15_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.15+ x86-64 Details
mixin_python-0.2.10-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
mixin_python-0.2.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64, Linux glibc 2.17+ x86-64 Details
mixin_python-0.2.10-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details
mixin_python-0.2.10-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
mixin_python-0.2.10-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details
mixin_python-0.2.10-cp37-cp37m-macosx_10_15_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64 Details

Total release size: 169.6 MB

Release files / mixin_python-0.2.10-cp311-cp311-win_amd64.whl

Download URL mixin_python-0.2.10-cp311-cp311-win_amd64.whl
Size 13.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c77c1cc2864edcc1ef0ae02376eb624b60e4850a42eb0070b69980ba7a899360
BLAKE2b-256 checksum
How to use checksums
5db1eea349f2069e7b3f921df173e8b24e1b8b93b8c6266f558184b538985a71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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
Size 13.2 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
d56a1643835baaf81eaba90ce8eb81379c20b77404587bec41bbf4e482173933
BLAKE2b-256 checksum
How to use checksums
0b5f668f4a07ba80c3e0faeebe9da193d9b17ef1ff45d136139b5d6d722085a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp311-cp311-macosx_10_15_x86_64.whl

Download URL mixin_python-0.2.10-cp311-cp311-macosx_10_15_x86_64.whl
Size 7.7 MB
Tags CPython 3.11 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
1b9066bf0d07a7ba0f3c889b3ec6eec9923a1320ceb352be9db9d0460aba93fd
BLAKE2b-256 checksum
How to use checksums
aa452eb3aa631cd08f364daa130bb1e4b5b3555592989c61fe3d38f8f6db28de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp310-cp310-win_amd64.whl

Download URL mixin_python-0.2.10-cp310-cp310-win_amd64.whl
Size 13.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
7dd1a27643c75013a80c34de92130362beba10b36aa5f98d21caf01fceb20f87
BLAKE2b-256 checksum
How to use checksums
bb99ef010c228c913422c1f86686cd5cd6b81f8b2f532e185f05f2ea46c65f2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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
Size 13.2 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
7cc71717e2638762db7214e15a09a839d0c3f572944b376ce195af88aa44456a
BLAKE2b-256 checksum
How to use checksums
016762c0646440c02fe1ee37df32115adc256feece9546ad93293b5eb507760a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp310-cp310-macosx_10_15_x86_64.whl

Download URL mixin_python-0.2.10-cp310-cp310-macosx_10_15_x86_64.whl
Size 7.7 MB
Tags CPython 3.10 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
b1de6d8c01405a131c4898b65f0c74bf46bb1247e081062063645b7ca07d43ae
BLAKE2b-256 checksum
How to use checksums
3568e36bf1f8b1fec69a734f127af30e250617ffa78239024a088ff6b0c5f612
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp39-cp39-win_amd64.whl

Download URL mixin_python-0.2.10-cp39-cp39-win_amd64.whl
Size 13.0 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
a13c1527f1f82a01f2f159d3c55c27e963de18f5196bdfe76ebdd81338427e70
BLAKE2b-256 checksum
How to use checksums
6be789b496c0da8ec1741c38a06aa6b9f2974e7b357813f7c6396ac783af8492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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
Size 13.2 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
fd45314f197287169d456d1fb39f3b4e130a76d06c5d88bea71737213742c642
BLAKE2b-256 checksum
How to use checksums
9672888cc8339e539cbf8791cc89f670226cccb5883773203e202752eac485c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp39-cp39-macosx_10_15_x86_64.whl

Download URL mixin_python-0.2.10-cp39-cp39-macosx_10_15_x86_64.whl
Size 7.7 MB
Tags CPython 3.9 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
5623fd132c213f73d264dc1ea8aee3a552bc48c820de7a73127d215c40601e40
BLAKE2b-256 checksum
How to use checksums
976aad2ec9ea9ca1b4cd4155f73221e6f4ab4075f4bb2394942bd9fd04fb4850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp38-cp38-win_amd64.whl

Download URL mixin_python-0.2.10-cp38-cp38-win_amd64.whl
Size 13.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
a09141a373a3aa774afec7c1fc37579c5794aabdb47d908e5a461e97c3af5a02
BLAKE2b-256 checksum
How to use checksums
184c1adad270d2bcff4a34471e28f891cd13a374cfb29559c458c12dbc4c9290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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
Size 13.2 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
facd186f193ecf4cef13d5bf691d4cf3f23cb2c8064a302d6c4a063d258fc12f
BLAKE2b-256 checksum
How to use checksums
1116116541bd385e6db3c9f23bfc11c9b8fad4620b993037820e212e3ca98fdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp38-cp38-macosx_10_15_x86_64.whl

Download URL mixin_python-0.2.10-cp38-cp38-macosx_10_15_x86_64.whl
Size 7.7 MB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
b6c4f0ba35c18b2d53812a661bc810c51d08485b979293d41b2f68c635877f21
BLAKE2b-256 checksum
How to use checksums
77025b07f3969e8e698f99d7cffd9a5153eef23137dc0910bc1a5a4a1ad63ed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp37-cp37m-win_amd64.whl

Download URL mixin_python-0.2.10-cp37-cp37m-win_amd64.whl
Size 13.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
1acf57f295cc8b817a2b15cd6244d8e017a352cef8bb4d0fc06d3f3d8d6e3e16
BLAKE2b-256 checksum
How to use checksums
9bbd7bd812ec5ee0d37c3a2b2af4d05b880ec509ad9c41b28d1c2fe339b59ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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
Size 13.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
f82ce8c08039df678302c11f2e9a6e06fed822e9671d1aacc04ad7aa3a75142a
BLAKE2b-256 checksum
How to use checksums
21293e0daeec43173f7f31f80d141be37af4d4f6991c4e1dfbde10ca676a69d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / mixin_python-0.2.10-cp37-cp37m-macosx_10_15_x86_64.whl

Download URL mixin_python-0.2.10-cp37-cp37m-macosx_10_15_x86_64.whl
Size 7.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
22bc162bd2a7f08cd566c89313e8731c7dc64d40329779c3529e2ff1d522c67b
BLAKE2b-256 checksum
How to use checksums
1a092f4ccb7de442dec624b51d7719a55332653240c67bfceb2fd57ccac76401
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Security for mixin-python 0.2.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page