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.
Documentation
https://wrift.ai/docs/clients/python
Requirements
- Python 3.10+
Installation
pip install wriftai
Basic Usage
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",
input={
"prompt": "Summarize quantum computing.",
},
wait=True,
)
print(prediction.output)
# Quantum computing uses quantum bits to solve problems...
Using AsyncIO
The WriftAI Python client includes asyncio support powered by httpx. For convenience, every method also has an async_ prefixed variant.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Copyright (c) Sych Inc. All rights reserved.
Distributed under the terms of the Apache 2.0 license.
Metadata
Release files for wriftai 0.34.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wriftai-0.34.0.tar.gz | 286.4 kB | Without provenance | Details for wriftai-0.34.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wriftai-0.34.0-py3-none-any.whl | Python 3 | none | any | Details for wriftai-0.34.0-py3-none-any.whl |
Total release size: 325.0 kB
Release files / wriftai-0.34.0.tar.gz
| Download URL | wriftai-0.34.0.tar.gz |
|---|---|
| Size | 286.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
662424603099b2a18c4f31a7dafdaca9eb58b5465907b0f19b407ce7df02efbc
|
|
BLAKE2b-256 checksum How to use checksums |
13131bb922bf3620ae610518f12b97393d0f76386165467d8372290921205fe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.14
|
Release files / wriftai-0.34.0-py3-none-any.whl
| Download URL | wriftai-0.34.0-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48b6f8f0b47bb1bd6bb7f3fc7a0a80fc36eb196ac0f1d90e108862dc8354fcdc
|
|
BLAKE2b-256 checksum How to use checksums |
c05efccff9b4b3b68d155a715807bf2ea834c41389f68db200de8ae4a5f6bfc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.14
|
Security for wriftai 0.34.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.