Repository navigation
Tags
Tags
deapi-sdk 0.6.1 - Published on PyPI: `pip install deapi-sdk` (`pip install "deapi-sdk[ws]"` for real-time status). Releases are uploaded by GitHub Actions when a GitHub Release is published. - README links are absolute, so they also work on the PyPI project page. - The product name is spelled deAPI throughout the docs and docstrings.
deapi-sdk 0.6.0 - `client.websocket_config()` (sync and async) returns the account's realtime connection settings (`GET /websocket`) as the new `WebSocketConfig` / `WebSocketConnection` models. Works with any API key. - `client.realtime()` no longer needs any settings. `client_id`, `ws_url` and `app_key` are each taken from the argument, then `DEAPI_CLIENT_ID` / `DEAPI_WS_URL` / `DEAPI_WS_APP_KEY`, then `GET /websocket`. The discovery call is made once at connect time and only when something is still missing; with all three set, no extra request is made. - Setting only `DEAPI_CLIENT_ID` now triggers one `GET /websocket` call at connect time instead of falling back to built-in WebSocket defaults. The hard-coded WebSocket URL and app key were removed. - `Realtime.client_id` / `AsyncRealtime.client_id` is now `str | None`: `None` until connect when it was neither passed nor set in the environment. - An unusable discovery response raises `RealtimeError`; HTTP errors from it raise the usual API exceptions.
deapi-sdk 0.5.0 Breaking: removes video.replace / replace_price and video.remove_background / remove_background_price (no longer served by deAPI API v2), VideoReplaceParams and InferenceType.VIDEO_REMOVE_BG. Image background removal is unchanged. See "Upgrading to 0.5.0". CI: ruff, mypy and tests on Python 3.11-3.14.
deapi-sdk 0.4.0 Breaking: API v1 support removed. api_version / DEAPI_API_VERSION accept only "v2". Resources and types live in deapi_sdk.resources and deapi_sdk.types. Deprecated v1-style helpers removed (transcription.from_*, prompts.enhance_* / samples) in favour of transcription.create and prompts.enhance. See "Upgrading to 0.4.0". ruff + mypy clean; 676 tests pass on Python 3.11-3.14.
deapi-sdk 0.3.0 Real-time job status over WebSocket: client.realtime(client_id=...) with rt.wait(job, on_progress=...) and rt.events(); optional "ws" extra (websockets 17.x). Requires Python 3.11+. JobStatus and InferenceType are StrEnum. Docs and examples use the deapi_sdk import name. ruff + mypy clean; 718 tests pass on Python 3.11-3.14.
deapi-sdk 0.2.0 api v2 catch-up: api_key repr redaction, catalogue TTL + slug-miss refresh, full model pagination, str file inputs rejected, injectable shared http client, capped Retry-After. Import package deapi_sdk / distribution deapi-sdk. ruff + mypy clean; 523 tests pass.