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.2.tar.gz
(486.6 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcc62ca2644aaf05b38d7815b649d623158d4daff0be8c41afcd77c0c5d5b6c8 |
|
MD5 | fb4e405dab0a5a740519af7ae3720704 |
|
BLAKE2b-256 | 1e01f3e027d70fdc27678af3d31ed112d9064119c63306e1f19304b76879d06b |
Close
Hashes for pyeoskit-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd177b01dbbc1d2cc18a6c1b594e0f0be3a3cfaa06848d695f80057a28cd667b |
|
MD5 | b7f0e7a60be90d5ae175b0cb030a82b7 |
|
BLAKE2b-256 | aeb3dbddfff5f205ce58b2bd6dfc20dc99ac8f5f0c11ca3d2a15d2c3ee3407e2 |
Close
Hashes for pyeoskit-1.1.2-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83198fbcb0c8f071886e1de2fb89ac724d1f3c8d9b8900f078d132637909703d |
|
MD5 | e44cda3cbdbfe7a854836eb774491a7d |
|
BLAKE2b-256 | c281200ad4c9b76491d985a827860a5c27903c15341792aebfa0305df186f6d6 |
Close
Hashes for pyeoskit-1.1.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92af6a8734e5e4b8d866607b992dcef87176a02a170402908e6a289a5d16a1fa |
|
MD5 | 1c6c9c119678fa86cdfc4c239868d4fb |
|
BLAKE2b-256 | 1437bfc08dbef24a32cea2a4df869cf744981a0ba80ae6443df43f5f2d01e90d |
Close
Hashes for pyeoskit-1.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cacd71a62b42e6cf5514057a766c036eaba791b16cdfb9256387814f2f1f386 |
|
MD5 | 886ea018afe9bd4f218dc94cbb3072f7 |
|
BLAKE2b-256 | 9e645c1cce0f947616bf50b83de39ecbede7991bd56e1ffcb2df3ffda55855b1 |
Close
Hashes for pyeoskit-1.1.2-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580b2cccd8f476c9caa3a69ed2969babb50730d698fa7b0e967a77df7da5831f |
|
MD5 | be076f1edf354f08e1f6d632d3983efb |
|
BLAKE2b-256 | f4e8b3ffb8bea4da803f29a3b27e8f6efd74388f1cbca5e156459437a3f36351 |
Close
Hashes for pyeoskit-1.1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd09dda42452a9ced5423bebcc4cf23d3590ec1892965c4c81a71ab5e8e8e2b |
|
MD5 | 8cc3aa2603f294fcd53b584ba58bda71 |
|
BLAKE2b-256 | e53377c25a273cb246323029e08714ca39341b045d73d9656363c5b5e8fa0c22 |
Close
Hashes for pyeoskit-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df35275450e916de6c769cf982fd35185453e670a8fa555001f398a1a5d2d2fe |
|
MD5 | fadb12a978310bca219c30bca5321a08 |
|
BLAKE2b-256 | a18b6de48c4aa5c8c7903fac4cc538aef5ed1a035c6364ec5c9d65c556a05caa |
Close
Hashes for pyeoskit-1.1.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325a3d00ac489203e11aee27ce4284697051f419da1f327f4a883ad28e18caa0 |
|
MD5 | e1cc75372613c54723878cfe60e9e449 |
|
BLAKE2b-256 | a8c7fb39f5472c249b37d87c6619888b5808bc5d6f5165fda3edb9567d76336f |
Close
Hashes for pyeoskit-1.1.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa76b01ea3abe6df4bc01851f9d362cbda1fabb71b2cf80eb1ab9f0a1437be0f |
|
MD5 | 852bed6899f20a7af805061076bee54f |
|
BLAKE2b-256 | 8922d6e852d39cc4a0faf5d7535b244cd456968829a9bb43387c9ce6c5ab9de7 |
Close
Hashes for pyeoskit-1.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2314916ec44d87d4bb457484d3c9887e343d661de72e3ee0fe7aa6edca8cd3dd |
|
MD5 | 1c22228f585aed17308d9037528a3698 |
|
BLAKE2b-256 | 9c72dffcdf7a6d72dac35bb0630647a5d064124c27141e685731d8e9e5d3bb28 |
Close
Hashes for pyeoskit-1.1.2-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f80bf935ce6e4975020e451f9e9d48b83fdadf71d960646f18ec3c1db28716 |
|
MD5 | a3759be1890adc1a2f691666672edf46 |
|
BLAKE2b-256 | 4a18db2b5dff459d2c2bd9099c1c55103b11488f96a95a1005bb8be4fd6423db |