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.5.tar.gz
(488.6 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bb6876a6b6bb0de8d3feae51b9f84f47742b44bc9abd185bf829a001bc1751 |
|
MD5 | 4b9b10d38bc59394a0d9754187f8e3f2 |
|
BLAKE2b-256 | f67b7f15f0caf050458aa91d96c7f3883a41be43a438f0b47dd047e9a4e6a982 |
Close
Hashes for pyeoskit-1.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ef217eb3e44d2b2e7819ab1b6baba2d8e7eba94d5142857055247e30b37222 |
|
MD5 | a20685fd727fe46ec9edf7007abba95e |
|
BLAKE2b-256 | e6449a36082f9ff3a0a7945fb78e05946a17570a9f8bd09d7443db136ec7b70f |
Close
Hashes for pyeoskit-1.1.5-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f64600d9fb0c846f5ec3fd1b52cb980f0703964e63670f8b075b0be895df515b |
|
MD5 | 7d284a65acf3bf6c3c16ddbb150f2825 |
|
BLAKE2b-256 | 190f20de564573bc37001ac281828343d7aa14c07f41cf7a5186f95f4313980f |
Close
Hashes for pyeoskit-1.1.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 710066f29e5883722ae6cd5a099f17fbfb648fae20601c467590541bff4ef9d0 |
|
MD5 | 6b33c940a337cdba77961a839cc72465 |
|
BLAKE2b-256 | b7d74aa270ba962b2a175bc393df39158f5e202e115961105f3f18bcb7861b7c |
Close
Hashes for pyeoskit-1.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45b695e1396f73481982bb8f96046a7bff64ba2aad445690c1c3c6b39b0e1542 |
|
MD5 | f0b8ac297ca9dc9f9ec3feca0ce72349 |
|
BLAKE2b-256 | c4e7ec3d553c1fdb79319443b5a6461af3ca7d3d039c319c843f000d3df41ce5 |
Close
Hashes for pyeoskit-1.1.5-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89e05d67f1d1ac6bc9f5b11f3f8b3e71fdbda5491acc9f1971367e1761433f1 |
|
MD5 | 49e6fd68f51aee68a14d4fe3bd5913bf |
|
BLAKE2b-256 | f356ed9d4bd14003388cf6616e0295f07ccc2c1222ba63590abecba07e65981a |
Close
Hashes for pyeoskit-1.1.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b9cd679062ce3c63259acc5c8215e255b8a08bccbc22e2ceae08e91993fe75 |
|
MD5 | ef14ab0e54ed633bbc3ee7720e8b0fd0 |
|
BLAKE2b-256 | 9d7903a372b3f69f7b3d3126a183dac61abc28bd9d93facc699b63c6a88d9a72 |
Close
Hashes for pyeoskit-1.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0b2b4b2186551c3f85a0f86e2c747de10345f0e8995489eb57a2c4ce8ab967 |
|
MD5 | 548cb0d26d55a7a626714b105e51ab7f |
|
BLAKE2b-256 | 37b2b7b649c8af7ada4542ad45e6769b83af9e30f20aa95b4774a9426d410ef2 |
Close
Hashes for pyeoskit-1.1.5-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0eb0a0de49676560c83047976ee5edbc8e940ed0165ee5b86c4f57498ccbe3d |
|
MD5 | a49e650e3fc487d0d90f804d1d516e6e |
|
BLAKE2b-256 | 9bee546ca6a76b171e74a5ae73f45f3c067b95c9ecc51a67f024441c56c23f44 |
Close
Hashes for pyeoskit-1.1.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d91b51d2ddea195ff5370a2b10ef87d552923bfcee90ed465c11af82fe7025 |
|
MD5 | e1c8bee1d71273d1dcfdc988a147f74e |
|
BLAKE2b-256 | c78ec2dc72a414704d7b6c8e3faed5b8e0c543d5185374feed3801185df434bb |
Close
Hashes for pyeoskit-1.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf69c543c79c4eb26d76432ad9539b05dd71f67a23d2d9a1c8a2fb4cb52c0838 |
|
MD5 | 4e50720720d674cdf45b5fb11f15b653 |
|
BLAKE2b-256 | aa6f944fa0145d3de01a94998f2c564ca341b4f67694bea64f6ad615851763e2 |
Close
Hashes for pyeoskit-1.1.5-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63246b060aded9781680603d0105a9293e9413c64d1838b218347f79a1fc15e2 |
|
MD5 | 991364d023886628acde8fd266e8f19a |
|
BLAKE2b-256 | 398cef3f5354a6d507d36918e6feac02ae74655da65a066f7c2591f9c6548a74 |