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
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/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.0.6.tar.gz
(477.6 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.0.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a12fee2e1e8c95850c92c73b331a7f0c7327f5d638afc5d38c70d27ac86edd9 |
|
MD5 | 94a76ebd5f6953f2658c49bd960475bc |
|
BLAKE2b-256 | 0153efa873acbcf883078eabfed6bfb2f3a3fc88d2e29cc2179905069ef1d37b |
Close
Hashes for pyeoskit-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf27c97dd26b1536ce2614bb5f3c920df979237b070a6f2f62f996085132008 |
|
MD5 | ec8cea365f6f7b71da2056da293b261d |
|
BLAKE2b-256 | 6e397bbb51d142c03c066762a14325dac10b56dfa83f77e82ee7cc729cf8a71d |
Close
Hashes for pyeoskit-1.0.6-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbefcbe5bac6b7c198bb307f287d68512d6ebc46cc4d518222a6a9be0078d4ac |
|
MD5 | dca702d52dffa63012fda6bccda6cc30 |
|
BLAKE2b-256 | 0b8f0fd3f772610a14b5b2fcb0860455fdf349c48c1f2b0daf6bbbd641d415b4 |
Close
Hashes for pyeoskit-1.0.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c168ee99e4f9282ed5122331766a88fafe3285a8e80f891003436a447cae7e46 |
|
MD5 | 7f682bcabdfa55c86c128c3d93e82165 |
|
BLAKE2b-256 | e0fef38a136356e564f8b2677d0c31375b317631c1f559b54a62d8030e5b24e3 |
Close
Hashes for pyeoskit-1.0.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a88b3419193fb617ff8b3cde18aae4be90b8ee651214358d1893f678e345a2b |
|
MD5 | 5346040f1e54cab38b32c9ca01f545c8 |
|
BLAKE2b-256 | f0db974b41d2f5f3b70274f37df12c5e8cf0e57e54485921ee6e19495c1e4b2f |
Close
Hashes for pyeoskit-1.0.6-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db348c0cb0e33ee03572c0535c88f4447df805dbaeadc8394b9dff7ee6d37b9a |
|
MD5 | a6512407edd951f40f1ded023318141e |
|
BLAKE2b-256 | 19e52a84fa106b40b378c0a83109fc51ad3aa683e3b55090976455db23016692 |
Close
Hashes for pyeoskit-1.0.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f8c56403933ed2bab5f8586da70d0a480c357db858bcbe34c8246005fdb57e |
|
MD5 | 17cd333941ec86793e9e5d3fe471009f |
|
BLAKE2b-256 | 65004e70e8b768c849caea8e5e87c327f41af343a3aba0033572b4f10379dc29 |
Close
Hashes for pyeoskit-1.0.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f3d888db7ef344db8f805ec5ce894fe37f267f4209e4957cb3654989f20718 |
|
MD5 | ee68e0f0ffafe6b3d322592b2bdfcbaa |
|
BLAKE2b-256 | 654e74c2037ab7f4b972a84810acf30a3e0d7aa5ca400805dbc558e5019854c3 |
Close
Hashes for pyeoskit-1.0.6-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4482d50d39075a630db9301bd15cd003eb67e6e894fbee88b773a79a37016fc9 |
|
MD5 | ac6af401d73e44295eb1ef98a379fbb6 |
|
BLAKE2b-256 | 268f624f407f901d8b63970831916e987d2ef83ead96431d16acc9310eba715e |
Close
Hashes for pyeoskit-1.0.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6d97c3e5d1c0fbb1301a21b908be60ccc1bb7def1e87674fa364c8af436f3e |
|
MD5 | 80da4ce743f393694ee402564ef13583 |
|
BLAKE2b-256 | 7c51daf1c0c3d3ebd5aa76420f3b67bd9867e84c8068040e027f5e8c43b0a725 |
Close
Hashes for pyeoskit-1.0.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b391f65339222b0cf0e2d35d465f076854fa8c9bad511a37575f938b747eb34f |
|
MD5 | d18591418f28ed51ecbf477acda774bc |
|
BLAKE2b-256 | 4168e6c1576dc601653722b5459bb2f3627d545bfccfdfef7aa1b89b4acc15ec |
Close
Hashes for pyeoskit-1.0.6-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2d3de3ce1d6ca69fad8ab462a8155b7ca400d1a31d6f112d7d144a1c09e6066 |
|
MD5 | 06f3a988b63eca75f2be7f057862e43b |
|
BLAKE2b-256 | 6486e15b2d4782c20a680d66a90c55294e6155242f071def0919db2b8888ee40 |