Skip to main content

Tonutils is a high-level OOP library for Python designed for interacting with the TON. It is built on top of three of the most popular libraries for working with TON in Python: pytoniq, pytonapi, and pytoncenter.

Project description

📦 Tonutils

TON PyPI Python Versions License

Tonutils is a high-level OOP library for Python designed for interacting with the TON. It is built on top of three of the most popular libraries for working with TON in Python: pytoniq, pytonapi, and pytoncenter. By integrating these libraries, tonutils offers a convenient and flexible tool for developers.

Downloads Downloads Downloads

Installation

pip install tonutils

Usage

Providers

  • LiteClient

    Uses LiteBalancer from the pytoniq library and interacts with the blockchain via lite servers.
    For better performance, you can pass your own config from a private lite server, which can be acquired from the bot.

    Client Initialization
    from tonutils.client import LiteClient
    
    config = None
    IS_TESTNET = True
    client = LiteClient(config=config, is_testnet=IS_TESTNET)
    
  • TonapiClient

    Uses AsyncTonapi from the pytonapi library and interacts with the blockchain via the tonapi.io API.
    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

    Uses AsyncTonCenterClientV3 from the pytoncenter library and interacts with the blockchain via the toncenter.com API.
    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)
    

Wallet Operation Guide

NFT Operations Guide

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.

Donations

TON - EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess

USDT (TRC-20) - TJjADKFT2i7jqNJAxkgeRm5o9uarcoLUeR

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.

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 Distribution

tonutils-0.0.1.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

tonutils-0.0.1-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file tonutils-0.0.1.tar.gz.

File metadata

  • Download URL: tonutils-0.0.1.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tonutils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0a9309a132d7726df75ff63553827cb1c603746b3ae3d895d21b5fa17b8896dd
MD5 3abfcc5220c7e439969b3b60b875c70f
BLAKE2b-256 0a73bd72438f17bc21a32751d472c03fcfb0d773a98e459af4526f3a3d18a285

See more details on using hashes here.

File details

Details for the file tonutils-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tonutils-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tonutils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a552890d31a4fa7e6ff5f2fafc687a2d1278fe6c9a39fbc4253d63910aeb183e
MD5 7bb867a0276af36aa2504fbb49ee963a
BLAKE2b-256 cf06205c57cfddd0f49f3ba9ce938a50137517c7294ac3446e62076695265f0d

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