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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pyeoskit-1.1.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79aa29d622c4f2514a28ec37678ede5c62456b997dfe6e51c4fa319a63900d26 |
|
MD5 | f8151f6f4e489ff0280fe51e6fa32cd0 |
|
BLAKE2b-256 | bb77a584459b5fd002e46e51321305a11e1b0fb01a3e06655b464f2852f0b487 |
Close
Hashes for pyeoskit-1.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cd6185df2dafeef1907562937a4562db81f659651a858f4694baa029c4f4896 |
|
MD5 | fbec3cb997fb92e89d1e597bcddf2448 |
|
BLAKE2b-256 | 514a8a9b09b1866983aaa88196642523e92bde877de5d628c54c4e0bd4f9a213 |
Close
Hashes for pyeoskit-1.1.8-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f21c38a9b39f455fb3f365355168012664cc0e9909666ad010241c7c80c8bb2 |
|
MD5 | f145c09d246eca8b11beb91116699594 |
|
BLAKE2b-256 | ab70a46b4fffda47648dfb2c817554fa279ae8822f3ff7903c97a4e71da6ba5a |
Close
Hashes for pyeoskit-1.1.8-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a89ca7b8298f1827ead53166ab784509f6284146be091c6522b51f7c1e1331be |
|
MD5 | d9f10d85b043c9157434e1cc6c83ae79 |
|
BLAKE2b-256 | dd7e862b74cac83460512047338fc8c46c091c594e52c2b09d0fc46018168760 |
Close
Hashes for pyeoskit-1.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9849a514eb5be6c716e63af4b029a10e15d6d776c7fbf6030fb75d775899506b |
|
MD5 | 7f51cb9edcd612463fec4e55d7877061 |
|
BLAKE2b-256 | 4551596f97bd94253d3470953fd9a2c63000c2c7dd81ad3913af82aa0557153d |
Close
Hashes for pyeoskit-1.1.8-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | babd2780c4876da7d5e88aebf3ddb8a3ec7cb1e0292ef6b17f7c4a10261c7bfd |
|
MD5 | c86527b4cd2aa05fe03a2e2178507b45 |
|
BLAKE2b-256 | 0681dffd0677a24dc183a4f054521ef827da842603f7ad4e61422c6a97873b24 |
Close
Hashes for pyeoskit-1.1.8-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fecd7cc3ffc07d54ce15ffce4455148437937bf43c97400b37ad3331afa33f4d |
|
MD5 | d7106e2ad6123d56b5a44d8cce982ff6 |
|
BLAKE2b-256 | 68615d517c13b20c843a8ffb81502226987fdee848309f885ab8670aa6ae65e3 |
Close
Hashes for pyeoskit-1.1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3434b6f6083be7c5c22baefc5ba45e371501a00a505cee7fd754a49147d9a293 |
|
MD5 | 60143a8ba4ba76f2a5b7a594eda63355 |
|
BLAKE2b-256 | daa994cb78bc81ccb33334543b21cc4f5ce12facc5ccc43cd77e56f028f93da2 |
Close
Hashes for pyeoskit-1.1.8-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69bd47f3b1988166f55e22ca45e2251318a2033b2a77e58087f907a335cef252 |
|
MD5 | 96d500f14ca987d46e6469ce120abdb7 |
|
BLAKE2b-256 | 9fc913417517614f2733f1d90399de4a41f78263906e9e4912f737d9bc6bf3ec |
Close
Hashes for pyeoskit-1.1.8-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0fe6a79ba5de781ee196fb2d48f1775013d6928419f5e97112991cc7a8ede8 |
|
MD5 | cd5392bc72d9797394d325777f36d112 |
|
BLAKE2b-256 | 6f67bcda560f51b21a98905b9b7bf3c0b3a8d9d62d7a5e6371fbdd78dde17a07 |
Close
Hashes for pyeoskit-1.1.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bd5fc44655f87817f9af4653fb796e865347e4b39cc7299a33b1ff65c02d50 |
|
MD5 | 9b4926d3a844fb804efcc273d6ac115f |
|
BLAKE2b-256 | a7cdbea47911e43642b87addf5b9ec414a8830f86a8b146e103862900de58860 |
Close
Hashes for pyeoskit-1.1.8-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adab857ef70a18854ec889abc8002af9a7420e6adc0197cd02c206bfffdab831 |
|
MD5 | 6db5741c34c9a527a81eec2eac7b6ce0 |
|
BLAKE2b-256 | d7093a260545ad866c970dbf896d2ee752a45b1784fe63d8879bfffbe3fb43c0 |