Skip to main content

Python API for libtonlibjson (Telegram Open Network Light Client)

Project description

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.

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

pyTON-0.1.1.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

pyTON-0.1.1-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

File details

Details for the file pyTON-0.1.1.tar.gz.

File metadata

  • Download URL: pyTON-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyTON-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b27320bf5fbff06af595b7fe5b67ef52b232a0c3558a84d3a1c32f3c3bf017c6
MD5 c668d3c772545f21a4c4e6ed44f3a004
BLAKE2b-256 aae20dfd07d6513212ef092faf88f012c3acd823e3bb7dac5b24bb2634e3c46c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyTON-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyTON-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33465860802905859a005b1cfee6cbc3d2d50d95f421a5847a2d25b22c700f67
MD5 e7e2549fbbbef40b23ffb1dfc7a8e733
BLAKE2b-256 a5601989309f56272f0b97558d36b496dbc712086914e1f5d799daff93a0bc25

See more details on using hashes here.

Supported by

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