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.9.tar.gz
(525.6 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29d1e36d35436c338ebca8219475e660d5cc3f7307acd23f6bbf66ec9736bb1 |
|
MD5 | b5243e3431fd36835f70dc458b090645 |
|
BLAKE2b-256 | ef803d3b943fcc406dc099daa2f2938891a03f5ce2f8f2727805705ece1d8699 |
Close
Hashes for pyeoskit-1.1.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869a382f9a2b8b18b4ecacb3cf27c4a5322ee56d49b34caebcfc2c404f1d6fbb |
|
MD5 | 952213223da7d4bc4777704ee03645c0 |
|
BLAKE2b-256 | 4dfa22f004c610b0521bccc663a002aeaec5798f497fa0c13ef6713389cc689d |
Close
Hashes for pyeoskit-1.1.9-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b1336e749b798e937edd11807b41864a82a4b74ef674e188e6620ce5664b0a |
|
MD5 | 90d242ca5f14f1662e9ceaf785cd18c2 |
|
BLAKE2b-256 | fcc5b93323e371e92d0cc44a09b2f283292bd9eeef0e4478bc7e0395ad4b6a82 |
Close
Hashes for pyeoskit-1.1.9-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb3bdf11d8a32582026f587704b824681458aedcd1b83ab3b96fbb8ed09f2be3 |
|
MD5 | 6dda5de25ecf43b1d811d3132b44d035 |
|
BLAKE2b-256 | 61dc6921e207183db3d800195334c528ebdf9d9854b3d237dca189d8d6cf7471 |
Close
Hashes for pyeoskit-1.1.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d09c91c6001614c16847e838a3d90cd21e514a21d4599f3006989f6cc4db53a |
|
MD5 | 7ddd70d17332b70003f481599edaeea3 |
|
BLAKE2b-256 | eca0538cb731777430bdd9ccf1464cadef0bb7108288e548bd1d75b9d9d5397c |
Close
Hashes for pyeoskit-1.1.9-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28518d6a74605046ef6ed5c76d8b3607de5e0257c2c78d126b0d964236a45170 |
|
MD5 | a28d6c58133fdb34940ff8dabd3a55c6 |
|
BLAKE2b-256 | 4a8f17d3b114f59add815d525f2cb6c45db3776f6505a9a1d4d8dedf2411fd97 |
Close
Hashes for pyeoskit-1.1.9-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c21cd17d1f9c86c5434c52b184b0e64124eb14591aa5d0fd5e1a18a8f69ba035 |
|
MD5 | 9ee0e1310d793fca27c279bc9484d5c4 |
|
BLAKE2b-256 | 22e228f879c821e12c974925999a67b3b5e21ea100a1f490846c5a706280be84 |
Close
Hashes for pyeoskit-1.1.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7156651cea05248c752608d72a50940425e069e646ae9354155a9df21cc43a |
|
MD5 | 8a0a87300735da6695be7ca9e808b6b5 |
|
BLAKE2b-256 | 86d4e3b07cb149f42586b03bfc5e721705907330197b944d9caf5db0aecd5de2 |
Close
Hashes for pyeoskit-1.1.9-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e115d8c5bab81ee1d4906e8fabc0c08f7aedc020f8ac7c2006b784dbf4bc9bf4 |
|
MD5 | f5a7f92db5328c78eef0c0caa8124cd7 |
|
BLAKE2b-256 | 2262bba22618539f579142e832fef21977074dab2ab97f1b2b4753ea8b68b802 |
Close
Hashes for pyeoskit-1.1.9-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a113887dfd9ca30ab689f6a23a26c373a7ae0b7e305c2a71a3e0d3c4525485 |
|
MD5 | 4bf7e0198c0df5dc79b2b6bd5fcaa875 |
|
BLAKE2b-256 | 247cecc8a31fe51da2942b4a5791496556ca9890e4f9b2afc84b203c55c66457 |
Close
Hashes for pyeoskit-1.1.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bf4afe6971a82e132985028369eb4feaafa4ccee71497551e47387b59b9f274 |
|
MD5 | a37795502349836c137d3a5f1d3e093d |
|
BLAKE2b-256 | 1c0ff58cff8e9d89ffd8fffa5edc28db4ac0d5d235a8a6346f91d165d8ba5ba9 |
Close
Hashes for pyeoskit-1.1.9-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7481e73ab92151b0361902b26dfe1edf633f4341d0e5731c5c378cd7fac7af2e |
|
MD5 | bf04121646e8ff2da81da6907a2ef0cf |
|
BLAKE2b-256 | 0574a4e1a02a0a1bd2cf96545c2a7de5de24bc471d5a043e0663839046d4d1a6 |