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.0.9.tar.gz
(486.4 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.0.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d91a1e8ab0d3b9677d5d550cc2d439dbbdd3437869847de1a39e5d34ed1dd8 |
|
MD5 | e7a79b17b58aaff2bfda10e7b465f5ff |
|
BLAKE2b-256 | 1be5325edfa047ba4f36d770edd0bde54c662f5d77ebadae1cd0a23014f77893 |
Close
Hashes for pyeoskit-1.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea7155eab323439e0a8212b4b5cc081a8ce808790921801ddf696f14cec6a3b |
|
MD5 | c74ee7faeedb42970f6671c3cf3e5a40 |
|
BLAKE2b-256 | 3a8d09d73b052687532a15c8d93753af913f6823243da75d8220770dde2bec1d |
Close
Hashes for pyeoskit-1.0.9-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 749facd8736ff837b4a1542db2d0afaa415da7362567f3b59aa0d921c0f7d436 |
|
MD5 | 7c03c9dac1f7dd07e5eb1e3cf196ef16 |
|
BLAKE2b-256 | 6da2dbcbad47128d8fd63162b63473f62dfc67d1a86dd29f48283a01202d6e82 |
Close
Hashes for pyeoskit-1.0.9-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d203c56719fa3d6ad3354d9e75523485be3d5a272ceaa41bb8f560fd85c8d1 |
|
MD5 | ea008fa68697b1e79ad16adea3684384 |
|
BLAKE2b-256 | e214fe4333fed9afd3756160044ece6143aae56dd4969dbe42eeec3889146ed6 |
Close
Hashes for pyeoskit-1.0.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e87baf1b1b9bd11cb840d926bf8ba1f62c7dc14a2b4306b189401fdc9c1a39 |
|
MD5 | 724528159addb2fb339eb3e940688c80 |
|
BLAKE2b-256 | e7424d244f21eb9b0b65d4e19dd286e2459a73e12a660be84fe76cdeb94d0f2d |
Close
Hashes for pyeoskit-1.0.9-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9c25c141c26d055dfb1d79f4669f1998c3ff61cd2aafa538796e619cab6384 |
|
MD5 | d9cd4436441e00fdf05299f6d90e03e8 |
|
BLAKE2b-256 | be5d46d381e586a5a1b942b1661b90d8fff58886fdbd3fadc9e812f6551859c9 |
Close
Hashes for pyeoskit-1.0.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b4150daf2d618f67e58859cc1d7004530b388e92d480dc53e60b085e17dd9b |
|
MD5 | 16259412011cd0f583c00a486a1f628e |
|
BLAKE2b-256 | 67ef5357512f359d978d6ceac75f59d3e1e5219561b9f401e28c474578b18c89 |
Close
Hashes for pyeoskit-1.0.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b3c0cac9a0fdde9b1ae65e1935337437d79f48be087173d7e7bcddd78d503a |
|
MD5 | 4121df17b71eef0464ee5c02bf6fd868 |
|
BLAKE2b-256 | c5eccf0ccc31c7115bc8d36548e13bd505e970a120494bd0cae9893167412dde |
Close
Hashes for pyeoskit-1.0.9-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4bc233f21f5604a437acf6ab42545df052b9e74254ce5ddad44cf61113663b |
|
MD5 | fdff6238673a59cb9df26f83b54ee340 |
|
BLAKE2b-256 | bec6a6570f5d3b27a698fdd31331b45a9563d86c19fe34088c6be0e47683a8e6 |
Close
Hashes for pyeoskit-1.0.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a228487099866a90432cc7bbeb54ee288d8237ccad391115899d2d0912aace8 |
|
MD5 | 74050467f292be2e731f5fa573d0d3a2 |
|
BLAKE2b-256 | 9ac48edc3aef9f2cb2c7cf77304b8a9dc3e01647bdf60095b11c134d9b26568a |
Close
Hashes for pyeoskit-1.0.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbff3e89c7f742d3bcd3e74234b2548c8faf3bd95dc8c544a1255fa9e08e552c |
|
MD5 | f546297c1309cb187fc90f081fdb2614 |
|
BLAKE2b-256 | 79d100ee7baa1b7ed95174e3932f54fe1c438de1075a2e2c2b93eac716bf6318 |
Close
Hashes for pyeoskit-1.0.9-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd7733db494ba1ae598c55ea75717fe2f98943ae91d2c9f24c833076c235430 |
|
MD5 | 9860e545d36bad1c14213cb35f3d648e |
|
BLAKE2b-256 | 1c6ee7c5819a0acdf6d06715d15c0734d769479dbd236dc6c5745f5caae8196a |