Skip to main content

Types / API for TON blockchain

Project description

Based on dTON fork License PyPI version

Chat About us Docs Keys and rates X (Twitter)

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

Documentation

Documentation can be found on tonpy.dton.io

Supported systems / architectures / Python

System Architecture Python versions CI status
🐧 Linux x86_64 3.10 – 3.13
🐧 Linux aarch64 3.10 – 3.13
🍎 macOS x86_64 (Intel) 3.10 – 3.13
🍎 macOS aarch64 (Apple Silicon) 3.10 – 3.13
🪟 Windows x86_64 3.10 – 3.13
🪟 Windows aarch64

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

Donation

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

dton.ton

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

If you're not sure about the file name format, learn more about wheel file names.

tonpy_dev-0.0.0.6.2rc1-cp313-cp313-macosx_14_0_arm64.whl (7.2 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

tonpy_dev-0.0.0.6.2rc1-cp312-cp312-macosx_14_0_arm64.whl (7.2 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

tonpy_dev-0.0.0.6.2rc1-cp310-cp310-macosx_14_0_arm64.whl (7.2 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file tonpy_dev-0.0.0.6.2rc1-cp313-cp313-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.6.2rc1-cp313-cp313-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bc8c83997d83424ced0d5dd1750f91464418ae928d412aae230cbbd8aeddd3fe
MD5 0a8000091e74a4df500752f67da5ade7
BLAKE2b-256 d0cbd7bdbf0f69a1999571b3165e6e0704c44d6284f208af2594e388d1717bae

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.6.2rc1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.6.2rc1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0b23c847de1cb28e24ddb80e3277f4fab7a3474fe316916d04fcadeda908a4ac
MD5 eea8a7d30200c9b556dda1cd7e2f392f
BLAKE2b-256 3a2c38f43b1c9195780ea82667f1c4c451391265e369d422e8a30b78ccedcad4

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.6.2rc1-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.6.2rc1-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 010a8c89b5dd2c815fe106a9f651ee00a502ef7316d6760ae8ebc6688c4aefef
MD5 a77cd256807a986c87bedde8256a968e
BLAKE2b-256 267712af8069030aef78988db80ac9a91a5fd3a5f5c6145229f72e2579a2952e

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.6.2rc1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.6.2rc1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 74ddd6bd071ac6fe85b1377f2eeecae1d4ad061eac1fd40cbfcd8ac4caa96f4a
MD5 a6c34aa64e6abb29043e4c6ee42449b6
BLAKE2b-256 fce079c328c54a9a95b08f0495ef4521441da452a3c8b0309a026de8db00e4ef

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.6.2rc1-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.6.2rc1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce92b5666c4b528f2318ffdc3af22c81db7ace12e41796b811093b4bc56a1b2b
MD5 7095b13d99c4978d64d9e3996cfe879b
BLAKE2b-256 c20bc392f9b77023ce9449b17e5ac232febd1daf7d6c6d2d6583d8ad9c2d8c79

See more details on using hashes here.

File details

Details for the file tonpy_dev-0.0.0.6.2rc1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.6.2rc1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 752a5cef09dbaa52cacb993890f1775a14a3f65adfb8366f77217987d308070b
MD5 f618eda7b344b267fd4c99ffb2618747
BLAKE2b-256 661b4f98cb64b4f9013f716ad7d1d92a0c4f2e8134dcd0cf2199afba8e217285

See more details on using hashes here.

Supported by

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