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.58-cp313-cp313t-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.13tWindows x86-64

tdjson-1.8.58-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.4 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

tdjson-1.8.58-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.12+Windows x86-64

tdjson-1.8.58-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.4 MB view details)

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

tdjson-1.8.58-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.2 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11Windows x86-64

tdjson-1.8.58-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tdjson-1.8.58-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10Windows x86-64

tdjson-1.8.58-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tdjson-1.8.58-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9Windows x86-64

tdjson-1.8.58-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

tdjson-1.8.58-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

File details

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

File metadata

  • Download URL: tdjson-1.8.58-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.58-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 399acbc1e1897407c2c088ba760ab9bead41c464461bcef0e368bb20da0a2ad4
MD5 d52549f76622c24b9a95846a53c19cef
BLAKE2b-256 5b98ff6970fbed6f940db1f48ff8cdcec01ca73f69be5fa88893b889d14d26ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6886c63a8cbef9670ed8232eb073cb2b39e2174ee21299971faa6aed08d2d040
MD5 aeee5e7d2e661aa8cf34512e13bd0c17
BLAKE2b-256 d9c7a1928d3305fd145ca7eb4185273666e34744700af08ac0d6ae1ae8c7a565

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 c040fb960ef84fd6ac89c4dd7333de53d8c379e4838aee68371c03f46e107bd7
MD5 6d51076368a6b2039e46fef35a41e8b8
BLAKE2b-256 ee9eb3a403403cb6dca8e1358ceeee558486fa2e7bdd2d90744c84122c9b8113

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.58-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.58-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8102e6b141a4821be6fa71f5172d004ef50472044f419734ba4cdbf56e162e4f
MD5 28de36793f6034e9479c813de560b06f
BLAKE2b-256 e4c35fadb7d637d391dbeb9a21e85d05636fdf87faaeb4894870e9ef4e68ac84

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 06291dcba25fd003a0842cb5e5aee96ffa69b487441fb668684161ca37780313
MD5 761a082fb950470b657981440416674f
BLAKE2b-256 f35e0300d775de15dcd40182e452e5ce1945f7e87fb22704f47a8396ee5a6e6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2dbd7839863cb0456a7914c1b3160ac69f0eaafb44da4cbec8d156cf60bd98d6
MD5 04575dd188eb1856d3ddfaf8adc6a5d7
BLAKE2b-256 9eb325f2e3c01a3308c459d8589142f06d7f5c6bc6a876728038f32cbe6f8cb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.58-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.58-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fb3657a009fba2e4486b3d035d5fb4bc4d3ede012949d788ae9fd1fab7311d9c
MD5 137aab58355ea0c699aee1e533d5a6be
BLAKE2b-256 e354401d926b31321016a6c49ec41feaf0c6a1ab78f70db43d23a3577b55d19a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3ff2a7c27749782bbd7f19e15cbd2e7907ec831759a53af08b29705c8075ec36
MD5 73c657ed2de55350002ebf11a3e9e85d
BLAKE2b-256 04547cabc7cba846b7c4e4be189710fe0f131754b00607cd97d4cae266817221

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f79618d8e8c77686a0ff1baac931d7d5cf6b4d8282a3aec41d226583801598a8
MD5 093f644b90c74b8550c3109d4dc5173f
BLAKE2b-256 16b3601ca4afab78f17aa387528251b49bb2c885fe8ac3b1d98bd1554e3fe047

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.58-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.58-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 77aebec1bbfd972d9388337df824da55c6b463c37970876d6a12847072c4eb29
MD5 4bd2db7879928f738ebf79dd5b52d674
BLAKE2b-256 434e16283ad20af030816962432688983d39e456e7c525d3892c3ea552064dff

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7c4b679e6563e75473d59e248cf85f510fac0843206be8eee26caca380d0f1b3
MD5 1e1746a94f50af50680194b98a6321ef
BLAKE2b-256 7a4c47edf07a77595c1ad6406dad67e4d5c1c1f2caf1726061fbc15c363aa76b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 eab218b1ae5738f923d3a2420d0a704060963247b285a8f9fe094c24cb42354d
MD5 80b6fa31b70caf9d75560a21f6aa1751
BLAKE2b-256 cae4aafbfdfa3e0d933492e805d2ec27944448e7862126c67eaea9ffb7d489bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: tdjson-1.8.58-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.58-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 51387653fc7c0c0079d23c9d5d3a1b464ffc75097de6f96f301eb54dce06d11c
MD5 4ce13794d597c77ac52bc9d831d795bd
BLAKE2b-256 b209687d8ec75fea22f7732010289a86f27f77237e1ae29329456a62f4a35d30

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 544daa1a7b43af4ccd6dbba5f511af63e013424567749d6b3596a6d3181c071b
MD5 f5d3cb4a8833cd0dc26ba9aa65e4a142
BLAKE2b-256 8b4c2762f869d0be5e7f7fa14f41af7b1189685f17419b04f5833d3c4f2dcadc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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.58-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 cb8d45ca28cb2e60f9765e88140c9f33656576b1fab69ef72c9b1b583ad86c07
MD5 324c7e4fe359e6a9d68cbb65fbb6016a
BLAKE2b-256 8f8b31cfb0ea125c36cfb481e4dd818f4a69917cb377adb87a88b80af53aaf6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tdjson-1.8.58-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