Skip to main content

Delula Public API SDK (beta)

Project description

delula-sdk

Python client for the Delula Public API (beta).

Install

pip install delula-sdk

Requires Python 3.10+. No third-party dependencies (stdlib only).

Quick start

Create an API key in Delula → Account → API, then:

import uuid
from delula_sdk import DelulaClient

client = DelulaClient(api_key="dlu_...")

credits = client.get_credits()
recipes = client.list_recipes()["recipes"]
preflight = client.preflight_generation(recipes[0]["id"], form_data={})
gen = client.create_generation(
    recipes[0]["id"],
    form_data={},
    idempotency_key=str(uuid.uuid4()),
)
result = client.wait_for_generation(gen["generationId"])

Default base URL: https://delu.la/public/api. Pass base_url= for local dev.

Beta

Breaking changes may ship in 0.x without a /v1 path bump. Pin your version in production.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delula_sdk-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delula_sdk-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file delula_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: delula_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for delula_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae53a7fc4913d4a0badca6dbb7ebbb90d23c7261a1cced84690c50dbffccb42b
MD5 07d1e2abb6842e1ff00460160b323fdf
BLAKE2b-256 f737480f9f19000084eef848dcf8763253209b3c7b30aabc3802a85884a763fc

See more details on using hashes here.

File details

Details for the file delula_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: delula_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for delula_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f85f3962b0c145081953a6e3403e973fe1813ef5b6e47e1c5b9db7e44d9ba79
MD5 aaf6b7b71b5a2add3ee0ac186878fe76
BLAKE2b-256 559c1d359f574ca2b4e31c7ee48b1bca69eba7d504e7b2542dc69885477ef0fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page