Skip to main content

auray-client

The Auray API from Python. One dependency, httpx; Python 3.10+.

from auray_client import Client

auray = Client()  # reads AURAY_API_KEY

result = auray.subscribe(
    "auray-ai/krea-2-turbo/text-to-image",
    input={"prompt": "a brass orrery on a walnut desk, morning light", "aspect_ratio": "16:9", "resolution": 1024},
    idempotency_key="my-first-render",
    on_queue_update=lambda s: print(s["status"]),
)
assets = auray.platform.jobs.assets(result["request_id"])
print(assets["assets"][0]["url"])
  • run(address, input=..., wait_seconds=..., timeout=...) — the synchronous host; a 504 run_timed_out is followed by the job it names (queue_request_id, never the trace in request_id), never resubmitted. wait_seconds is how long the host holds the connection, timeout the whole call's deadline; running out raises subscribe_timed_out carrying the job.
  • subscribe(address, input=..., idempotency_key=..., on_queue_update=...) — submit, follow, fetch the result.
  • queue.submit / status / result / cancel / stream_status — the request lifecycle, fal's shape.
  • storage.upload(product=..., content_type=..., data=...) and upload_file(path, product=...) — three calls, and a signed URL for a field.
  • platform.me / usage / jobs / models / webhooks / chat — the account's side.
  • AsyncClient — the same surface, awaited: async with AsyncClient() as auray: ...

Every refusal raises AurayError with status, code, the API's message, docs and request_id. 429 and 503 are retried with Retry-After; nothing else is.

Documentation: https://auray.ai/docs/clients/python

Publishing, and why there is no build script

Publishing to PyPI is the owner's decision and has not been taken, so nothing here builds a distribution. The package carried "build": "python -m build" from the day it landed and it never ran: build is not in requirements-dev.txt, is not installed on the machine this repository is developed on, and is not installed in CI — where pnpm turbo run typecheck lint test build runs on every push, so the script turned the whole pipeline red from that day to 2026-09-06, next to a generated-sdks job that was red for its own reason. A red pipeline that everybody has learned to ignore is worse than no pipeline, so the script is gone until the decision is made.

When it is: pip install build, add it to requirements-dev.txt, python -m build (the backend is already declared — hatchling, in pyproject.toml), and give CI the install step before the build task exists again.

Metadata

Release files for auray-client 0.1.1

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

Source distribution (sdist)

Source distribution for auray-client 0.1.1
File Size Uploaded
auray_client-0.1.1.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auray-client 0.1.1
File Interpreter ABI Platform
auray_client-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / auray_client-0.1.1.tar.gz

Download URL auray_client-0.1.1.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1ef9f30d11ce5e8aecd4490d6f3ac395d5a949077e58aad1d4f7c3d0bd74d91d
BLAKE2b-256 checksum
How to use checksums
f5dd24e7a04be53d847b7590f9bb7e15b99c8a40a3d072b0b748ce37240c7be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / auray_client-0.1.1-py3-none-any.whl

Download URL auray_client-0.1.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45bfefd80a0a4956130ff47e7a5ed53b59fc6ecfb441174e6934b9230eda4d7c
BLAKE2b-256 checksum
How to use checksums
462687792b51969ad670670694b1e65035f246e93ae784578900755e49e6e5e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

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