Skip to main content

XDK Python SDK

A Python SDK for the X API.

Installation

uv add xdk

Or with pip:

pip install xdk

Usage

from xdk import Client

# Initialize the client
client = Client(
    api_key="your_api_key",
    api_secret="your_api_secret",
    access_token="your_access_token",
    access_token_secret="your_access_token_secret"
)

# Use the client to interact with the X API
# For example, to get posts:
posts = client.posts.get(ids=["1234567890"])

# To search for posts:
search_results = client.posts.recent_search(query="python")

# To post a post:
post = client.posts.create(post_data={"text": "Hello, world!"})

Features

  • Full support for the X API v2
  • Simple and intuitive interface
  • Comprehensive documentation
  • Type hints for better IDE support

Documentation

For more information, see the documentation.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xdk-0.10.3.tar.gz (458.4 kB view details)

Uploaded Source

Built Distribution

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

xdk-0.10.3-py3-none-any.whl (211.7 kB view details)

Uploaded Python 3

File details

Details for the file xdk-0.10.3.tar.gz.

File metadata

  • Download URL: xdk-0.10.3.tar.gz
  • Upload date:
  • Size: 458.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for xdk-0.10.3.tar.gz
Algorithm Hash digest
SHA256 6d0a897447cc740e4d05af0fcd738d92fbb1b693f6d72507afdb3cceeafee5bc
MD5 10d6f4eafe571aa30b3c0cf9ab7418c4
BLAKE2b-256 cb8a34a37e6328189b53f42ae56aec3777c388317879d04244a0f7570dd5ff36

See more details on using hashes here.

Provenance

The following attestation bundles were made for xdk-0.10.3.tar.gz:

Publisher: publish.yml on xdevplatform/xdk-python

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

File details

Details for the file xdk-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: xdk-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 211.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for xdk-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae96ef8e2c19ed4ce54874e79ce0faca1af13acbd4f8d9cc99c5ce3bfb0bd654
MD5 dfc54673b8c1aeca6349503679a8c1e6
BLAKE2b-256 87fc491b37d8f616ee5f0e64eca15c0d86f11a1d427061df068dbc7f24539cbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for xdk-0.10.3-py3-none-any.whl:

Publisher: publish.yml on xdevplatform/xdk-python

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

Release history Release notifications | RSS feed

0.10.6

2 files

0.10.5

2 files

0.10.4

2 files

This release

0.10.3 This release

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.5.0

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

Supported by

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