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 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 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():
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
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.4.tar.gz
(85.9 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.0.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c568a46a295ad76ad04b30ca66982a15342b64acee02368d006cceb3cb5acf |
|
MD5 | 6cf6924369c52b90a21fe40aab5828c9 |
|
BLAKE2b-256 | 1c4504954d91b6f10a6c146b5f0e6558803720aeaef1688d8b1fd04bcbae9fb3 |
Close
Hashes for pyeoskit-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 422a7155ca2d401946dd84c377f9c284b986ac24b8938d14b8a310330db053aa |
|
MD5 | 1b4cd4c8f39c895f3e82f02bbf9a78f2 |
|
BLAKE2b-256 | ce8ae73b912bf318c063a078104f7ec52407937bdbf5082aeb28779fe4db0387 |
Close
Hashes for pyeoskit-1.0.4-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37aeb798cdc995030d675628ca2f98f410f6c20c0ed0fa531a9aac2990515ee9 |
|
MD5 | f91e2f1c1d58bdb60b33242b2e86a410 |
|
BLAKE2b-256 | b906dd80bcc1965db3e05349db8de71e2c5de72802667c485eee9ea5a7fc3206 |
Close
Hashes for pyeoskit-1.0.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 582fd34d951817b77a740cb57a2be5a1f7e3f963555c7207c4c145541d047160 |
|
MD5 | 3c2cf494d43f246942a8dc114f010737 |
|
BLAKE2b-256 | 7a44ed4de78e04016d0f65dc3fc876a02f572009aa29d5fbd928e137eee9a778 |
Close
Hashes for pyeoskit-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c937b48fb9068082ccc8d1e75155c86f92715de5a15b41d0b736c9df79d495 |
|
MD5 | 37b7596377a5a0c90ac7dc699365f38c |
|
BLAKE2b-256 | 3e8e628fa226f89550359c95d438115c0537b5535aadf5bc643c1d14e1825be6 |
Close
Hashes for pyeoskit-1.0.4-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a113e011dd8793cb5f7e5239650b59e660c942e5c9506484a18d9c0aa6ab1417 |
|
MD5 | 52e948e053fb61eb0bdae34e8468c32a |
|
BLAKE2b-256 | 5f8b9653e0ac857995646f0eb0f674c8337784dabd403d3c8d5dc97da718c3d3 |
Close
Hashes for pyeoskit-1.0.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f831aa1403dddd48c552e727c2752a8e4eb890d1c510f241d336b9e931be58c |
|
MD5 | 13ae61bc6e6d3b696aee37609c8e5221 |
|
BLAKE2b-256 | 7b2272cef8cc32ac44e6c4b4c710a26c2fec8d1341471eed6f70dbf006c08977 |
Close
Hashes for pyeoskit-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11208717171d53fd9af0d7e532534048cd1fa77bbe9f9ce55b4568f5467fe4cd |
|
MD5 | e9b57ad60d20d8600a4c5004d0ab23d6 |
|
BLAKE2b-256 | 2c2c9430e382e69d5016a5a989eb743c63a49a3eea87f79b40049ae85729ce59 |
Close
Hashes for pyeoskit-1.0.4-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 131cafa22023dc3813f281b72152f04e0e259d2533a495226510a68fbf3ccc16 |
|
MD5 | 904ff92e7c17b08f9aecfcb39e5789cb |
|
BLAKE2b-256 | 01920dfaba0b18a85e2b4a51f3cbbac76f0728690a59574b3c412a08bab52ec1 |
Close
Hashes for pyeoskit-1.0.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73199e799d9350c7b763cceb1d4310378c23f946dacde94dc431f200fa823217 |
|
MD5 | 3b72f2cb0953b6e9f8e54582d8200ca7 |
|
BLAKE2b-256 | 954d545a9c67a7040a13623b200b5f4e858f19fc6f4eb346101f487c71336000 |
Close
Hashes for pyeoskit-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ca8c65550c718c80414ebb8dee7cc5dfefb919a1d4de72857ea38799eefac3 |
|
MD5 | c8b6d061bfb4ec7a206e644b3f9b5bc9 |
|
BLAKE2b-256 | 47d10217bd762b2649a33621ae937f2d0f2f8344239d35ba87eede7e40c28da2 |
Close
Hashes for pyeoskit-1.0.4-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efe4aaff15c7a5e3d2cd5fd30db5551fed138aa13734efc07e3ba3adc4c9956 |
|
MD5 | 81c10ab269eef45ef3c0e945bded22d0 |
|
BLAKE2b-256 | 66b01a54623fc575b0f34296d7a539b613f375843131e7832c59363827b0711a |