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

Uploaded CPython 3.12 macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6rc1-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1533a32251b71f047044149d9f3982c676dbebebb73a9da7a9130edef2630fe8
MD5 b197149fd647ccf90861018563c8d5d3
BLAKE2b-256 0c0ae82985bbd81cb6153fbd76bf5e8c7c54b82dd3fa5df0cd4702cddd54d707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6rc1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5190c7cb669cbd80743423edddd662ffa5460e3f8b92d0eceef8f9c34d38f06
MD5 c8686ee7afdbdf0f42d0d998812f022b
BLAKE2b-256 e116faf6186f121e3831d3c4898794b5612a9f2e47640cd86cb55841496483b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tonpy_dev-0.0.0.5.6rc1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 368cedd7248003a04e593d665ca8f2f29b668e64e1647a535944f3afeab85930
MD5 afec9755ece852421f6c63332606ecfb
BLAKE2b-256 3b045a2964a87d15aeb7995b5b12b51ea9cb44794cce6d691fd5cc428ac7ec10

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