Python Toolkit for EOSIO
Project description
Python Toolkit for EOSIO
Quick Start
Latest Release
Installation
pip install uuoskit
Docs
Building from Source Code
Installing Prerequisites
python3 -m pip install scikit-build
python3 -m pip install cython
For Windows platform
python -m pip install scikit-build
python -m pip install cython
- Download and Install gcc compiler from tdm-gcc
- Install Go compiler from download
- Install cmake from download
- Install python3 from downloads
Press Win+R to open Run Dialog, input the following command
cmd -k /path/to/gcc/mingwvars.bat
Downloading Source Code
git clone https://www.github.com/uuosio/uuoskit
cd uuoskit
git submodule update --init --recursive
Build
./build.sh
For Windows platform In the cmd dialog, enter the following command:
python setup.py sdist bdist_wheel
Installation
./install.sh
For Windows platform
python -m pip uninstall uuoskit -y;python -m pip install .\dist\uuoskit-[SUFFIX].whl
Example1
import os
from uuoskit import uuosapi, wallet
if os.path.exists('mywallet.wallet'):
os.remove('mywallet.wallet')
psw = wallet.create('mywallet')
#import your account private key here
wallet.import_key('mywallet', '5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')
uuosapi.set_node('https://eos.greymass.com')
info = uuosapi.get_info()
print(info)
args = {
'from': 'test1',
'to': 'test2',
'quantity': '1.0000 EOS',
'memo': 'hello,world'
}
uuosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})
Async Example
import os
import asyncio
from uuoskit import wallet
from uuoskit.chainapi import ChainApiAsync
if os.path.exists('mywallet.wallet'):
os.remove('mywallet.wallet')
psw = wallet.create('mywallet')
#import your account private key here
wallet.import_key('mywallet', '5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')
async def test():
uuosapi = ChainApiAsync('https://eos.greymass.com')
info = await uuosapi.get_info()
print(info)
args = {
'from': 'test1',
'to': 'test2',
'quantity': '1.0000 EOS',
'memo': 'hello,world'
}
r = await uuosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})
print(r)
asyncio.run(test())
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uuoskit-1.0.3.tar.gz
(94.4 kB
view hashes)
Built Distributions
Close
Hashes for uuoskit-1.0.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdf895928d26b93e43fe9d466f8a6c9deca186d418b89984087d3ea60954960 |
|
MD5 | 5acfa1faf110b7640c505eb752c8832b |
|
BLAKE2b-256 | 9fb533730b71960af8bef7a61bcb457ac57679b9e69758b9a18a245c886238f0 |
Close
Hashes for uuoskit-1.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95cc70efd2181d6124eee10f24e30535a8abee32e8412368c25e0922a2b3a6d |
|
MD5 | 07df815866b8651c6b76c473ce0f12bd |
|
BLAKE2b-256 | 12ef687628c815de3b438dcb2241b9a49e593cad22eae3f2ea55e1b67832850e |
Close
Hashes for uuoskit-1.0.3-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061788af13ca9668b1c9fc92d398c9ceffd3f03813d5a44bf232ac1e37ddab4a |
|
MD5 | 3bdcffe20d983e643e2a4d9ee75bbdc5 |
|
BLAKE2b-256 | e04dbc134e0fcf5545cee5c409e5ea6f01d02e0fa7fc7d9b0f458ff15ca769b1 |
Close
Hashes for uuoskit-1.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b08f12535622838d0a4e4a57a7d7a1f485910da888dc9d17e7eeab756abe91 |
|
MD5 | 742ef48defd92fea1dfc05422ad08384 |
|
BLAKE2b-256 | aee009110f82edd492c38a3b79b6359c93c465f0b5906d975bae20a46642f7ec |
Close
Hashes for uuoskit-1.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c8b9ea03cc6eb75dd87a1efd0f33e3075e5c38a535959fb1b7821d3340faf2f |
|
MD5 | 4cbba410ebf48b2ccf7623c5e8c5ec52 |
|
BLAKE2b-256 | 8841aba3fece730d8d28d1963aee862ecc0df486ef3ddb0fc9604a690d8207ef |
Close
Hashes for uuoskit-1.0.3-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f346727120cbfc1e05dd901a43068a9bad966a6fad563cabe3ec70963148b0c |
|
MD5 | b7b09b63e0a62589718189a4bc5871f9 |
|
BLAKE2b-256 | a9e1990e70b0800503a7db48acf1a4ac336cf052e91c285be0ae1f916bc0fa47 |
Close
Hashes for uuoskit-1.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66573d8a9755ce91b0d2b4ec520344116787edc9a231ff9d4ddbae9250e4e2c |
|
MD5 | 31087c6c7c824901c4fada8523d8888e |
|
BLAKE2b-256 | 57b8e0b275d93d275cb70030776b8a74c7ca98a04187ce7e3348c67fa0fb481f |
Close
Hashes for uuoskit-1.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5bcd88d90072fdc3d7947dd33abaf45e8114776d28ee1731b810ba1b47c741 |
|
MD5 | 1586368e9838b80f78be41917587df35 |
|
BLAKE2b-256 | 6cca1cb4d862012dc7885844fe8540ad5312c94491070e7a555f8128d9acd4d3 |
Close
Hashes for uuoskit-1.0.3-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6a97bf9feee82fdd5d5f376c2b3d5e199abb2a128b6ce759f8b0f0164ce7f7 |
|
MD5 | 6bba894a80e7f9ac9d1f24e8a903f95c |
|
BLAKE2b-256 | 853e073c0b42a28a1e1d2ce0d575dfeea5ed23a83267449e89360f86cbb81331 |
Close
Hashes for uuoskit-1.0.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61d0bdc37ffc01064fade24bbf14d8fc8ff8670160caefa4d2d27cdae4146d2 |
|
MD5 | c772e4c1194549c35f5de7170954e179 |
|
BLAKE2b-256 | 9e190ca82217242399581b3b19cf4059d3d7088a5581a7b525222c9d9366c45d |
Close
Hashes for uuoskit-1.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 344a5b0a0698c17235ec145c2ab5da49c3513ed0729bf3bde4d536d64b578fc1 |
|
MD5 | 9b5ba02d0082af03c40fa6270bc45dd2 |
|
BLAKE2b-256 | 445af1410537cd03411f03420583b1dbec4c757de19f830138af3216f769734b |
Close
Hashes for uuoskit-1.0.3-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9ad8bc9096137756f290e71bc397f4c8daa2385439eca65f320d16bc7b990e |
|
MD5 | 23dcb11a730814b813c7029d5cae2baf |
|
BLAKE2b-256 | eb4ec35f1dd02fca6aaab2854e1a003bacd8a883bbda2ae9cd660eff809d9806 |