📦 Tonutils
Tonutils is a high-level object-oriented library for Python designed to facilitate interactions with the TON blockchain. It seamlessly integrates three prominent services for working with TON:
- tonapi.io - REST api to TON blockchain explorer.
- toncenter.com - Fast and reliable HTTP API for The Open Network.
- pytoniq - Library for direct interaction with Lite servers.
By combining these services, Tonutils provides a powerful and flexible toolset for developers, making it easier to work with the TON ecosystem.
Installation
pip install tonutils
To use the LiteserverClient, which requires the pytoniq library, install it with the
optional dependencies:
pip install 'tonutils[pytoniq]'
Donations
Your donation supports the future of this project. Every contribution helps stimulate innovation and sustain development!
TON - EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess
USDT (TRC-20) - TGKmm9H3FApFw8xcgRcZDHSku68vozAjo9
Usage
Providers
• TonapiClient To use you need to obtain an API key on the tonconsole.com.
Client Initialization
from tonutils.client import TonapiClient
API_KEY = ""
IS_TESTNET = True
client = TonapiClient(api_key=API_KEY, is_testnet=IS_TESTNET)
• ToncenterClient To use you need to obtain an API key from the bot.
Client Initialization
from tonutils.client import ToncenterClient
API_KEY = ""
IS_TESTNET = True
client = ToncenterClient(api_key=API_KEY, is_testnet=IS_TESTNET)
• LiteserverClient For better performance, pass your own config, available from the bot.
Client Initialization:
from tonutils.client import LiteserverClient
config = None
IS_TESTNET = True
client = LiteserverClient(config=config, is_testnet=IS_TESTNET)
Guide
Wallet Operations
Jetton Operations
NFT Operations
DNS Operations
Vanity Operations
Contribution
We welcome your contributions! If you have ideas for improvement or have identified a bug, please create an issue or submit a pull request.
Support
Supported by TON Society, Grants and Bounties program.
License
This repository is distributed under the MIT License. Feel free to use, modify, and distribute the code in accordance with the terms of the license.
Metadata
Release files for stonutils 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stonutils-0.0.8.tar.gz | 70.3 kB | Without provenance | Details for stonutils-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stonutils-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for stonutils-0.0.8-py3-none-any.whl |
Total release size: 154.6 kB
Release files / stonutils-0.0.8.tar.gz
| Download URL | stonutils-0.0.8.tar.gz |
|---|---|
| Size | 70.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d43f8b12cf50bd7d875a64e88fd7f5fafd9e46a8bcffbcd3b6cfc905dfbe689
|
|
BLAKE2b-256 checksum How to use checksums |
3928edee29841f962e38cb3e64ecc8be2c7ef7c2fed8e2d485546e42cef0dd00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / stonutils-0.0.8-py3-none-any.whl
| Download URL | stonutils-0.0.8-py3-none-any.whl |
|---|---|
| Size | 84.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb7b0fdbae7939599635eedec701f78672ec9368155ed4bd8b54e7c1d66f82d2
|
|
BLAKE2b-256 checksum How to use checksums |
2dc38302d6d15bc0c659fafba744188c00af9a939e5bd240cb77999bb6ccbd42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for stonutils 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.