tonpy: powerful Python TON toolkit

August 16, 2025 ยท View on GitHub

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

SystemArchitecturePython versionsCI status
๐Ÿง Linuxx86_643.10 โ€“ 3.13โœ…
๐Ÿง Linuxaarch643.10 โ€“ 3.13โœ…
๐ŸŽ macOSx86_64 (Intel)3.10 โ€“ 3.13โœ…
๐ŸŽ macOSaarch64 (Apple Silicon)3.10 โ€“ 3.13โœ…
๐ŸชŸ Windowsx86_643.10 โ€“ 3.13โœ…
๐ŸชŸ Windowsaarch64โ€”โ›”

Speed compare

compare/pytoniq.py

Cell load tests

module100.000 Cells, 1 ref, 1024 bitsvs tonpy
tonpy0.021
pytoniq1.3969.5

compare/tvm_run.py

TVM Run

Be careful, enable_stack_dump=True increase time of execution

modeSecsTVM Instances Count
sync3.5310
multiprocessing1.1010
async0.5910
sync36.36100
multiprocessing5.36100
async5.15100

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