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.8.tar.gz
(486.0 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.0.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49fa4d673b1fe3a47660ddcded0d52852e8655db36ec863b9e1004c0d10f129b |
|
MD5 | 92cc289f904061f3e4aaf5eea60374ec |
|
BLAKE2b-256 | 65de17e119ef2f2c367aba7de53851d64d369d045ff8e1e7bd812f2782b96e77 |
Close
Hashes for pyeoskit-1.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6189da379c8bfafc40765b6ca9ab1903d4ff4fd316d3c1d80be33b5e53e02cf |
|
MD5 | 808df0adde72ff6fb0e644f1e0bf251c |
|
BLAKE2b-256 | f66f9a7dabf885ec7286dcf633810d22b678e18d6b02ee6ea8a40ff9de52e690 |
Close
Hashes for pyeoskit-1.0.8-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8315f79b9401c5b18941f3c816a8a84b8d6ced7b8aae709f0bc8b0cb894e4b0 |
|
MD5 | e12f30794494f6ce48fb435dec347835 |
|
BLAKE2b-256 | f7cbeea937c4d3f613dd90d592d0115c9e10e93703bde2235e412f35c928f437 |
Close
Hashes for pyeoskit-1.0.8-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c125ffb7616874af86a1d5a18dd452c7fe9598f88b178de587c4afd6c5c76dd |
|
MD5 | 7eb8e4a82d2c2cf8fd1643febf09ef55 |
|
BLAKE2b-256 | 5dd3250aaa05ff35c61639718cb6aad233f1bd478257611a242c4c90f41732c7 |
Close
Hashes for pyeoskit-1.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f43d705dcb529072c56e9558e02afff8b6f3342683816c454178589a04fb4d0 |
|
MD5 | 1109ca0007793631b6e17773ed406dc1 |
|
BLAKE2b-256 | f59041d726b86d227c859388267f5c5aa0a477e0f36dbc58cf9469b004282dde |
Close
Hashes for pyeoskit-1.0.8-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e93232be27f26a694fc7741bad4c44aaf5ef59eaaa098856ee17ebc37319741a |
|
MD5 | d8e736cc5b41d4a88b3c903763bcb8ff |
|
BLAKE2b-256 | 73e6a5a28dbaa1d47879949a51e9fccd40da91dd1b6ef060f20348f127c7c588 |
Close
Hashes for pyeoskit-1.0.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99cb3c8cd4450c054f2d51962d223bde196c68a134fff64f709f32c562975ef6 |
|
MD5 | 10a1ac73a232761046275092121b3631 |
|
BLAKE2b-256 | 5d4944a6c0bfd76a0f563113a762d799a7192b4cb1a34e9b136f5342997cfc5a |
Close
Hashes for pyeoskit-1.0.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a760c2716af36398b32962cee3405f10141d683b24a444bd6a6e31a5b8a120b6 |
|
MD5 | 1960f648a4e7612180b6bdf454cacdbe |
|
BLAKE2b-256 | 682a0b7b8bf8acfbf5e42dae590053c0ed4268236120a010ecc780534a1625a1 |
Close
Hashes for pyeoskit-1.0.8-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f127d9feea760f1570a8f17919f9cde28ce5355cd512803d0d95aba1191f7d8 |
|
MD5 | 6c3e78feec8000b7dfc47fbff927ea2b |
|
BLAKE2b-256 | e6933012e4e6d5eece22de8f4cdc4dcd16681e3d0d6c9b306a20b914811a137c |
Close
Hashes for pyeoskit-1.0.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 241ca5f1516eb4489ee3f2010b0fd8be4d3375f00f99e49b24125e8f18aaf584 |
|
MD5 | 4a6350c505fd7c4325bf0c379b580594 |
|
BLAKE2b-256 | 7e98eae66de54763a8ea0d43f36ceb7f5bc1842e4cde930d2b392948e633cde1 |
Close
Hashes for pyeoskit-1.0.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281793ca7ea533ef47e581d6543b111ba33dca62434058683112ab58d4d7538b |
|
MD5 | 4ab9135e8b4969bd6961c87533f6910d |
|
BLAKE2b-256 | fa66316a43b36bc5f297a004b4fd661b68bdb4ec6c000d5a3e799c08aee3a2e5 |
Close
Hashes for pyeoskit-1.0.8-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9af18468e3181f6a7a2d2a96d377873f40e1a2198f87941e3e06ed083b4f190 |
|
MD5 | 3ca79bf97d10e698b3e228985e9a2d46 |
|
BLAKE2b-256 | 16ea0cd08a8100fb5cff2f71501e972522f9f78fd8c272b9ad92f9cf4fbb42cf |