Skip to main content

render-lab-tasks-render-kv

Nine Render Key Value tasks: kv.get, kv.set, kv.incr, kv.expire, kv.delete, kv.lock, kv.unlock, kv.listPush, and kv.listRange. Import render_lab_tasks_render_kv.tasks for explicit registration. Each task also exports an injectable async *_impl(ctx, input, *, deps=...).

REDIS_URL is read at first use. A linked Render Key Value instance provides its private connection URL. There are no other credential requirements.

from render_lab_tasks_render_kv.tasks import app, get_impl
# await get_impl(ctx, {"key": "example"})

Connections are closed after each raw invocation. Redis transport retries are explicitly disabled. The durable policy allows three retries at 1s, 2s, 4s. Increment and list append can execute twice if a connection fails after the write. Lock acquisition uses SET NX EX; unlock uses one atomic compare-and-delete Lua command. List append followed by TTL refresh is two Redis commands, matching TypeScript; partial failure may leave a list without the requested TTL.

Hermetic tests verify command arguments and failure behavior. Live connection, failover, contention, and expiry checks remain in the repository testing backlog.

Installation

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

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_render_kv-0.1.0.tar.gz (6.1 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_render_kv-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for render_lab_tasks_render_kv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fca56cb80a2e0e28845733cad8955e19cf7fe00dfc3f4ef6a248ee36ddf0a0ba
MD5 c476611a778699a48f1264a0ebcbacd0
BLAKE2b-256 95200ff9ef72178c7467cc81db7f3ba892111e25f8f1e19b36022a48357b7807

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for render_lab_tasks_render_kv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3af500015ae7cb241c4ebe78ab70f62594ee15fc90e2b82b3df5a7ffd419d941
MD5 d5c817fdb00e3ab0888fd430d5e47d0f
BLAKE2b-256 7515c66778e181b72207992861e9d99666f9ca384270adb86496d9e6f52359cf

See more details on using hashes here.

Provenance

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