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


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-0.0.0.1.4rc0-cp313-cp313-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.13Windows x86-64

tonpy-0.0.0.1.4rc0-cp313-cp313-manylinux2014_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.13

tonpy-0.0.0.1.4rc0-cp313-cp313-macosx_14_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

tonpy-0.0.0.1.4rc0-cp313-cp313-macosx_13_0_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

tonpy-0.0.0.1.4rc0-cp312-cp312-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.12Windows x86-64

tonpy-0.0.0.1.4rc0-cp312-cp312-manylinux2014_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.12

tonpy-0.0.0.1.4rc0-cp312-cp312-macosx_14_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

tonpy-0.0.0.1.4rc0-cp312-cp312-macosx_13_0_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

tonpy-0.0.0.1.4rc0-cp311-cp311-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.11Windows x86-64

tonpy-0.0.0.1.4rc0-cp311-cp311-manylinux2014_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.11

tonpy-0.0.0.1.4rc0-cp311-cp311-macosx_14_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

tonpy-0.0.0.1.4rc0-cp311-cp311-macosx_13_0_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

tonpy-0.0.0.1.4rc0-cp310-cp310-win_amd64.whl (6.7 MB view details)

Uploaded CPython 3.10Windows x86-64

tonpy-0.0.0.1.4rc0-cp310-cp310-manylinux2014_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.10

tonpy-0.0.0.1.4rc0-cp310-cp310-macosx_14_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

tonpy-0.0.0.1.4rc0-cp310-cp310-macosx_13_0_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

File details

Details for the file tonpy-0.0.0.1.4rc0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f4661f7efe69e8fcef330ecf7d19537ce321067413ae49b7e7fe3832aad25a71
MD5 862ec670b51b4cb09f80d2ce928e59eb
BLAKE2b-256 f637892c3bc5fa5ce551fadb31d247be964dccd2e7453bb4315136c8b78e0f8e

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp313-cp313-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp313-cp313-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 baa4c013e11ca66dd52e7d5bae901bf237181dee8127183d538d17227f65ec0a
MD5 af3d91c2e84a4f82d253fdf391125930
BLAKE2b-256 52e516f7b2248a034ebc8c8f131f057249401c26669da28085ee31dadf8ee6e2

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2a81241138f906f9e1c3d4607b93a9e2aa3b5d0c4d3f7a02ffca0b43bcd9a213
MD5 36ba961f7f3e023f06218316dcb4cf0e
BLAKE2b-256 5dda953601f92d5f61b2ef4e4642e3364019d1117c7c74b40a008586e1bf9d34

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a4a8e3ed89b6b6ec08c859d5ed2da41b8480fc54f84f37cce9ea225dbeb42677
MD5 13401450f5fa7a871c84dd86d9f4baa6
BLAKE2b-256 80870266c3b5adbc13b91fac7a757a00a421ed95cb700100c85d2971db306e7c

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 32054f6f250bcadbc80f849afddf439a4e60f5bde89e65191f79c9e9d2b3b8a5
MD5 ed8d5fda61c6911fa755fef22d56f58b
BLAKE2b-256 afd12a91a9054b583ca462e682552af245ef62188c916ec1bf09a26b231cee27

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 acdef8f449a73087dd53dece7f7e08fac4859f293d5e2676ea0b7101c19a88cc
MD5 1b23bc5ce6b4044372a9705d33068ab8
BLAKE2b-256 a71b88c8b803bb0257f984951791e66be52ce9d6e8d38aa489183ebceec08a35

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 12c529d750d4f98a357ee3a1057e59bc1ffe12973c4daf680caaad516ce64d2f
MD5 403c119337361642f29af1c5f1c8b7dd
BLAKE2b-256 94eb1850f07cded9409250bbb9d82f4192309946917841bb4c332902e83c6d6b

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 03dde5fa932bb4bac73fca69c9341552e142a2f3786dc86126b6340c77fb558b
MD5 6ef5689333d43629558f718929e10ff8
BLAKE2b-256 461b5322d2b5e763494f35ca00f620bddec070585a53020d5947bed055f665e2

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0f2be88626c94eea0976da0d188e77880cd10c9380f7a1ca5077af5af634b52a
MD5 3c1a846d216c56c7a358be69a8731af3
BLAKE2b-256 f27e85aad33f8361493a326e0887b6be0506f35800d40f87d9c7677e8498c3a0

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7e47ac3f46c7d13ad1cf91f4566371482a1cbb596804d88428af8e1243d2d673
MD5 99e6c0932f2a477b7649ed89d1bb6d3f
BLAKE2b-256 f57f796759fd8f81527922365311575b4a783ded613e7b3d8f3ad5ffafb59dfb

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fca9d8823cc7f782dc9f66d1c78d4e70d6806c53e43b56801352feaa32612065
MD5 f6614305636844854221fa4e0f80ac30
BLAKE2b-256 a237631735177637e40ab77f9b0a233f5ea809dfbbbc14a46be617f6dd0f2ee1

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 97166a077e0e68686913f08793ec5e8c1662c2f3e38fb95d4daec86b524e8ce9
MD5 89683b90d399c11159493c2ce90ca4b9
BLAKE2b-256 a12437b90ab323c268036608f4e6859989292b3a397dc6ef1906db90747ddf7f

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b7248371e22a3760c22ee229fb0dd1018c7e2f46cfcf46f635d004d215ebc60c
MD5 f5da4fbed90b1579f825d8b489c83208
BLAKE2b-256 36dc42340328f41b66e5f42a236330dddde866b2f630c20a94250c84c92a2e13

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b18297a976d98f64b751917c854c2f24259141125d772f24b78f04ebc134a8e7
MD5 018a93a7347799bba9bb26aa196ea053
BLAKE2b-256 60cddd3b60ec1184a96b9f75cab7a265c81d9458d17f906ac823d28eac79bbf0

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 17ee62204dc45da02d28f041da5f92b5059ce20f2909e24972628e91322c2a11
MD5 cae86d900edc1777c05c6d572956f389
BLAKE2b-256 e73664329555d7334903af3299cec3402f97e648a632e5582e5d724b4cd8a204

See more details on using hashes here.

File details

Details for the file tonpy-0.0.0.1.4rc0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for tonpy-0.0.0.1.4rc0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b508d5a5d803f7417fd7e893ea5b611c9f12bd5443d262a4ef4a4944c21dceed
MD5 260633a1322dc883906c091dff29b398
BLAKE2b-256 f5cd6aa86d70c3109dcdbf69791dece969e89cd62d35dd2efce0e91430fba7c2

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