Skip to main content
WriftAI Banner

WriftAI Python Client

Docs · Issues

CI PyPI - Version License

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.35.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wriftai 0.35.0
File Size Uploaded Provenance Actions
wriftai-0.35.0.tar.gz 288.1 kB Without provenance Details for wriftai-0.35.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wriftai 0.35.0
File Interpreter ABI Platform Actions
wriftai-0.35.0-py3-none-any.whl Python 3 none any Details for wriftai-0.35.0-py3-none-any.whl

Total release size: 326.7 kB

Release files / wriftai-0.35.0.tar.gz

Download URL wriftai-0.35.0.tar.gz
Size 288.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d091bbc6618f66b6293f1188f13e10813b7ba8c4889901687593ba941e3cb4be
BLAKE2b-256 checksum
How to use checksums
d46fa4650e70213d5f0a4dbd12fb7969558fbb9acd6315d6b20048f57bb6b866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.14

Release files / wriftai-0.35.0-py3-none-any.whl

Download URL wriftai-0.35.0-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b3245c543583bdc3aad9b60bc7dcb93fb8a02e31ebd128803e905265e5964d7
BLAKE2b-256 checksum
How to use checksums
4e99608b3876f75d192a1b1d3901fadf777c123f33272f8fa48372a491296196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.14

Security for wriftai 0.35.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.

Release history Release notifications | RSS feed

This release

0.35.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page