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.7.tar.gz
(523.9 kB
view hashes)
Built Distributions
Close
Hashes for pyeoskit-1.1.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0895d0de5d051ae93a0fd48438a8b61644261c26dbcae2869024ef1560c8b836 |
|
MD5 | 5c1bd5baf940e7c5714d0b20a9920a44 |
|
BLAKE2b-256 | 350f3129f72b6e95c79bdc70bce3559ab60681199d286cb883e5cc0939a88b55 |
Close
Hashes for pyeoskit-1.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32d44a6609cc35fcb964da59dc3fcf97594b0136d074d33435455b07270cc4fc |
|
MD5 | 28aeb2726baa0defd2a0e51cccdf8e69 |
|
BLAKE2b-256 | 7ca45c13f867db271d298923eab2d10bd36a620478d8ee1a3748cfe0abb59eed |
Close
Hashes for pyeoskit-1.1.7-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e5bd42cc97fae45967ccf92f2cf1fd7eaca32eb969c80280a414a28df6f51e |
|
MD5 | 8e8484344bee99fba1a014bb4a2c5c53 |
|
BLAKE2b-256 | 66097c71bff9705177aee421abfbb583c37b14345bc38a171f56a4032aa06ae9 |
Close
Hashes for pyeoskit-1.1.7-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca69f95b2b7db347415d6084342427623cb02347c5d8a7282f0001057f0d241c |
|
MD5 | d064ff89b6e917b41deaa00c73a3d9d1 |
|
BLAKE2b-256 | 9d4f6399970b83681c594cf1923430eab11fe01f35fb2b88d48d579cd81b5552 |
Close
Hashes for pyeoskit-1.1.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1fc2071f0ac7dd3ccd2cfd2a3720873af1544436bbc56a1f2539151ba6c0b5c |
|
MD5 | 8fe7600aad7ab9f0b8cdc6d60dfd9c4f |
|
BLAKE2b-256 | 4334761209da2b96e93eb5669480b4d3113b40ab6c34979cab427ce34ed92af2 |
Close
Hashes for pyeoskit-1.1.7-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b64f712ebf3db36b2f0e6034ceaff356a26bcb11bead5169751a9d17b6d8426a |
|
MD5 | c3d11d32d23428392de242b4e023993a |
|
BLAKE2b-256 | 8fce996b7513b172238182ce28b395e00d5a163a755fa3b39d99218b353549ed |
Close
Hashes for pyeoskit-1.1.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec27926c6f552373287acff4d1eaabbd5ba17d67e1a4723d8ef5e231322f546 |
|
MD5 | 7edafcdfe61928e81d7b611c16ef60b5 |
|
BLAKE2b-256 | 319469221e1ce210d854024e319dc2454771922efeffb598b7ab5457a5a340c5 |
Close
Hashes for pyeoskit-1.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 949152ce133f255995752f48ce00c4cbef4e8789b2e442b717e05a27f83ebd0e |
|
MD5 | 81f08d5581efcf2f9c90003e892bcfac |
|
BLAKE2b-256 | 339370291f4b399816e7fa0b842ef8398c2de023af1f29decc2b249704afb331 |
Close
Hashes for pyeoskit-1.1.7-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a98ba88651f23501fb080433acafae2e41b238a71919c8669ca7b1d4ea7e200 |
|
MD5 | 437bf4395b996662cdf3145eb120ef8e |
|
BLAKE2b-256 | 5d9f6a03edda54d0a729263a74b29a6ae6960e2d69026549cb33d9782b91ff68 |
Close
Hashes for pyeoskit-1.1.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a5eff396c3de2955c636181e655eee17e9d0801cdc074fe915b1f40bc1dba2 |
|
MD5 | a94cc9bccacad88defce1d13ab2cbbe9 |
|
BLAKE2b-256 | 2c4058c848ae03866b293835f7c592f8c85477860af98e4cb90ece21ca0b6eff |
Close
Hashes for pyeoskit-1.1.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f285b509ee5309a8eafe6c69d9b10e032d9c3e17a035fe3f631f4f6dd51418c |
|
MD5 | a6281a3744e12dfd2d65653d81e672bf |
|
BLAKE2b-256 | 60ee91d5558e22defa0e4411678a7945b1a2e717dc2d4a29a9d16ea90da19678 |
Close
Hashes for pyeoskit-1.1.7-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9474ea2cdd3d178efed9ab18358c622836b6af0cc181646c9bfdc897a5a3811b |
|
MD5 | 55a372af19551038c954606efdad86bc |
|
BLAKE2b-256 | 84020f1e646daf8a21a5b8a8311a05c141d6dc5fc62a4f35550872002894db59 |