Python Toolkit for EOS
Project description
Python Toolkit for EOS
Installation
On Linux platform
python3 -m pip install -U pip
python3 -m pip install pyeoskit
On Windows platform:
python -m pip install -U pip
python -m pip install pyeoskit
On Apple M1 hardware
pyeoskit does not have pre-built versions available for ARM chips. in order to build it from source code, you need to install cmake
, go
, scikit-build
, cython
.
brew install go
brew install cython
xcode-select --install
python3 -m pip install -U pip
python3 -m pip install cmake
python3 -m pip install scikit-build
python3 -m pip install pyeoskit
Code Examples
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'
}
#indices is an array of ledger signing key indices
eosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'}, indices=[0])
Docs
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
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.10.tar.gz
(3.7 MB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.10-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb4a712f56c3b1e6ef91194416852576fb4ca0d6f513c712573eca07e85ebf3 |
|
MD5 | c6119ab7708269f258741635fac4cae7 |
|
BLAKE2b-256 | c2d6c98ae17139144941af3436bd8dd9570bfea5e3d7bbcc6fbce73aae3b20e5 |
Close
Hashes for pyeoskit-1.1.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70961a3e71dbfd9339c024f63d574ebde90c80e87f425716c6bf386ef63bda12 |
|
MD5 | 7565e9e2e0b0d437c445ba253e1a1177 |
|
BLAKE2b-256 | e0910e777a2301aca4a257954bcdaf3b8048d232f908596ce9d8d668ef720db1 |
Close
Hashes for pyeoskit-1.1.10-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2f8a630972895356d0b0b6732001416140b2a2241c517710000cbfd8f57289 |
|
MD5 | c143121ec7eafa6d47d4cf6c64325ab9 |
|
BLAKE2b-256 | 6ee95c23196e285d0532d0b8faab0cbabe11768ec72faaaae3756befab6e8b41 |
Close
Hashes for pyeoskit-1.1.10-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a6079fcdaa00af547dcfd12b30a25596b72f2abba9d4dfa4aa67f1e41aeb3a |
|
MD5 | cd925578659f5e016728fe8af27fc347 |
|
BLAKE2b-256 | 6e7c73bf7cb186758072306e401b941a6c12e6d32c1471e66e8048538180f643 |
Close
Hashes for pyeoskit-1.1.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a7a5db3fe48e378affece84df84086ab452abf8db349d1935e57d746e94eb3 |
|
MD5 | 788dbb884a7798586b59c228d790c329 |
|
BLAKE2b-256 | 7e5729fe92f4c4fc623d6533e93721fdafc864456e016fec75e9527691e04e0e |
Close
Hashes for pyeoskit-1.1.10-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 746ecf6d9828b20d2f539f69dce8c3ca81f32d4cf0c0b1992bb35537b1e87231 |
|
MD5 | d06147554f23276786eb2c7bdcd82335 |
|
BLAKE2b-256 | 23c14f8e35c84118f1020325a2a8189f8f4a18c97393f53b76148e54ab69d9cb |
Close
Hashes for pyeoskit-1.1.10-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a744c44b27a5e9ab3ec61766f08081dad9542abe554e4cd959bc66d156d5ff5e |
|
MD5 | a43888d8848d113ab775b1e83a0678dc |
|
BLAKE2b-256 | 38871763836777450d5ed859179e849d73fff854256c4a45faeaa7836fb6dbbb |
Close
Hashes for pyeoskit-1.1.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9105e8fb336aca3cd6ef3d2fd749b80b8906417f412782f39980e6b7df3611 |
|
MD5 | 46028d4e280089ec1141c042bc9cadcb |
|
BLAKE2b-256 | 0db6e846aa03f239943581519caf576c9a6725ac8d13bd126e4c81663bcfab54 |
Close
Hashes for pyeoskit-1.1.10-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfe62eaf1e4c88c52fdcf0009679ca7364ff1be2a14000d3355b64ad67a06a09 |
|
MD5 | 65fb20fd03303a78dab2c88e81737717 |
|
BLAKE2b-256 | 6a1c32c1575b82629a8192c4c82f1b92930d3fcf9de2381959e8c08d9cc97e7c |
Close
Hashes for pyeoskit-1.1.10-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f3fba2e3f7e19b09469e84eccfab3e2e9d7bc1741d2415264b21365d26bbe47 |
|
MD5 | 2a6cfc63f5e4ac7f63062f1e1ecad323 |
|
BLAKE2b-256 | 9f2a11323534d67a1f6da207f1283cb06b08753eaaa600b6134777c184dafc54 |
Close
Hashes for pyeoskit-1.1.10-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca927d75e9944d149a67c196be71281a690f823c9cf9f649791e033a4e561921 |
|
MD5 | cba521751c2221ec6617099369c5e651 |
|
BLAKE2b-256 | fdf50793ab083df70e36a64209557c550f425df043a4934131bb0443efa8db96 |
Close
Hashes for pyeoskit-1.1.10-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f5ff7224eb15164ab10027fd2d852989fc2fb1f9044a136e310531514e8cdcf |
|
MD5 | dd42a5eb7eb4fee6f0abe7cb96fa5065 |
|
BLAKE2b-256 | 804b3171b3f79da94cd47356edf7b65ccb35fbc5f73635af4d263e8dab401e90 |