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

Uploaded CPython 3.13tWindows x86-64

tdjson-1.8.58.post1-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.post1-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.post1-cp312-abi3-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.12+Windows x86-64

tdjson-1.8.58.post1-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.post1-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.post1-cp311-cp311-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.11Windows x86-64

tdjson-1.8.58.post1-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.post1-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.post1-cp310-cp310-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.10Windows x86-64

tdjson-1.8.58.post1-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.post1-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.post1-cp39-cp39-win_amd64.whl (11.8 MB view details)

Uploaded CPython 3.9Windows x86-64

tdjson-1.8.58.post1-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.post1-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.post1-cp313-cp313t-win_amd64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 76d2cc9d81793e7f9d85eae8597bd54e536778ccc16d253145dd501939bf011a
MD5 468c91fade18c4729c377ab7547122ff
BLAKE2b-256 cfd2f8bbdebb607c366c513fa7a083e22628141072a713d37fa1b1a2f88a5767

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e89e3126c638b0780313b23946a1145a108269aeedc6857ecf8eb8168e0a7334
MD5 1b08859d2d0e470bf70ce5bf899429ba
BLAKE2b-256 6381e16e7abf882a97cf27ff30035e25af48a48b46795a7ce56c2e931e66c2a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3df84c8f9c7900f702e35d4c0872fc0c3c9ac2c128e831a4f9c38dd7d5a3d2ef
MD5 8bc7adac9b857f4c3b317c585e633516
BLAKE2b-256 769a1880b4102e3572beed1bf0989feda689bb19ab2278219d24d03709b519d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 086585b7e1e9fa6e032cd74ad5e93291209350bc11e1203b141e02d4c3fb1267
MD5 aacf1a96d42eeb2753f37b0bcd3cc738
BLAKE2b-256 ba9504d759c2fdfc53bf1f8b533cb34183fb7ea05f9b9bc9b60eb0c6fc203186

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 95f3e2eca4be436ed580d7d51f7db71a632f6a1eca3d03dcd3c01c95383a21e2
MD5 42a9056fb05de436c08df91bb1845d2d
BLAKE2b-256 e559a5993ce3047de909591595a4367685a0152ee9b882cf3af3746b9e2ee436

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 aaa8a47c83eeb2c327ca119ecf6ca86e438dba4103d7610af1033171d16bc940
MD5 1cc28edb8ad2f05bb3920beb383ed551
BLAKE2b-256 294275442c09e83c6400ec276429b1e7a1d1f9ac5cf4a9d4c458f1df3ea3097e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f92a0ab638b5573e54701da0e04c6aaa77dedc7e77d827edfef666cd104f561
MD5 a3d9dcd5c91a74b964849e115c776370
BLAKE2b-256 ecb491b6e11f2cc0cfc70960739a65c8aeb9856e4564545ff83dc19edbadd752

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6d3a0b8da5990d219a80f3c90754743b577b3c5b50899492f324cc4b8337b960
MD5 f9a0f8b6a89fa5093f8b60717d2172f0
BLAKE2b-256 e0daa4625299727b47f08047dcf656ea7cfe5a01e4188dc7ae583d547728a3a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 ce8f0a3d8b6888565126a6b22962e475904bb8e227998a71e6c7f663480cbb6a
MD5 8d457c9e73117727bdf9894a33bb6702
BLAKE2b-256 b77fedd54853bf2c074b4f943bdca949f648b3af8d3adeb796c2488ac8525b31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d70ab5b7f4909674052e58d895afb90803e87165b574c6ef4e15c0d357814193
MD5 b287cfce52ed97ec04766d1b4ff0126b
BLAKE2b-256 c31f6fcf26c3ba46f786840281fcf32203ba6173f47c044a8ead3d07ff2440e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 94a515d29110444dcbfd0d4ae68fed183636bc7ccd36faccf12b1f1ed8f71b07
MD5 be0c69dcf01660accb8e374416d696b3
BLAKE2b-256 9bee616494782391900e9b6da82c7ead2cc99f75e88a97eb418c8e17f03357bb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 bc154177e6173cca27ee43ba17ea4c02605711053a9eade043123101eb55ec11
MD5 74f2c377140b57f3aabbf7425c98a6a3
BLAKE2b-256 4918cde68355c3c638b704cc0f3601ef85c456ad77f22abad8d6f32b81f8673d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1ebd75d34091bc6aa7bb2ccceead55599c7c83768d8cb9803aeecd4484d93007
MD5 45d048d9f49d0d8166b4078169a43c8c
BLAKE2b-256 5f4cdea68613fdd2b0ac12e09753848c93167da84a18c559fe23e82b87618340

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c668a1d5d9d348ff10606245d05d8d00790ad3a07251f499d41a880c611b4f9e
MD5 355e571cfb17ca16387377da8cf514a6
BLAKE2b-256 5fc996974ad4c483adf6ddf1cadadb4c418f8628da0d2d31975009325588a162

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.58.post1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 dea73e6a7b9b248ebfb3c21ee6b05df2de5120e62dea52d15a1f5286be1462b1
MD5 30addd54b29c3f534e0ad057335041ac
BLAKE2b-256 dc8a2830e5bc6b9ef8edd5a822bcd6d969a4877ae283a29c45d430fd03500a03

See more details on using hashes here.

Provenance

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