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.1.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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: delula_sdk-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 79cb65d5d5c1d4b3989c217b9c48a4e161c3f6633c4bf2cf815350d561e60474
MD5 48773200f4951c243a8a1dd034d8d5d8
BLAKE2b-256 82742d9fe407c021b01ecf5d284432df04f694aa27fbc431897551c8f628e845

See more details on using hashes here.

File details

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

File metadata

  • Download URL: delula_sdk-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1074855ecb6ee9e9563d6c94c35b84aab81d6e74978eff017491a171fedb04
MD5 d94ebff8bf98f63129e38a7283612471
BLAKE2b-256 e7b797447cf5bd562fb2dd32c4f58be7860b3ff318cc6e357a1df6939bc6a766

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