Skip to main content

Python API for libtonlibjson (Telegram Open Network Light Client)

Project description


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


This client works with Python 3.7 only.


  • 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.dylib depends on archtecture. Check here for fullnode's build instructions. Don't forget to copy library file to pyTON/distlib/linux/ or pyTON/distlib/darwin/libtonlibjson.dylib

Install using pip

pip3 install pyTON

Running as a webserver

python3 -m pyTON


  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.

Project details

Download files

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

Files for pyTON, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pyTON-0.1.4-py3-none-any.whl (5.5 MB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page