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
Built Distributions
File details
Details for the file pyeoskit-1.1.12.tar.gz
.
File metadata
- Download URL: pyeoskit-1.1.12.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3fa73d088ade904c44f2f0cf18110d08c11eb97953cea41a58538a47b4c3b48 |
|
MD5 | 717d60727f1d7bba2ac4513bc3a8d06a |
|
BLAKE2b-256 | 088fe0cd654cf3eb376923cce7f699729819d28cce3a312f59f2d827d871275f |
File details
Details for the file pyeoskit-1.1.12-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a35b11b59f7f9f65736cb0e3c51aba713e9d98ca8a8ea67b7f6cdf84d4368c |
|
MD5 | f89f149eb132da639fba2fdcb1851391 |
|
BLAKE2b-256 | f9c7bbbd2ecfcdfdf659bd4957bd4646be89f4be6c074d0811c3f24b8961adf1 |
File details
Details for the file pyeoskit-1.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6afeb92369c74ed215566446a360205f33314b10aaff9829ba418894b272de46 |
|
MD5 | c459de039588833d76a9636a93e11c89 |
|
BLAKE2b-256 | fc4ac182d6659cccfc6076f7aec71234010e8305775cbbca124df7109aa22821 |
File details
Details for the file pyeoskit-1.1.12-cp310-cp310-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c1e1f5008651fc541c854d85f3afbb9a007a921addb38628e5f4b41fd813855 |
|
MD5 | 1479651ce9476b186f5b92ea28502acd |
|
BLAKE2b-256 | e2a8693ca7faf67d100114bebfde10cfb6b531bd7aae54fdbaa1d81402e09ae4 |
File details
Details for the file pyeoskit-1.1.12-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f78af92307bacc6aa1dccbb184470a4af4ead53fa68bccf4184126959999ea9 |
|
MD5 | a02375a8ad5601bf4c11fae012da07f6 |
|
BLAKE2b-256 | 7ff6738af95f986ad521af4eece8ca191fa779346dce3d5aca08072728d3b17c |
File details
Details for the file pyeoskit-1.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a1f1f9196b77d3ed6c0b9db4f3373b468d2e757f16beed2f38237fc6f0766a |
|
MD5 | e2167c55e4fcc42efcb69a502b37bc6f |
|
BLAKE2b-256 | 15cdb8f084308cc6f72d9150527a8c7514443265edfdd1442df24362d301ab6d |
File details
Details for the file pyeoskit-1.1.12-cp39-cp39-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ded06c7940f63bbddcd0fe548ba11f1605018e1f8b4f112ab30784b31881879 |
|
MD5 | 33e2e582db3bf6d790afb851eccc8f62 |
|
BLAKE2b-256 | 145d983e5705ef3fbdbef6f09e7f1ff465341b9e42dd7c58c319bdffbfdf98b3 |
File details
Details for the file pyeoskit-1.1.12-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7459cd4ec8b9edc118bf5e83fe552acfbdd62d0c8e2b8852185938c8db5d2db |
|
MD5 | 7b5eb47745b63c30bca16c8de260a298 |
|
BLAKE2b-256 | 167b0c119e6c9cbe0248e0744f165e13bfc98e714bbfb6a9286c699ba7824910 |
File details
Details for the file pyeoskit-1.1.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d2492ca1226505a4b08b1f8d4ee6cdae3682c1a46564fa5131085c2978c26da |
|
MD5 | 11245922aab59eb2de98af58d987d3e0 |
|
BLAKE2b-256 | f701952281c53e488f3e42021f5b31a35b6e4d4b8e6b3174ae0eaa6de18cfacd |
File details
Details for the file pyeoskit-1.1.12-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03270e4d77c8c36c5fd34331ac85516d0f7a637b65b459efcaaca80672beb9b5 |
|
MD5 | 52f4f7b38b873df4f7dbebe86d586523 |
|
BLAKE2b-256 | 0aa951edc9525ff9b0921f3bfd37422f5da95084d5eace5ee129bc694efa5829 |
File details
Details for the file pyeoskit-1.1.12-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abe471c568d90fead5e7723d6b708ecb8e60b6ad95a5658e3911afd6f9ed8617 |
|
MD5 | 57b5f9b9cb70230f79c142ed7db9e4b2 |
|
BLAKE2b-256 | a439285cc3ab9e46b5c4b77f664df002e6e6d1a52c14cb6865503bd6d716f506 |
File details
Details for the file pyeoskit-1.1.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7872feb7a805d11128ab067a0e9a480183e2588fe2fd1a12acb332e8bf2504aa |
|
MD5 | df8253f8bd22cd1b3e72cd973c615da5 |
|
BLAKE2b-256 | 793d9d135ed8200021d0723117a56d33084b813a4f534ae842531e5051361a86 |
File details
Details for the file pyeoskit-1.1.12-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pyeoskit-1.1.12-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5fc065081abe532ab988138c9be2fc082e9913f784d1d3f121374af7e48f82 |
|
MD5 | c0896a465a7d0cd05aa96acee3a228fe |
|
BLAKE2b-256 | 35d7e9b2d5b3b47405b171d72e8bef1cffb42fd548448db668b1877f30630222 |