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.9b1-cp313-cp313-macosx_14_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

tonpy_dev-0.0.0.5.9b1-cp312-cp312-macosx_14_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

tonpy_dev-0.0.0.5.9b1-cp310-cp310-macosx_14_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file tonpy_dev-0.0.0.5.9b1-cp313-cp313-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.9b1-cp313-cp313-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f6aca942dec8ba3b0da95708d80ef0555ee45f248eb6457fec992d3d68ab945
MD5 d26093914a9d78a5219d9dc94a1ec31a
BLAKE2b-256 05e72f8438dde20ad48c415e12a87a120e803290e999160257dffadbf35bb87b

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.5.9b1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.9b1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 00c8fb9d265c109c8a3c76da6a2a2bb2da503a72cd539ec09f22738441696df9
MD5 8bcc289c460712b854f682168ddedecf
BLAKE2b-256 b30ee4535eb4b1108d7a8cd2fd99f9a3abe1a61b491ebfff392573c294d7ba65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.9b1-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ab2549cf2d0f8f0ec3c7e1a18edba7f25e50bc312fe3c80663c36fdfb4b6a8d
MD5 fdf5f4b915acc8f53eecc1b1be506589
BLAKE2b-256 3bf1530c79899e1b04f7de7bf421069197c4a18e1b1ff016cf8e5cf4c3dad115

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.5.9b1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.9b1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 76898001cbd61b0571275dfa86a9e23c88b7e3723357cd3ccd71823a0add45b4
MD5 7e3e4a0fce864afd75ffe42a5dadbef9
BLAKE2b-256 eb33b357c10221224aceeaf384a2b3fd353282d3786f97c9e9c57f765726e36b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.9b1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecc38dafed04356bee62ffd01293eeaef3048d6ed44c419e8ccaed9b0b8edfdf
MD5 aa72729444be1f6d5bab4f9df043306f
BLAKE2b-256 ca60fe4df6bc6524bc15d4b7855d6d3bec2bcb6b81ab9965782900b288b70f88

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.5.9b1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.9b1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4479207009a3f4e7a853333508d79416542ddf192b873e89af6fb3fb416a1866
MD5 32bbdfe8397babf376bc299ee0ca4159
BLAKE2b-256 a5e805b93323e327672aabbe536f6261b0076f8be607b29c2786997d73828ece

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