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 Provenance Actions
telospy-0.1.6.tar.gz 13.1 kB Without provenance Details for telospy-0.1.6.tar.gz

Built distribution (wheel)

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

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

Security for telospy 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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