Metadata-Version: 2.4
Name: xdk
Version: 0.4.3
Summary: Python SDK for the X API
Project-URL: Homepage, https://github.com/xdevplatform/xdk-python
Project-URL: Repository, https://github.com/xdevplatform/xdk-python
Author-email: X Developer Platform <devs@x.com>
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Requires-Dist: pydantic>=2.0.0
Requires-Dist: requests-oauthlib>=1.3.0
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: myst-parser>=2.0.0; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Requires-Dist: sphinx-markdown-builder>=0.5.5; extra == 'dev'
Requires-Dist: sphinx>=7.0.0; extra == 'dev'
Requires-Dist: watchdog>=3.0.0; extra == 'dev'
Description-Content-Type: text/markdown

<!--
AUTO-GENERATED FILE - DO NOT EDIT
This file was automatically generated by the XDK build tool.
-->
# XDK Python SDK

<!--
Auto-generated README for the X API Python SDK.

This file contains the documentation and usage examples
for the generated Python SDK package.

Generated automatically - do not edit manually.
-->

A Python SDK for the X API.

## Installation

```bash
uv add xdk
```

Or with pip:
```bash
pip install xdk
```

## Usage

```python
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](https://docs.x.com/xdks/python/overview).

## License

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