Skip to main content

render-lab-tasks-replicate

Python port of the twelve Replicate prediction, training, file, and model tasks. Install with pip install render-lab-tasks-replicate render==1.0.1 once released. Import wrapped tasks and raw injectable implementations from render_lab_tasks_replicate.tasks. The package root is registration-free. Task names and JSON fields match TypeScript.

Environment

REPLICATE_API_TOKEN is read lazily on the first Replicate request. Source URL requests use only the headers supplied in their media source; vendor credentials are never added.

Behavior and verification

Await operations check status once and let the durable task retry policy poll again. The HTTP adapter makes one attempt per call. Cancellation and deletion converge on 404/409 responses as in TypeScript. Prediction/training outputs retain nested JSON and expose HTTPS media URLs separately. Inline media is capped at 1 MiB. File downloads stop when their configured source byte limit is exceeded (default 100 MiB). See ADR-0013 for deliberate retry and media validation differences from the TS SDK. No live Replicate verification has been performed; credentials and live checks are tracked in the repository testing backlog.

Webhook adapter

render_lab_tasks_replicate.webhooks.replicate_adapter(on_event, ...) returns a registration-free adapter for render_lab_triggers. The callback receives the verified event and returns {"task": "namespace.task", "args": [event]} or None. The signing credential REPLICATE_WEBHOOK_SIGNING_SECRET is read inside verification unless provided explicitly. Importing this module does not register tasks. Signature checks use the raw body; live delivery remains in the testing backlog.

Download files

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

Source Distribution

render_lab_tasks_replicate-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

render_lab_tasks_replicate-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for render_lab_tasks_replicate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d002a7b767d33a030539227bef021fc3095cca377004ad7d9e27f9061846471a
MD5 f631e65a65cd340b3b72f4be1b819188
BLAKE2b-256 ef57ad22dca9286c2633633582d339a4daeb7d0388cdb0c2785ea0b6599bc45e

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_replicate-0.1.0.tar.gz:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for render_lab_tasks_replicate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e4b24f30cc46856072fcfdaf3665af5949119ffb0305a73663099618888039
MD5 220b5331725747b18cb94849721a9602
BLAKE2b-256 c57eebe95a37d891e26ed94018980d4b22480fbd085bd0911f5c97c218d768d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_replicate-0.1.0-py3-none-any.whl:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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