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.6.tar.gz
(488.6 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32968c9afe18a5cd7505f158c3e2201223cad657a3328aa13d59a8175e1cc32b |
|
MD5 | fca002a1a8ec356654a770bb9c8c85fb |
|
BLAKE2b-256 | bf1302a53e8f491c6a79314bd5df421c1af7093a9ab13ee3fa2c7210a60d424c |
Close
Hashes for pyeoskit-1.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d5e7bc157578a7e9e5ea376358fc1a6b2bd7ec33e242d6b980f3fa378088fe |
|
MD5 | 8b90be3dadf6963415bd787b1a6a965e |
|
BLAKE2b-256 | af2762e08cb018b5afec568f3021b9d75f975e235e39d375a84a2a4088570914 |
Close
Hashes for pyeoskit-1.1.6-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7174b15324685f07d6f43ff09512f023f07871b93f24ca0f5cbeed9ab47b3f17 |
|
MD5 | 75a5eae4d30f68d58fa51d1797384df1 |
|
BLAKE2b-256 | 3fcca81746577199de9fbd8e25392e1071d2f5c98586dd82e290ea692db2410a |
Close
Hashes for pyeoskit-1.1.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f53095ba56c82b4aab23717f3f119b18dfd353f5aca708b9a4995ddc0b928b9 |
|
MD5 | a9809da076fdd5eebb971f74ab8c1726 |
|
BLAKE2b-256 | 3e61847d43f3f3c1614238cc46cd9be068aebd799289efe2dde16fbc5f1884e1 |
Close
Hashes for pyeoskit-1.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2ebc6aca4d3bddac7208cac170a31fb1752a838ff256bf57c55f4d2f2637d3 |
|
MD5 | 80263854b48bb312538305f3dd0c4ad3 |
|
BLAKE2b-256 | 325fb4602119585b352b8cb0ad7ccf881965ffbcc63d21ff3eb7002b1c8fc26d |
Close
Hashes for pyeoskit-1.1.6-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5162180781247aba08230d37b78525856dc4477ca940cd574979f40566baa540 |
|
MD5 | 4d70572ed71c0fe5281954c7abf3799a |
|
BLAKE2b-256 | 646927d0fb718834c3615015bd25666da2175e50ac5e5649bead56c86a50a7be |
Close
Hashes for pyeoskit-1.1.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8152a2c107db7dc0d97008ad5acdb90b41a6ad7d346a42828410daeb67ebd540 |
|
MD5 | c27dcca0a22ad6b85577549fdac2064a |
|
BLAKE2b-256 | 64d1dea1f33ca88e0452685b4f679200d8a148ed936a6a5dd95f767f6e955c2b |
Close
Hashes for pyeoskit-1.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba7a07a451df9e64a5eb2ea87ddecff679da90c543df576c98cbc7d151fd4b0a |
|
MD5 | 13d6b75c56e9979a50d2d9868414ddd1 |
|
BLAKE2b-256 | f5310a7f19c3806da47dfc25e06b371ea9b0ae4d1ebc56e907215ea3655373b0 |
Close
Hashes for pyeoskit-1.1.6-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4411fb426f9c214470c8260c5751fd54b0b5b137bc4ffbe263707272cc488d7d |
|
MD5 | fe7cca7b84ff711fc2e14dbdd4e07561 |
|
BLAKE2b-256 | 10e6f7e719c5abfea2b52d5a8cc41d4411fad56656533c1857cb28b4fa748aca |
Close
Hashes for pyeoskit-1.1.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0cf82a9ecbdfc470d0873c060924405eab78c1e5bde5abe347c16d311beb51 |
|
MD5 | 7a046223476c94ee9dca503e04ae6d67 |
|
BLAKE2b-256 | 69115987a0ce102c777a3fbebd9044fcd41ef4eff6788af02cf54a1e1f4f26e5 |
Close
Hashes for pyeoskit-1.1.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3339de6f893dd21a73d1dfa3ded43362b387a2d7c20efe43d8c242c5ee42ccf |
|
MD5 | a966cb6318831a5763f5d28c2eb214fc |
|
BLAKE2b-256 | d1c03edac42f22e9591b263a215b6e3a8256d9d627f4770f881ae7652ce61379 |
Close
Hashes for pyeoskit-1.1.6-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697797f88e056de2c39208635cac145a5a6c8499a5490aa0d55b2ecb93e6668e |
|
MD5 | df436847c29972327a11c793fafa6a1d |
|
BLAKE2b-256 | 3c3b33b80f89f678b68272655d5c27a75cb402b86ddd870ca0938b87b87d503d |