Skip to main content

A high-performance Python binding for TDLib, outperforming ctypes and bundling pre-built binaries for effortless setup on Linux and Windows

Project description

tdjson Version TDLib version Python Compatibility Downloads

tdjson is a high-performance Python binding for TDLib JSON interface.

By bundling pre-built TDLib binaries, it eliminates the effort for manual compilation and offers performance advantage over traditional ctypes wrappers, making it a reliable core for projects like Pytdbot

Buy me a Cup of TON

Compatibility

tdjson is compatible with the following platforms:

  • Linux (x86_64 and aarch64)

    • Requires glibc 2.17+.
    • Includes most modern distributions like:
      • Debian 8+
      • Ubuntu 13.10+
      • Fedora 19+
      • RHEL 7+
  • Windows (x86_64)

    • Windows 7+

Installation

You can install tdjson directly from PyPI:

pip install tdjson

Usage

Here’s a quick example to get you started:

import json
import tdjson

# Create a new TDLib client
client_id = tdjson.td_create_client_id()

# Send a request to TDLib
request = {"@type": "getOption", "name": "version"}
tdjson.td_send(client_id, json.dumps(request))

# Receive updates or responses
response = tdjson.td_receive(10.0)
print(response)

# Synchronously execute a TDLib request
result = tdjson.td_execute(json.dumps({"@type": "getTextEntities", "text": "@telegram /test_command https://telegram.org telegram.me", "@extra": ["5", 7.0, "a"]}))
print(result)

For more detailed examples, check out the examples folder.

License

MIT 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tdjson-1.8.57-cp313-cp313t-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.13tWindows x86-64

tdjson-1.8.57-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

tdjson-1.8.57-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

tdjson-1.8.57-cp312-abi3-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.12+Windows x86-64

tdjson-1.8.57-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

tdjson-1.8.57-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

tdjson-1.8.57-cp311-cp311-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.11Windows x86-64

tdjson-1.8.57-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tdjson-1.8.57-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

tdjson-1.8.57-cp310-cp310-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.10Windows x86-64

tdjson-1.8.57-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tdjson-1.8.57-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

tdjson-1.8.57-cp39-cp39-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.9Windows x86-64

tdjson-1.8.57-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

tdjson-1.8.57-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

File details

Details for the file tdjson-1.8.57-cp313-cp313t-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.57-cp313-cp313t-win_amd64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.13t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tdjson-1.8.57-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 327431b863965d702f54201d4d7ac22a28de525195cb0499b10c934152d1b7ba
MD5 6efac8785471acf27b82a74bc83ac378
BLAKE2b-256 1c6b920f4e85698ae86ee23695b91957d1f6ab2dd93f3eba2e4261e2f6606828

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp313-cp313t-win_amd64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0bdd1f56af4b7e0e0109d519b394b295dd223bbb2af19ab4b21d12f6ea20e313
MD5 c995d288dc795a1f9873d4673bb58982
BLAKE2b-256 eb4913798c412dd16114a4a524f4a085adcd8218260ebc6cf089e4d890c11925

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 cc469ea778612d7c298554b2fd984f1a15578ede28034f0f904acf2e8081bcce
MD5 eb7921c053821cd2b03eaf879752c375
BLAKE2b-256 a8810b4f8406de01380436560f3b86d441b840669aa368a2d67e1df9a89a82a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.57-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tdjson-1.8.57-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 206fbdbe820c6cd929d8c681453735ecf31a4babcf839f75d142518bab423c26
MD5 c5bda803357ca39ff5c408c5a294c224
BLAKE2b-256 06b6c165d6dbe9ce6a561b5ae10ce401926390ef08a9bb5e10d8b5e6aa115f6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp312-abi3-win_amd64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c11e1b2bb9ba0387480ed5bf7e0f21f1e141141060a3d42e5e486db162c43252
MD5 0a7d71112a8deaa0d33a7f02528f0a9d
BLAKE2b-256 1f5272f754e9671a2b0faac81288ce329ca8139847ef28e90cefb2774e0c0718

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5fbff13f827ab7f0587d08aedd0656cc73dc7e1b65eb006bd9c513a195956c2c
MD5 5062806572fc140355229853b3aa82f3
BLAKE2b-256 b71dc5b771a1adbad336fbefaddfcb492766a87c417c362a96e15d2e10f65b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.57-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tdjson-1.8.57-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aefd9ece26542cd5da067ffb52fd2d034eb3f959c8261dba60547f6986a8ed8e
MD5 8e4060017e1d6f1ecbf3541fefaeb293
BLAKE2b-256 e75b5b1ecae7a58a72b8404e7c7e0d76bef6c26c9750fd422d798aed47f07ac8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp311-cp311-win_amd64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a8b65cb6ce4ed561fdfa31b28401bea0ce03aaa663b89317c7821b1885770ff1
MD5 7d87309e3e1677885b350c8012a33dff
BLAKE2b-256 6b8103b08c72d3f2ce429c93c07a3362af6872691bbddbe1c879f00c831dda6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 baa7774750ac3f19fb33e89ed5bdb5b4972806879f7a1cc93f6d5f38f207a953
MD5 218e33c25764be3e3d43e1baddace400
BLAKE2b-256 49dc3851c6f4ca66699aab213bb8af933ebbd3d191290cc691389763d151dc8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.57-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tdjson-1.8.57-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3d2ee8573e9fb6b0920839914740b39b389383246790189ca695a93de34980bb
MD5 c9165b768e2f7d2f7578caed90e6125a
BLAKE2b-256 a8496bf6861694fce838206b106ea42a0fce3a0cead016369e3f561bd174aa91

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp310-cp310-win_amd64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 836d77d303a5babedf53c5111531099655b0e2c5ec0114171c32de2461f33d46
MD5 a57a902b34c11fc545ee6192833f1dbd
BLAKE2b-256 0e2d7d7e5918047086e09dd1d18f4181105b1b81cb63341ac78f67a31d18b0d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 255719e03ce5b77e7f082477ef4392b78bd1ca4aa3f33c5df005acf20c24ade6
MD5 d5726f4911ad63cd622b2aa072eae46e
BLAKE2b-256 0baf182fbd6507b8b418c647b7d7ceadc56e264f36f893be15bb400dcab9a6d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.57-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tdjson-1.8.57-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dd7566586a9236edbf3ffe4897a82d897edd82938e0481dfcc9fc4ef9033280c
MD5 21588bc5815a92f185f9cf050ce9e0b4
BLAKE2b-256 fed0f39d673145c74861425bca14a9c480270b6816838c9eac8c86978b67f59c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp39-cp39-win_amd64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 646ba4279febeb3ca34c6de2fb0c97f1cd9aa4528131b9ac87d7abceb10da3e6
MD5 f8e31fdffbcf95b79d6c9509b8d43afb
BLAKE2b-256 6859133d55ac395763093d26a20a3f42c27cb9de896c0fe72249d9953b367686

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tdjson-1.8.57-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.57-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d54cf9b582262350d02c028a33b2fb214e4931eba0abace6d2509731452f21fc
MD5 18c93e7057c1b276ba6286ee92cd5369
BLAKE2b-256 77d81cc9271c084c6cf02b35549d0feb677c248a33fcbbcbfd0261e30b4ddd76

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.57-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: build_wheels.yml on AYMENJD/tdjson

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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