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.6a1-cp312-cp312-macosx_11_0_arm64.whl (9.1 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6a1-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0226b0d33b88445c476e8f6eff852f13c865bcf87471f6b215319869c4c8605
MD5 3ccb5b3e74d95c8984e2c6fcb3a0fb58
BLAKE2b-256 189cb702535fe429f1dc49502883f9ec8e7847198f98349cc3e67957bc489e06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6a1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25d87f2ed9e713388f99efdf3f565b1bb2be21a2f2c22d4b880ec52316f23658
MD5 fdcd5867e1d3332ef13bbda1f91de8bc
BLAKE2b-256 127cbba19312fe1ee4aad794baba153266563cbcaabe0d5e333b005d754a97de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6a1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fcc98f0b16d83e49554e35d8d5ef1406767630649850d3b330467d8bed3cbc9b
MD5 8db737d9976be90ebd970a5bedff2300
BLAKE2b-256 5da6573e95b50e6e1636dcb609f38496aa4a66b8a8631885efd33a458f406af5

See more details on using hashes here.

Supported by

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