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.4.tar.gz
(488.5 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47bbb18ce8571127c008b1d5090ce9ffb702960fc2c7edc26bb61a82cbb00b6b |
|
MD5 | 983c4dc151a5e5e0a6bc06d93278c30c |
|
BLAKE2b-256 | 3fcefab842ec62b0f3444bd6c2f40f0e4e5fe2a76fe9c94189bd2a26797a3030 |
Close
Hashes for pyeoskit-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b26818488458e7bf62f8008e6beb4c952248c390ee12c64336815e7248f96b |
|
MD5 | c2fff3ee9a5fed22e14ea43cb7f23946 |
|
BLAKE2b-256 | 79e01c95ec70bc55335389b4658f13e6593789cf9176d3b4000d40833d9e5634 |
Close
Hashes for pyeoskit-1.1.4-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d1a2500097a5f0f458cb0e190af13c817372a9af4abe00f5cd2d0aaecf6fe3a |
|
MD5 | d942c63f200ab7507a592282ff1c2799 |
|
BLAKE2b-256 | 140a880c3be33b941b7c8af9c1f4ed66f573127ed54d931fb024b3caa37f638f |
Close
Hashes for pyeoskit-1.1.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7397faab658e2067394955dda6b42ab14e820dc9c03d9a9a690ca06c11aa1ac |
|
MD5 | 5481b8a0dadd351abce228c55136f6a1 |
|
BLAKE2b-256 | c737e11fd0a5bf08db927894d85ebecb9e3d6b4fa91893425855b83e980e7080 |
Close
Hashes for pyeoskit-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ff024ef8fd9366254a636ea8e1e2331d316b2f0a520b8918331dc11052c878d |
|
MD5 | a37bada7ecc0d4fc919c0f6278323602 |
|
BLAKE2b-256 | 54cba801df401639a597bd83a5b666a0c08d630932f9721845fc0ceb890a3464 |
Close
Hashes for pyeoskit-1.1.4-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43349cb3837a8b51d1d12b0984409e07885eb03d343aefbd6ed10703a7bf1a4 |
|
MD5 | 0d239ee4bc1615653116b9eb015f1033 |
|
BLAKE2b-256 | 5c4a98347e17c4162b938d76cf364b62b81b60f8670499ce8eea29d1597b9543 |
Close
Hashes for pyeoskit-1.1.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ec3ff37f8c3b23113af26534829845423d5f683c3140df29bfbcfeda5e0871 |
|
MD5 | f03f450ba0a3510026a65a517a261880 |
|
BLAKE2b-256 | 0e629ea92d72a805a72679a545b0482ab98663e4e422714ade2038b9e803ee52 |
Close
Hashes for pyeoskit-1.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495ef21189d367dd2da6450269fd6c5e473c30bef83b6573c8ab1a16c7908c2a |
|
MD5 | c2ef5390c040e2383170a5d8568269be |
|
BLAKE2b-256 | 6711455ddcbc56d9480940739b1ffb75763822a545a8aa7eb83b97a8dfc6cf7e |
Close
Hashes for pyeoskit-1.1.4-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2233c7e81637b8b7eccca36ff4fd7109ae25b17ad8a9b0e9c7b478d16ba9ea5 |
|
MD5 | c86f474f205d1508243e73d1230d5081 |
|
BLAKE2b-256 | afc388f2c3040ddaa80d5187e35ee9e955491c99765b233b11431374cf134698 |
Close
Hashes for pyeoskit-1.1.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bdd3e186ace8f58ef167cd2c8b3f5baf2e83402e356d6a4794f7cebbfc96e1a |
|
MD5 | 8c3741a3d70eb06edde9ee314d4400df |
|
BLAKE2b-256 | a10a7014af78f2c10ad2ea3ab05fd7cf73808470aa60be69bca10606d1935740 |
Close
Hashes for pyeoskit-1.1.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4965e6983e13053a2f7b6a574436bd4bc4a17d0d071a2cc846179d12e8470bf |
|
MD5 | cf1ee864ca4c056ea582908b78e70505 |
|
BLAKE2b-256 | a68a0cb5b1ab6c07b573cfcd7721c092ac7ed61b6ed1b8312cc9979f2296c57f |
Close
Hashes for pyeoskit-1.1.4-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b598fcd74d311e3a6b6abeea61044dab72affd4f2fa12f76ad343f2f3f57c045 |
|
MD5 | e13c7819c3e2ed55f294f1a9d403fa1a |
|
BLAKE2b-256 | 9dc437d2aff2608008a647066eeb457ef8fae34bb90fdba7496c25dec30d2098 |