Skip to main content

Python Toolkit for EOSIO

Project description

Python Toolkit for EOSIO

Quick Start Binder

Latest Release

uuoskit v1.0.2

Installation

pip install uuoskit

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
  1. Download and Install gcc compiler from tdm-gcc
  2. Install Go compiler from download
  3. Install cmake from download
  4. 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/uuosio/uuoskit
cd uuoskit
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 uuoskit -y;python -m pip install .\dist\uuoskit-[SUFFIX].whl

Example1

import os
from uuoskit import uuosapi, wallet

if os.path.exists('mywallet.wallet'):
    os.remove('mywallet.wallet')
psw = wallet.create('mywallet')
#import your account private key here
wallet.import_key('mywallet', '5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')

uuosapi.set_node('https://eos.greymass.com')
info = uuosapi.get_info()
print(info)
args = {
    'from': 'test1',
    'to': 'test2',
    'quantity': '1.0000 EOS',
    'memo': 'hello,world'
}
uuosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})

Async Example

import os
import asyncio
from uuoskit import wallet
from uuoskit.chainapi import ChainApiAsync

if os.path.exists('mywallet.wallet'):
    os.remove('mywallet.wallet')
psw = wallet.create('mywallet')
#import your account private key here
wallet.import_key('mywallet', '5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')

async def test():
    uuosapi = ChainApiAsync('https://eos.greymass.com')
    info = await uuosapi.get_info()
    print(info)
    args = {
        'from': 'test1',
        'to': 'test2',
        'quantity': '1.0000 EOS',
        'memo': 'hello,world'
    }
    r = await uuosapi.push_action('eosio.token', 'transfer', args, {'test1':'active'})
    print(r)

asyncio.run(test())

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uuoskit-1.0.4.tar.gz (94.6 kB view details)

Uploaded Source

Built Distributions

uuoskit-1.0.4-cp310-cp310-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

uuoskit-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

uuoskit-1.0.4-cp310-cp310-macosx_10_15_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

uuoskit-1.0.4-cp39-cp39-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

uuoskit-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

uuoskit-1.0.4-cp39-cp39-macosx_10_15_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

uuoskit-1.0.4-cp38-cp38-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

uuoskit-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

uuoskit-1.0.4-cp38-cp38-macosx_10_15_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

uuoskit-1.0.4-cp37-cp37m-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.7m Windows x86-64

uuoskit-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

uuoskit-1.0.4-cp37-cp37m-macosx_10_15_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

File details

Details for the file uuoskit-1.0.4.tar.gz.

File metadata

  • Download URL: uuoskit-1.0.4.tar.gz
  • Upload date:
  • Size: 94.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a585aecb0c383df3e1d6dac40fc5d95ed1aead2989ebb0947111f10413e3f72a
MD5 9a05c6f14f81b1f3de5cde09720bf138
BLAKE2b-256 0def3fc6418c22f8e109b6c90e82accb8f571c09f9c663257f91391631dba122

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c8beb919643ca300041f7f607a4933fd3cab5c30c15eed630f2f7ee10f3a2579
MD5 294886bafe6fa1a4ef28cd00bcb7fdfa
BLAKE2b-256 4adc97ef6ea66deae11dec4ea469a0b1c04508e3537611dfb79e4b10d2787e2d

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uuoskit-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7169bff67d934f8412a2efdd440c1001806b2ac402442395815a9c83c015c28f
MD5 10c90a9b57d0f6ee4c76b6255424dba0
BLAKE2b-256 2827d95832ea7ad7f96c7e51f2fef0395a2eb10cffc03e5e1b4121af1194b6b3

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-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/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 b3536e944761767f448b5a867494a639db7f55df03aa649d291ced64d3fd6bcc
MD5 a469c021e514ade0144a3f853355a8c3
BLAKE2b-256 d049570dc179810290d642cb7b5e2f23d55a25d53b3de94af07d2f6fe0c74ba1

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 86ce47594a2331036c945e32c5ceae258e09d619fb2403048ee1c9519c08bb97
MD5 4ea6486d05f500bd1882439c0b1884ef
BLAKE2b-256 3d5c93478a78407d129f620362a654586ec0e317a4e4433deac13f1e6d8fe699

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uuoskit-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0311b303e7bfcd48fe929c34ab15557a1ab8e77fbeca54e6c359f02b8c881a0c
MD5 6a73216632df7948679296ad4223d6dd
BLAKE2b-256 015380755bae0014d4a847c5342b04d6f74eac8191f61594fe6efe52b9393c60

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-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/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 289ef5912995a3d1ae00168e16ebd51f74992419a74250335f5971decd375d97
MD5 745b1fd1e6afdabf713b0816ee7f67da
BLAKE2b-256 759542b29100a01973134ccad0da1735d18f3e1610eaa0c989f9833e33c14b22

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1047afb2063c598e1e4235833802d128bf8bba31b95b6932b4b544be8e5a2ae5
MD5 f25cad93fc1222c1b403003c500a26d6
BLAKE2b-256 7b950d60bc1279b4c4ccd6260f7e3f68f14ef6863249497098b188ae51d62c8a

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uuoskit-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad9046f2e68c8a9f97d11f4c059c0cda25c8764f146f6aa0f5ea67ad905b5d73
MD5 9013431e9002505395615ef7aa60c42d
BLAKE2b-256 1fdb2f6137d52203612a09208c341720e76d315ddd709ed707f3a364ab5bb2cd

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-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/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 659812ec68c0450911dd56024c5c4a82dc6ffb4a84e0aa7cfc0c29a4593554c6
MD5 7537c7b28f25b28080627bfc673f1f3e
BLAKE2b-256 09f321f3b11ed2bee52da58e27fab1532eb24cc081708edf9e043410a8227789

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ceef8d536413737d8ceba10609ffafdf18efaa0424faded71420cd1d7aa21a70
MD5 b05d59eabd01cda99760f26e1eaa0cfd
BLAKE2b-256 a90cf7e2c6fad0b138a9af048639790d811d8aa830ac8ad635d670ac66c987ff

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uuoskit-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7062328e81458bb3dbbefdf8628bf329b5b9adcc6f4456cf2320e8304722ecf
MD5 15278a77326d216248caa3cbc7ebf110
BLAKE2b-256 343bfe459edaa7b72639b6df0787b8738f9b8f2e6cb2ece1d3dd4a1f4d3e2ae1

See more details on using hashes here.

File details

Details for the file uuoskit-1.0.4-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: uuoskit-1.0.4-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/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for uuoskit-1.0.4-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 117440ffd24583914df13eb68b20eb65c5e5fc2b17eb69a4269acd7212dac2ad
MD5 77d943d611a8a03fa92895c79c1ae204
BLAKE2b-256 1e5ae3acbdd936a4e804ff208a237bd11c6f7d9ad38d42b9e728d730af9b4de7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page