Python Toolkit for EOS
Project description
Python Toolkit for EOS
Latest Release
Installation
python3 -m pip install --upgrade pip
python3 -m pip install pyeoskit
On Windows platform:
python -m pip install --upgrade pip
python -m pip install pyeoskit
Full List of Pyeoskit Project Modules.
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/learnforpractice/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
#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
#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())
Sign With Ledger Hardware Wallet Example
import os
from pyeoskit import eosapi
eosapi.set_node('https://eos.greymass.com')
args = {
'from': 'test1',
'to': 'test2',
'quantity': '1.0000 EOS',
'memo': 'hello,world'
}
#indexes is an array of ledger signing key indexes
eosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'}, indexes=[0])
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.1.3.tar.gz
(486.7 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4987676a2cf59491593e8d29dea9f34deac9f21759b0c03922bfb1148e19515 |
|
MD5 | d5c4065f6d771be8c66393e69affb8f3 |
|
BLAKE2b-256 | 6d6f57f338fff2a3cf4951de6db5006903cda0a0439f835d49875898ead906a5 |
Close
Hashes for pyeoskit-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65d61627e3a13f378b3b032b9a82d4fe0dac7de5a4b6fbd2700045985d1d2513 |
|
MD5 | 53e51484c86efaaf257f83e3a71e9214 |
|
BLAKE2b-256 | b8efacc3478140e0c1e96d51b763e94f7756b11a75c8cbc9e008cfae6c11db5f |
Close
Hashes for pyeoskit-1.1.3-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e38ed96bcaef06ac02b78a917aaabc15efd0f28759fd837c2702c1da4b2c98 |
|
MD5 | b1d37867912f31c6031900f776428942 |
|
BLAKE2b-256 | ac49a03d79a8627cadb4e9d406f75823d85c9f79b9adc492a817600905eaaf2d |
Close
Hashes for pyeoskit-1.1.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4659555c2ec9b7941783522e78beb25e35c2366e618d1a8bc908061693565aa9 |
|
MD5 | b032f1eb85ebe37e9123d1e51531ac0d |
|
BLAKE2b-256 | 96c7a721f42a150fec05d9d48f1fb934b426157a70a0050741c45a7ac4509e09 |
Close
Hashes for pyeoskit-1.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53e1b18d705cf5945174c1e792f8dcb28c4384736b5ff86444739dd49ac081ad |
|
MD5 | 0e8c3aea2809debf3c4ee039ef47e3be |
|
BLAKE2b-256 | c84f495e872562fe24226ae39a6f4ebe4ab47c9690dd484a41997a28380c9b5b |
Close
Hashes for pyeoskit-1.1.3-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e76955fc4a0b9eec2e5ced1e32c2c5ea41f9a6b3c1eeb1da9d4a35e65bddb1 |
|
MD5 | 3fceaf06b6ac27fac74552d65035bad0 |
|
BLAKE2b-256 | 9545dfca342637f087347ef850f99408be6420bdc2c124250e899e7e9b8f8a62 |
Close
Hashes for pyeoskit-1.1.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43875cd1c8e39dc5185db5dfe9ff095238b3b316eb677b004be654d3d8bf9bd9 |
|
MD5 | 8b9b3104c51b9e5cf7f2a521786a2628 |
|
BLAKE2b-256 | 05391da7ed2680f515c39c37f7b8deee53f723a5bab5649fd074202b59cae510 |
Close
Hashes for pyeoskit-1.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df3a8a4ec7b524fb0434c84af64c21dd52dc13a027443b65d6e4890f7e92c22f |
|
MD5 | a48066fd4399c5942f63f3b7fc9f7724 |
|
BLAKE2b-256 | fc812e68e386da3260b469f8017fb4b09add54a18dffb7b28d5f25f42a5aedf5 |
Close
Hashes for pyeoskit-1.1.3-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce61859a037700459ed86ce8f2f6cbceff22f0114d00cdd6ab5f8cc7ff00772 |
|
MD5 | 09455ef35189586669efb609eccb22d7 |
|
BLAKE2b-256 | 13985330d08bb0dc9f9993a2d043a3336a762a2be73a5576d71cd2436721cd23 |
Close
Hashes for pyeoskit-1.1.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6042b9ac10aca90b016493f0faad25f10e21735846182c22dccdfe118791c8f |
|
MD5 | 1c49bdc2cc35c52fbcf540e9727d74a5 |
|
BLAKE2b-256 | 1cc7a6ab247e8d2ade92513d2c23fe8ea4f2ac4d6f289aea689ffb6726e92325 |
Close
Hashes for pyeoskit-1.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 353e0fb398b9454d1192bff6a556459fcc5d360edb8bb1d277a5c7b8dca6442c |
|
MD5 | c47316ef6e99e4847b67ecfef821ce93 |
|
BLAKE2b-256 | 5b21a554ef01dfeb51f12ca73cb20f8372a336b138655f5a06a347132383d0f1 |
Close
Hashes for pyeoskit-1.1.3-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7860260d7e08898953dd6abdd5fbe863538477256f60a3a31194916ad823e746 |
|
MD5 | 633d96e86f225b3fa8b88ef0faeee9e8 |
|
BLAKE2b-256 | 814abd30886bc48447e0f445d4580f5ad43c7c71eee70cb8bdec98a1dd4f62b8 |