Skip to main content

High-performance Python binding for TDLib JSON interface. Works on Linux x86_64, includes pre-built TDLib, and outperforms python ctypes

Project description

tdjson Version TDLib version Downloads

tdjson is a high-performance Python binding for TDLib's JSON interface. Outperforms ctypes, and includes TDLib for easy setup and use. Mainly created for Pytdbot

Compatibility

tdjson is compatible with most Linux x86_64 and aarch64 (arm64) distributions that use glibc 2.17+. This includes most modern Linux distributions:

  • Debian 8+
  • Ubuntu 13.10+
  • Fedora 19+
  • RHEL 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.56.post3-cp313-cp313t-win_amd64.whl (11.7 MB view details)

Uploaded CPython 3.13tWindows x86-64

tdjson-1.8.56.post3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

tdjson-1.8.56.post3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

tdjson-1.8.56.post3-cp312-abi3-win_amd64.whl (11.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

tdjson-1.8.56.post3-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.2 MB view details)

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

tdjson-1.8.56.post3-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ ARM64

tdjson-1.8.56.post3-cp311-cp311-win_amd64.whl (11.7 MB view details)

Uploaded CPython 3.11Windows x86-64

tdjson-1.8.56.post3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

tdjson-1.8.56.post3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

tdjson-1.8.56.post3-cp310-cp310-win_amd64.whl (11.7 MB view details)

Uploaded CPython 3.10Windows x86-64

tdjson-1.8.56.post3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

tdjson-1.8.56.post3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

tdjson-1.8.56.post3-cp39-cp39-win_amd64.whl (11.7 MB view details)

Uploaded CPython 3.9Windows x86-64

tdjson-1.8.56.post3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (16.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

tdjson-1.8.56.post3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (16.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

File details

Details for the file tdjson-1.8.56.post3-cp313-cp313t-win_amd64.whl.

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 ce8cc17fad14676457e8d8fdc16d6baa30629fa0ec6ce998d77b2ea2f8070e23
MD5 352afbb6fb3c30a55e1710a1c81414ae
BLAKE2b-256 e4aa5d422554a51df50e311cd90edf31816c3f5dd5a3db93f188f5149c77e78f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 bcfce6330e1385ce2c120093c8c761fa0888b27c99487df7154279e8e1dc4b4c
MD5 03d5d77ed18693b38dda6b7a501cbe10
BLAKE2b-256 7d5f15131215042b8b039e01c725d99c4b66f2f47931eb16e5167c84987eff81

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3193d14ff4458a5311a22fced375033015ebcb9a8a2357fbe7cdb66adbb0cfe3
MD5 bc99cdf9b1110ee285dc5e539a4e01ca
BLAKE2b-256 175cebb77d4f5832adf0c5f7429c60024d4261bf1fcc1b3c2c36498e103ce9b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 48f48dd4aaa107b2b9ccadac69e25cb9e1bde8b8e697ce014e38cde2d09c49d0
MD5 6b6fcbd0558368cd1d0c6d8542c7c733
BLAKE2b-256 1c43510e45f22c3960d6b871bfada7765980e2b234b41688da064bf74e5adae6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 34c3e91a5aef5b6498a57a6eceb91d0cfca9604299a16205b1c602b3913a38c8
MD5 11ff7bc708a3a80a19b2c821b5052310
BLAKE2b-256 ab7202413865d16cc1a1dee8575c0e6caad3f197d9172b2c26b19c51fb4499b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5f0e02652cfcc031b8d3de6435a9350f3ef4fdf67feda90a3ee47f9293767908
MD5 f0fbb1b7579f60bcc8f0e8700c55cf5a
BLAKE2b-256 137ac354426b8685f297d4cd5870a3d9451574dcdedc10bb4933ca466c3b9d5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b2361624e849a11b0c88c26670ef4fce75941f5c10c99bd147f4ec638dcab7a6
MD5 e9c914c14e78e6ef293ffdb5b1bdddcd
BLAKE2b-256 4544bce7bb409d62ce4c15b859e0ea8c81e0ff9803442c4789bb0698310dfe09

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 36a1e0e38c2e68737aa802d4efd2b7b427d8ea11d635496dabe2999f262f3a9f
MD5 b087fcacd3eeb9ab7ddd3409b4f93bb9
BLAKE2b-256 6f4cc1c067295341e6253cf498ddb2ed7cd540b5b6bcca5bb78f5ee5461db051

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d14f386dea19cad01c60529c1a415185aa0d2952daf13112adaa96f5e67b04fa
MD5 0583d7edec587ccceb2689330e21a950
BLAKE2b-256 bb1be64eac2acb17cc1dcebd85b269ead9e33388b19ca46c0cd0761f30d9490e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef8fc7acb87f13821c7befd32cce19462f65228209724e153764150e959888b1
MD5 515861e34e73b80bf779673e450e8bf9
BLAKE2b-256 daab666de506fd5a672380186ae09bcda4b9fc9718725cae9d857f1d61bf30c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2187a8ef4dab787b31d613ce470ee013da0f63dbdb4ef699ae972ae53806915f
MD5 77e68831343ec417329af31dc32bf376
BLAKE2b-256 31cfdcdb36447254dd64d68ca46071a4923c6f4c54fcbc596a12711444b6c2f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 cf55c31a458129013183255940dab0da70797b3fd2a6605724e2a9e352615877
MD5 2a1cf8da9146b39d8ad21b47ed9d1ae3
BLAKE2b-256 9236b46e09dad145ae7b4365ff61645411bd55c250b6f561e5b91bfce56068c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0955baa5f311d73d44025faf353c023fa5c3b3ce37d8287377640424c5e8ffc1
MD5 92ca2f9b6c70add8c806f1441df50ff2
BLAKE2b-256 4584aa2bf22133cb84666e2ff3f06bec42adc0a92c832111c61403be97665940

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c426b2516ae557cdc64bf63d8f5d019daf807fff68a32f727f37501dad230a21
MD5 1136d7ac697c8648e57065ab212cae0f
BLAKE2b-256 cfb9a9d2d79660c4cc914ad4b351fa7528f0e0327950c318c4c1cd2ce799eb40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tdjson-1.8.56.post3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 9624c095dc2b482b883da37b0397ff5d82eed44553e33990637037774c409ea4
MD5 30d6c42ffde422ff8b9bfa096fef31c1
BLAKE2b-256 4a94127c739a1d117302d3c9b273c1646f5bda4b59ba672f637d78f2f4a7fd93

See more details on using hashes here.

Provenance

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