Skip to main content

telospy

Lightweight python package for working with EOSIO based RPC APIs.

Install

pip3 install telospy

Example

from telospy.api import API
from telospy.models import Action
from telospy.models import Permission
from telospy.exceptions import AccountAlreadyExistsException

# This example assumes that there is a node running locally on the machine
# It also assumes that the chain is a telos chain, but telospy works on either telos or eos

api = API('http://127.0.0.1:8888', 'http://127.0.0.1:8999', 'v1')

try:
    api.create_account('eosio', 'goodblockio1', 'TLOS8BLqdVB2Lk4qppxrUkA3xGrgqbgbiBLM5iey7X5t1LbDYkG2yA')
except AccountAlreadyExistsException:
    pass

args = {'from': 'eosio', 'to': 'goodblockio1', 'quantity': '1000.0000 TLOS', 'memo': 'Sent from telospy!'}
permission = Permission('eosio', 'active')
transfer_action = Action(account='eosio.token', action_name='transfer', args=args, authorizations=permission)

receipt = api.send_transaction(transfer_action)

print(receipt)

Metadata

Release files for telospy 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telospy 0.1.6
File Size Uploaded
telospy-0.1.6.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for telospy 0.1.6
File Interpreter ABI Platform
telospy-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 51.5 kB

Release files / telospy-0.1.6.tar.gz

Download URL telospy-0.1.6.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f81e5d0f9cfcf2a2e93f35563cf17fec746555fd7275f248b2adbab2bcb93eac
BLAKE2b-256 checksum
How to use checksums
899408fda4a08addfbdbd9611a1fbefb481d9364d3f4cc013dbd06805223b355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release files / telospy-0.1.6-py3-none-any.whl

Download URL telospy-0.1.6-py3-none-any.whl
Size 38.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aee4dc506bb410973b58bad881061d1359993fdda8dacd73696abac019279512
BLAKE2b-256 checksum
How to use checksums
6b4d71e33192139c37491c2f343da57cecaf146dd90554854bbe25cfc3a53d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page