Skip to main content

render-lab-tasks-posthog

Unreleased Python port: 12 registered tasks from render-lab/render-tasks. Python 3.12+, Render SDK 1.0.1. Requires core 0.1.1 or later.

From the repository root:

uv sync --all-packages --locked

Import render_lab_tasks_posthog.tasks to register tasks. The package root is inert. Compose the exported app with Workflows.from_workflows; call tasks through ctx.run. Every operation also exports *_impl(ctx, input, *, deps=None) for injection. Client(http, env) accepts a caller-owned HTTPX client, and Deps(posthog=client) injects it. Default dependencies open and close the HTTP client per invocation; credentials are read lazily at use. No HTTP retries or background vendor polling occur; retry.py owns the durable retry policies.

Task surface

Registered task Python export
posthog.awaitExport await_export
posthog.awaitQuery await_query
posthog.capture capture
posthog.captureBatch capture_batch
posthog.createAnnotation create_annotation
posthog.createExport create_export
posthog.createFeatureFlag create_feature_flag
posthog.evaluateFlags evaluate_flags
posthog.groupIdentify group_identify
posthog.identify identify
posthog.runQuery run_query
posthog.updateFeatureFlag update_feature_flag

Typed JSON inputs and results are in types.py. Task names and JSON field names match the pinned source; Python function names use snake_case.

Environment

Variable Requirement
POSTHOG_HOST Optional; https://us.posthog.com by default; choose the account region.
POSTHOG_PROJECT_API_KEY Required for ingestion and flag evaluation.
POSTHOG_PERSONAL_API_KEY Required for flag management, queries, exports, and annotations.
POSTHOG_PROJECT_ID Required for management endpoints.

Behavior and limits

Project keys are sent only in ingestion/evaluation bodies; management uses the personal bearer token. Ingestion and non-idempotent creates disable retries. Batch input is capped at 500 events and 3.5 MB; query results default to 1 MB with a 3.5 MB ceiling. Export completion reads a redirect Location without downloading file bytes or forwarding credentials to storage. A returned URL is an opaque vendor value; its lifetime and accessibility need live checks.

Verification

All registered tasks have hermetic contract fixtures executed independently against the pinned TS implementation. SDK-backed tasks also have explicit HTTP request fixtures. See tests/test_batch3_contracts.py and tests/test_batch3_edges.py. These are not live vendor results.

Vendor webhooks subpaths and other registration-free TS exports are outside this batch unless explicitly listed above. Full registered-task coverage does not imply all supporting exports are ported.

Pending scopes, test resources, replay, and hosted checks are in the live-testing backlog and verification tracker.

Installation

pip install render-lab-tasks-posthog==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_posthog-0.1.0.tar.gz (8.6 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_posthog-0.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: render_lab_tasks_posthog-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 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_posthog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cfa0bda49d5090921f7fa6cdf42572e53b2fd6c1858b2e4cd0308e21e645175e
MD5 41594a3b400ee8d2ca8792c52c522a39
BLAKE2b-256 32a0e202bea1fcfa672fbb395a8c18731891b697eddd53a8eb5210ff4d00d26f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for render_lab_tasks_posthog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62eed6abb2106e2f0550d8777f40d142c86fc0b8c27bbd90eb8ed8771903286b
MD5 739178c66ad32eb6391cef88e1178f8a
BLAKE2b-256 d93b27b927ca6702bfcdaac32c865b1f3170f865e2f22f4c2e89a03acc40580e

See more details on using hashes here.

Provenance

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