Python Toolkit for EOS
Project description
Python Toolkit for EOS
Latest Release
Installation
pip install pyeoskit
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/pyeoskit
cd pyeoskit
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 pyeoskit -y;python -m pip install .\dist\pyeoskit-[SUFFIX].whl
Example1
import os
from pyeoskit import eosapi, 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')
eosapi.set_node('https://eos.greymass.com')
info = eosapi.get_info()
print(info)
args = {
'from': 'test1',
'to': 'test2',
'quantity': '1.0000 EOS',
'memo': 'hello,world'
}
eosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})
Async Example
import os
import asyncio
from pyeoskit import wallet
from pyeoskit.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():
eosapi = ChainApiAsync('https://eos.greymass.com')
info = await eosapi.get_info()
print(info)
args = {
'from': 'test1',
'to': 'test2',
'quantity': '1.0000 EOS',
'memo': 'hello,world'
}
r = await eosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})
print(r)
asyncio.run(test())
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 Distribution
pyeoskit-1.0.5.tar.gz
(83.0 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.0.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7492fc68455e5e37fc2aaff27e972b33dd739855d1ae537a2dcf4d30c0dce0ce |
|
MD5 | d9fbd581dffe4b340fdc08fea609facd |
|
BLAKE2b-256 | 2f920fece01ade93798637771e4e7132c864167e55562f2735a11a85a892ce98 |
Close
Hashes for pyeoskit-1.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813efb996f56509956207420620388646109f106f061f0f4ac26105c12422810 |
|
MD5 | 1ce24edbd71eeaaa9ec162abceb9853c |
|
BLAKE2b-256 | 402cbd5ec3b31253570e5533956655821365156e13e32f56ccaee9858cc310d3 |
Close
Hashes for pyeoskit-1.0.5-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b1b4df342a2b717fbae9b72a51717e22d4827fca89ff621bfd66c9c764eebe |
|
MD5 | 4a950797ec82c47cc84053a5dbaf465b |
|
BLAKE2b-256 | 80f6792057d5ba8d4016675c2ddec283238250f934eb33280a67aef5f133be9a |
Close
Hashes for pyeoskit-1.0.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0d3fc8dd1c7b03fbc076bcd6a51b0ba6629027a666e8672077608902db9c87 |
|
MD5 | f3a581deb3880e5276586db56f543a11 |
|
BLAKE2b-256 | d3e7054186eb841fa8090d01e19963b5d7f12dedbc7b6ce62fc7d45c0a70e052 |
Close
Hashes for pyeoskit-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e95cb4d2e1b139fbab362da8a9e3c85711210e8e0bc7488b9b05793c0104151 |
|
MD5 | ba03798697264d44d781cf882ce0384e |
|
BLAKE2b-256 | e23e4d2ca1d999b43d633611cdb0c64fc6ecb2b2c78635faf51b33bced53ec30 |
Close
Hashes for pyeoskit-1.0.5-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71ebcc84349711ab05da32d1d9d38338e3f4f277c34e4154e5fe63a0563adee |
|
MD5 | a09810043adfcf6d264f554a4b3573a2 |
|
BLAKE2b-256 | 70cf966f9c6e4efd622565206177b4aa0c8da39b3f8925d173e0d4d795244348 |
Close
Hashes for pyeoskit-1.0.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f67a615f678f239a0410f965f6e52b7b283c46a0722ea3aa0f1815817d69913 |
|
MD5 | 41ed20ce51cd5b1f515fde4d538e2406 |
|
BLAKE2b-256 | 842a7ab1c43aa5d076f1cda74641b32ff30e756b419eb18f2999606061cdfdf2 |
Close
Hashes for pyeoskit-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b07763ca6787469d32338ec64b747b535e86ff4d6a9d2138a734982c6ebd2f |
|
MD5 | 05beec9af21259de713d5b621eaa278f |
|
BLAKE2b-256 | e7a07a28d0e3b0be934ce9b8ef523504f34a4cb42178b52772bf88185f3a82cb |
Close
Hashes for pyeoskit-1.0.5-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbf0d3af6db40877ff67e940f36e4d8abe14f187dc130e2e11170c1422fdb375 |
|
MD5 | dec2571e5fef4ef3c710347246c02e57 |
|
BLAKE2b-256 | 0775f79c62da73d0042e1e8bdb7300a0c6e545c0d59aebcec107e140a22414c9 |
Close
Hashes for pyeoskit-1.0.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fe9e7ef5d3334bb3d35ff67216e92b63c8b8c5c0c0f0c8e4722ffeb0e72d23 |
|
MD5 | 5fa5b66287ac6dce7fef9eeb4834f25d |
|
BLAKE2b-256 | 21710259e0281cb1426412999314158fac8f52cf519a2b66bbe62c4c33d40f50 |
Close
Hashes for pyeoskit-1.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4b27b6f26366d2811bdc82fadddd23438f4607e532dfc49c266a274b0eb5ddd |
|
MD5 | 235f55e4d22e19fa17422333a74999b8 |
|
BLAKE2b-256 | 84bf936576b5ad00dbfd89cc4836a7201ab5faca628aa1f8014a449b0602a4b8 |
Close
Hashes for pyeoskit-1.0.5-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21fd656e5a3ba5960b41c05d10f6d02190ede6d41d0455fef6cef7084995f77 |
|
MD5 | f317d9ddc3640de2fcc558176a5a77ae |
|
BLAKE2b-256 | d14a63d48a3633712d5ae5f7b02dccb12fa753ea58d72d33e97bdfb68b094ea8 |