Skip to main content

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.

Project description

📦 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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytoniq-tools-0.1.1.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

pytoniq_tools-0.1.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file pytoniq-tools-0.1.1.tar.gz.

File metadata

  • Download URL: pytoniq-tools-0.1.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 pytoniq-tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da63932e6c47f50da6cfccef63a9372a9b7167fb96b7f01838ea421e125d6478
MD5 09a8066a1d7ad2db17158bac790a49e7
BLAKE2b-256 e8765ae6bd6234561e3845317a23a0928d8cb64e193682b4bc12243f677cf2c7

See more details on using hashes here.

File details

Details for the file pytoniq_tools-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytoniq_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58ab63940711856ea67fda7e67f6bc212732e30e62e820566fcd18034df9fddb
MD5 3116324f5c2f51171f225bd196233a65
BLAKE2b-256 72b74079c4d36a6dfe15bda660d9f4b78c147723cfda0d677da7b199a663b36a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page