Skip to main content

pyTON

Python API for libtonlibjson (Telegram Open Network Light Client). This project is loosely based on formony ton_client

Installation

This client works with Python 3.7 only.

Prerequisites:

  • Pipfile

  • pyTON is been shipped with prebuilt fullnode's client library for Ubuntu Xenial & latest macOS. In case of incompatibility with your distro it's needed to build TON fullnode's libtonlibjson.so / libtonlibjson.dylib depends on archtecture. Check here for fullnode's build instructions. Don't forget to copy library file to pyTON/distlib/linux/libtonlibjson.so or pyTON/distlib/darwin/libtonlibjson.dylib

Install using pip

pip3 install pyTON

Running as a webserver

python3 -m pyTON

Options:

  1. --port - default 8000 - webserver port
  2. --getmethods - default False - allow runGetMethod endpoint. Note, that generally it is unsafe to allow arbitrary method executions since maliciously constructed getMethod may crash liteclient.

Release files for pyTON 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyTON 0.1.1
File Size Uploaded
pyTON-0.1.1.tar.gz 4.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyTON 0.1.1
File Interpreter ABI Platform
pyTON-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size:9.0 MB

Release files / pyTON-0.1.1.tar.gz

Download URL pyTON-0.1.1.tar.gz
Size 4.4 MB
Tags Source
SHA-256 checksum
How to use checksums
b27320bf5fbff06af595b7fe5b67ef52b232a0c3558a84d3a1c32f3c3bf017c6
BLAKE2b-256 checksum
How to use checksums
aae20dfd07d6513212ef092faf88f012c3acd823e3bb7dac5b24bb2634e3c46c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

Release files / pyTON-0.1.1-py3-none-any.whl

Download URL pyTON-0.1.1-py3-none-any.whl
Size 4.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
33465860802905859a005b1cfee6cbc3d2d50d95f421a5847a2d25b22c700f67
BLAKE2b-256 checksum
How to use checksums
a5601989309f56272f0b97558d36b496dbc712086914e1f5d799daff93a0bc25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

Release history Release notifications | RSS feed

0.1.4

1 release file

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page