Skip to main content

render-lab-tasks-strapi

Python port of all 8 registered tasks in the pinned TypeScript pack at 45f9c2d44bd28e01ae9813e0d2ff56ee6c533816. Python 3.12+.

Install this distribution and its dependencies:

pip install render-lab-tasks-strapi==0.1.0

Import definitions from render_lab_tasks_strapi.tasks; combine app objects with Workflows.from_workflows(...). JSON fields retain TS spelling; functions use snake_case. Package root imports are inert.

Tasks

Registered name Python export (also exposes _impl)
strapi.create create
strapi.delete delete
strapi.deleteMedia delete_media
strapi.find find
strapi.findMedia find_media
strapi.findOne find_one
strapi.update update
strapi.upload upload

Dependencies and retries

Raw implementations accept context first and keyword-only deps. The .client module exports typed Port, Deps, and Client classes. Inject a fake port, or pass a caller-owned httpx.AsyncClient to Client. Default dependencies close their client after one operation. Credentials resolve at first use. Transport retries are disabled; retry.py owns durable policies. DTO types are in .types. Requires core >=0.1.1.

Environment

Variable Contract
STRAPI_URL Required instance URL.
STRAPI_API_TOKEN Required API token.

Verification and limitations

Targets Strapi v5 documentId routes. Nested query objects use bracket notation; unknown document fields are retained. Create disables retries; upload retains three retries and may duplicate media after an ambiguous response. Upload accepts at most 2 MiB decoded base64 and optional ref metadata. Collection/read results at or above 4 MiB are rejected. No automatic pagination or Strapi v4 shape conversion.

Shared fixtures execute the actual pinned TS implementations and compare Python outputs and requests. Sanity's SDK calls are translated into separately asserted REST requests. These are hermetic checks, not real account or hosted verification. See the testing backlog and the root verification tracker. Licensed under MIT.

Webhook adapter

render_lab_tasks_strapi.webhooks.strapi_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 STRAPI_WEBHOOK_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_strapi-0.1.0.tar.gz (6.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_strapi-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: render_lab_tasks_strapi-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for render_lab_tasks_strapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9237f65406ff306cbe71426cde67b906c3efbcb716707ecd710e1e92fbc53f86
MD5 fe5ea6b3ac2ab02a29719eab2d5a9728
BLAKE2b-256 5263a63d5af779cad769dcc4443b06d7863a96e28cca4fd1e26675e73b0effb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_strapi-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_strapi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for render_lab_tasks_strapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 757ce018f7533c393abb45b6d21083e4139b557cdee3af1d68f35414b7e32ae1
MD5 eff66b1494d4ac752fa79dd0f4eda798
BLAKE2b-256 1bd288e81897c20ad7e3a11a851a4e8c6a41bc5cc99fb2cbe2b86e234e6e7ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_strapi-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