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.33.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.33.0
File Size Uploaded Provenance Actions
wriftai-0.33.0.tar.gz 270.2 kB Without provenance Details for wriftai-0.33.0.tar.gz

Built distribution (wheel)

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

Total release size: 305.2 kB

Release files / wriftai-0.33.0.tar.gz

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

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

Download URL wriftai-0.33.0-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e22d96e251a4aad41419aeb1e3c22aa6dc6ad9e070ceb13be6f9d97aa1d1ce16
BLAKE2b-256 checksum
How to use checksums
c56ab607062c36dd5ecd3402ab3703a2e3f61a55858d57f480316d49f4ff6681
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.14

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