Python SDK for the X API
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xdk-0.5.0.tar.gz.
File metadata
- Download URL: xdk-0.5.0.tar.gz
- Upload date:
- Size: 335.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50ae91c6c4e608237f164223e223f806b79c7c8b60c5ec834e5a0015d62170e6
|
|
| MD5 |
87d702739e7d19631ff9d5384561820e
|
|
| BLAKE2b-256 |
d62f825b349e3ad66153dafeb83148fec436a9fbb6c7f0b5c0513ac3205010f4
|
Provenance
The following attestation bundles were made for xdk-0.5.0.tar.gz:
Publisher:
publish.yml on xdevplatform/xdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xdk-0.5.0.tar.gz -
Subject digest:
50ae91c6c4e608237f164223e223f806b79c7c8b60c5ec834e5a0015d62170e6 - Sigstore transparency entry: 752179448
- Sigstore integration time:
-
Permalink:
xdevplatform/xdk-python@27284115723b6d6869b93f8c69ecaa418ad4a5e9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/xdevplatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@27284115723b6d6869b93f8c69ecaa418ad4a5e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xdk-0.5.0-py3-none-any.whl.
File metadata
- Download URL: xdk-0.5.0-py3-none-any.whl
- Upload date:
- Size: 141.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c7cbf7735feef9a8be577d9c668310542f12188c63143a71990bcca381e740e
|
|
| MD5 |
0cbeb4900c0cef75dd3c9aa94ebbaea4
|
|
| BLAKE2b-256 |
a5b685a1a4ca796d7d99d62090c1dd876b2687c443f223eed87b25c730d88fc6
|
Provenance
The following attestation bundles were made for xdk-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on xdevplatform/xdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xdk-0.5.0-py3-none-any.whl -
Subject digest:
8c7cbf7735feef9a8be577d9c668310542f12188c63143a71990bcca381e740e - Sigstore transparency entry: 752179452
- Sigstore integration time:
-
Permalink:
xdevplatform/xdk-python@27284115723b6d6869b93f8c69ecaa418ad4a5e9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/xdevplatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@27284115723b6d6869b93f8c69ecaa418ad4a5e9 -
Trigger Event:
push
-
Statement type: