Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
/ pytoniq-tools Public archive

Pytoniq Tools 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.

License

Notifications You must be signed in to change notification settings

nessshon/pytoniq-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 Pytoniq Tools

TON PyPI Python Versions License

Pytoniq Tools 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, pytoniq-tools offers a convenient and flexible tool for developers.

Downloads Downloads Downloads

⚠️ Important Notice

To avoid confusion with the original pytoniq library, the pytoniq-tools library has been renamed to tonutils. The pytoniq-tools library will no longer be updated and all future updates and support will be provided through tonutils.

Installation

pip install pytoniq-tools

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 pytoniq_tools.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 pytoniq_tools.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 pytoniq_tools.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.

About

Pytoniq Tools 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages