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.1.tar.gz
(113.2 kB
view hashes)
Built Distributions
Close
Hashes for uuoskit-1.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7118be61dc29c8f7f68a56b471c96d020ccf44a67b5a146b4a3044eba87092 |
|
MD5 | 6e4b8742fedd3a10fb41c568aa99883d |
|
BLAKE2b-256 | 298526eac0f5d6d8339036c4240f4ad3b8fa8c85be6effa7e5bef263b9cd5e25 |
Close
Hashes for uuoskit-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 597b2bf94327411383e34cb2508449f02f0a03061889aa4061159bc4cbf5c29c |
|
MD5 | b2a4e5b17920ea5e5c5bc56848e9f823 |
|
BLAKE2b-256 | 9169684e6f28cd16d9cd676546d000b0f9a5a7e4251d11c291324043f942d080 |
Close
Hashes for uuoskit-1.0.1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 188f99cca49c5fe6ceed0adca5492fea28a9967d7665c0a47d310d58344a1ae5 |
|
MD5 | 3f53a9efa5523ec6ce6a365998d99086 |
|
BLAKE2b-256 | 7c29f61352417199b5649351777a1304cbe05b23cea0d0c6d666b3d599883c94 |
Close
Hashes for uuoskit-1.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e7b0754a3f64703e30b6db4a64934a39a0804721b29270f6e7e468f93416d36 |
|
MD5 | 8d8247b6077b0a70ecb64df7f6a32ad8 |
|
BLAKE2b-256 | 81b61be5a8e61dd5feb9d6bfe4146b6c0dccb4819897b603a6961e98033979d6 |
Close
Hashes for uuoskit-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73d14531fce697ee0a70c20692600f2b376873a120b52ddcc67cb2304a917766 |
|
MD5 | 8a47d49320daf5110366ffdc725d8e6f |
|
BLAKE2b-256 | c1e5b6eb3613d25c137e08da95474d38ba94d44b7d9e11ad1ef8ef661449d9b9 |
Close
Hashes for uuoskit-1.0.1-cp39-cp39-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b362c518db2e6c0b24f7e6152ea3ea587b479b8800070c60fe37cf5e0124c2b7 |
|
MD5 | 56eb07722c3b9132c6bd7b99ecab3e70 |
|
BLAKE2b-256 | 268a026ee05803558841847129df768e74853c841dc07e4940c67b9d4fdb889d |
Close
Hashes for uuoskit-1.0.1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef638e567be611ce8e8de77157c44c625e10b142ec1621a1e05161daa69c4e6a |
|
MD5 | ef5ffb0666d666969857bc65f0c15596 |
|
BLAKE2b-256 | 40e68af6ab5f973bedf2c8a718ec66d8bbfb6145632ed3aa3a65cc57e321dbdf |
Close
Hashes for uuoskit-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11265294126b30e6e4195f6763ca89cd2eb6a9b1032a27e0a044aaaa2c4ec95e |
|
MD5 | 486d2d30620d4abe42de018cd188cb18 |
|
BLAKE2b-256 | 33598487df770bbecac62c02103efc5d82731efd540d95c4911076ad0adcc219 |
Close
Hashes for uuoskit-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e8fb03a0e747815553dc0798325b39afc2513a878e6a51de9b9ad4306dd123 |
|
MD5 | 9fb684854af26c0765be72937b6e01cf |
|
BLAKE2b-256 | d2c2aef0bb2ce63d7f78c4783d3cbb8e35a27196ca6f9da2312f965fee53d11e |
Close
Hashes for uuoskit-1.0.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05b9549336c6145d1827d6e3a77171b7b1890294221b14e929bd91c1f6ba743 |
|
MD5 | d2efdf3efb79b70ac439abbd8bd2de30 |
|
BLAKE2b-256 | 089774061f1f5a2379dc2b9926d0cb1d05ca3de1ce1f6070ec3d3b6b6a66b357 |
Close
Hashes for uuoskit-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d8a6c930f309b0bdc29d80462f62f659e3df43a5dee23cf0322d7e6ca150ad5 |
|
MD5 | 3d1607ed2eca6d5e7ceb572606f60e88 |
|
BLAKE2b-256 | d680bd93ff77ab17fc8b521639aedafdd9c319b5084efb7a83c396025013d573 |
Close
Hashes for uuoskit-1.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46ae5ea07329d6c2ed786f1301f8c51fad99fbc289100df80506a011c81d2c6 |
|
MD5 | af2355a5b3fdc4a2dc4a5e23074658f4 |
|
BLAKE2b-256 | be24f3cc356dc8c7347d0b4a21064f0d835c2a6f4d051e138f7fe98743ff56eb |
Close
Hashes for uuoskit-1.0.1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1fbf4c69bca4a35a5cb7ad3cb1b53db279ba7c4122e58b7cdc8e3013167d3b |
|
MD5 | e2a33d7fc64e9c483dc41df34f746534 |
|
BLAKE2b-256 | 027c4ae8c57336c8814d61ecb16fedd2a8cb39b4ff4b020b7278a7131e81ba6e |