Metadata-Version: 2.4
Name: wriftai
Version: 0.21.0
Summary: Python client for WriftAI
Project-URL: Homepage, https://wrift.ai
Project-URL: Documentation, https://wrift.ai/docs/clients/python
Project-URL: Repository, https://github.com/wriftai/wriftai-python
Project-URL: Issues, https://github.com/wriftai/wriftai-python/issues
Project-URL: Changelog, https://github.com/wriftai/wriftai-python/blob/main/CHANGELOG.md
Author-email: WriftAI <wriftai@sych.io>
License-File: LICENSE
Keywords: AI,client,machine learning,models,predictions,wriftai
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: httpx>=0.28.1
Requires-Dist: typing-extensions>=4.5.0; python_full_version < '3.11'
Description-Content-Type: text/markdown

<div align="center">
    <a href="https://wrift.ai">
      <picture>
         <img alt="WriftAI Banner" src="./banner.png">
      </picture>
   </a>
   <h1 align="center">WriftAI Python Client</h1>
   <a href="https://wrift.ai/docs/clients/python">Docs</a>
    ·
   <a href="https://github.com/wriftai/wriftai-python/issues">Issues</a>
   <br />
   <br />

[![CI](https://github.com/wriftai/wriftai-python/actions/workflows/ci.yml/badge.svg)](https://github.com/wriftai/wriftai-python/actions/workflows/ci.yml)
![PyPI - Version](https://img.shields.io/pypi/v/wriftai)
[![License](https://img.shields.io/github/license/wriftai/wriftai-python)](https://img.shields.io/github/license/wriftai/wriftai-python)

</div>

The WriftAI Python Client provides convenient access to WriftAI's services. The library includes type definitions for all request params and response fields,
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).

## Documentation
https://wrift.ai/docs/clients/python

## Requirements
- Python 3.10+

## Installation
```bash
pip install wriftai
```

## Basic Usage
```python
import os

from wriftai import Client

# Instantiate the WriftAI client
wriftai = Client(
    # This is the default and can be omitted
    access_token=os.environ.get("WRIFTAI_ACCESS_TOKEN"),
)

# Create a prediction against deepseek-ai/deepseek-r1 and wait for it to complete
prediction = wriftai.predictions.create(
    model="deepseek-ai/deepseek-r1",
    params={
        "input": {
            "prompt": "Summarize quantum computing.",
        }
    },
    wait=True,
)

print(prediction.output)
# Quantum computing uses quantum bits to solve problems...
```

## Contributing
Contributions are very welcome. To learn more, see the [Contributor Guide](./CONTRIBUTING.md).

## License
Copyright (c) Sych Inc. All rights reserved.

Distributed under the terms of the [Apache 2.0 license](./LICENSE).
