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:
-
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:
--port- default 8000 - webserver port--getmethods- default False - allow runGetMethod endpoint. Note, that generally it is unsafe to allow arbitrary method executions since maliciously constructed getMethod may crash liteclient.
Metadata
Release files for pyTON 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyTON-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pyTON-0.1.4-py3-none-any.whl |
Release files / pyTON-0.1.4-py3-none-any.whl
| Download URL | pyTON-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
441d3000bd1fcfd286307935ba0f4ff82cb2979e9a3142cee3191ffa1be71e9c
|
|
BLAKE2b-256 checksum How to use checksums |
eb54fea9a1e873e3d656b285c486fe8835fd378416e10a738c69b201fcfd2601
|
| 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
|
Security for pyTON 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.