Skip to main content

Types / API for TON blockchain

Project description

Based on TON Python version Supported OS Supported arch Telegram Community Chat License PyPI version

tonpy: powerful Python TON toolkit

What is it?

tonpy is a Python package that provides data structures and API to interact with TON blockchain. Tonpy is separate for two packages: C++ bindings and main package that takes pre-built binaries compiled by workflow and creates complete python package with some python code on top of C++ bindings.

Installation

One command: pip install tonpy

Complex installation for not supported systems and python versions are described in documentation

Speed compare

compare/pytoniq.py

Cell load tests

module 100.000 Cells, 1 ref, 1024 bits vs tonpy
tonpy 0.02 1
pytoniq 1.39 69.5

compare/tvm_run.py

TVM Run

Be careful, enable_stack_dump=True increase time of execution

mode Secs TVM Instances Count
sync 3.53 10
multiprocessing 1.10 10
async 0.59 10
sync 36.36 100
multiprocessing 5.36 100
async 5.15 100

Documentation

Documentation can be found on tonpy.dton.io

Donation

If you want to support our work, send any coins to:

EQDfmsDtWQP5D_YkXX-XlULvs4HivRaKY38ftT2hS5yAANRf

License

Copyright (c) 2023 Disintar LLP Licensed under the Apache 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tonpy_dev-0.0.0.5.6b1-cp312-cp312-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

File details

Details for the file tonpy_dev-0.0.0.5.6b1-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6b1-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9c28212b125b6599dffc9e8bba3c44266edac4d3a66932b72897ef78a83ca87
MD5 6fd2870c1c1d3777a16527d11eb3cdaf
BLAKE2b-256 cdfa9b8d3ba9c36541766e6a4a44291b600e5d5e045ec371c22c04904cc1c531

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.5.6b1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0828b22fed3a4c58a665cc6157ad4754007bd71e14e164ced586a479de5688b2
MD5 9675bd24a5da4afa10ab598e3d98ee6a
BLAKE2b-256 ef182842e0d7df4418e8daa43415a49698f421a1c54dd5f8b9421a833ef1f0a9

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.5.6b1-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6b1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 75ca2fc903e3f489120a86c3d542df340113c3fa23d4e04a06efb038abec1d4c
MD5 0131b2ce7978433748b51c20fd22020b
BLAKE2b-256 0cc804dfed3588311c1fa95615fb2b205c4ad873add54cd2f0d3b5e92495f397

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page