Skip to main content

render-lab-tasks-cloudflare

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

From the repository, install this pack and its supporting core together:

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

Import task definitions from render_lab_tasks_cloudflare.tasks. Combine its app with other pack apps using Workflows.from_workflows(...) and call tasks with await ctx.run(task, input). Package roots do not register tasks. JSON fields retain the TS spelling; Python functions use snake_case.

Tasks

Registered name Python export (also exposes _impl)
cloudflare.deleteDnsRecord delete_dns_record
cloudflare.deployWorker deploy_worker
cloudflare.dnsUpsert dns_upsert
cloudflare.listDnsRecords list_dns_records
cloudflare.purgeCache purge_cache
cloudflare.workersKvGet workers_kv_get
cloudflare.workersKvPut workers_kv_put

Dependencies and retries

Raw implementations accept context first and keyword-only deps. The .client module exports typed Port, Deps, and Client classes (also vendor-named aliases). Inject a fake port, or pass a caller-owned httpx.AsyncClient to Client for custom transport/configuration. Default dependencies close their HTTP clients after the operation. Credentials resolve at first use. HTTP and SDK retries are disabled; retry.py owns durable retry settings. DTO types live in .types.

Environment

Variable Contract
CLOUDFLARE_API_TOKEN Required on API calls.
CLOUDFLARE_ZONE_ID Default zone when zoneId is omitted.
CLOUDFLARE_ACCOUNT_ID Default account when accountId is omitted.
CLOUDFLARE_KV_NAMESPACE_ID Default KV namespace when namespaceId is omitted.

Verification and limitations

DNS upsert is a read-then-write operation and is not atomic. Worker upload sends a multipart ES module (worker.js) plus JSON metadata, correcting the pinned TS request (ADR-0007). Supply a single JavaScript ES module in script. Bindings, assets, routes, and compatibility dates are outside this input surface; Cloudflare applies its default compatibility date. Live Worker validation remains pending. KV GET returns null on 404 and preserves empty text values.

Shared JSON fixtures compare the Python task output with the actual pinned TS implementation. REST fixtures also compare HTTP requests; HubSpot and Linear fixtures compare source SDK arguments with HTTP payloads/GraphQL variables. No live vendor calls were made for this batch. Registered-task parity does not claim live readiness or all supporting TS exports. See the root verification tracker and docs/porting-batches.md. Licensed under MIT.

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_cloudflare-0.1.0.tar.gz (7.2 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_cloudflare-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for render_lab_tasks_cloudflare-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be493aa1d2fab1e8c8071f64c453e82f742efe9ed6642baf8dee9f88781b08ea
MD5 1ab8b6454a203f33638915c23f150ea3
BLAKE2b-256 e544b55ee459cb4696a94404de00f4dcd1cf4eccecb6b8f59dddadab31fd0dc4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for render_lab_tasks_cloudflare-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94a761db1ad70f8e1dd0e76835bc7ad37ed07a7330b8d5b760171709424ba7f1
MD5 f586a50207e2925af926f44ce5ab03a6
BLAKE2b-256 c44a1ac3f2fd2adbce783b21be906312f348af0692d4de4e672bb664f073b96d

See more details on using hashes here.

Provenance

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