cianfhoghlaim/cianchosaint / .agents/skills/dlt
dlt
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 20.6 KB |
| references/crawl4ai-dlt-summary.md | markdown | 1.8 KB |
| references/dagster-dlt-assets.md | markdown | 3.9 KB |
| references/deploy-gcp-cloud-function-webhook.md | markdown | 2.1 KB |
| references/deploy-gcp-cloud-function.md | markdown | 2.0 KB |
| references/deploy-gcp-cloud-run.md | markdown | 2.4 KB |
| references/deploy-modal.md | markdown | 2.6 KB |
| references/destinations-cognee-memgraph.md | markdown | 3.3 KB |
| references/destinations-graphiti.md | markdown | 3.0 KB |
| references/destinations-lancedb.md | markdown | 3.4 KB |
| references/dlt-baml-orpc-mcp-typesafe-pipeline-analysis.md | markdown | 20.0 KB |
| references/dlt-transformations.md | markdown | 3.3 KB |
| references/dlthub-codebase-analysis.md | markdown | 32.4 KB |
| references/dlthub.md | markdown | 12.5 KB |
| references/openapi-generator.md | markdown | 2.3 KB |
| references/performance-optimisation.md | markdown | 3.3 KB |
| references/sqlmesh-init.md | markdown | 1.7 KB |
| references/type-safe-pipeline.md | markdown | 4.4 KB |
references/deploy-gcp-cloud-function-webhook.md
View on GitHub# Deploy: GCP Cloud Function as Webhook
Deploy a dlt pipeline as a **webhook-triggered** GCP Cloud Function.
Useful for event-driven ingestion (Slack events, GitHub webhooks,
Stripe webhooks, etc.).
## Pattern
```python
# main.py (Cloud Function entry point)
import dlt
import json
from typing import Any
@dlt.resource(name="webhook_events")
def webhook_events(payload: dict):
"""Yield one row per webhook event."""
yield {
"event_type": payload.get("type"),
"event_id": payload.get("id"),
"timestamp": payload.get("created_at"),
"data": json.dumps(payload),
}
def your_webhook(request):
"""Cloud Function entry point. Receives the webhook POST."""
payload = request.get_json()
pipeline = dlt.pipeline(
pipeline_name="webhook_ingest",
destination="bigquery",
dataset_name="webhooks",
)
load_info = pipeline.run(webhook_events(payload))
return f"Loaded {load_info.loads_id}", 200
```
## `requirements.txt`
```
dlt[bigquery]>=1.0.0
google-cloud-functions>=1.0.0
```
## Deploy
```bash
gcloud functions deploy your-webhook \
--runtime python310 \
--trigger-http \
--entry-point your_webhook \
--set-env-vars DLT_DISABLE_PLUGINS=true \
--service-account your-sa@project.iam.gserviceaccount.com \
--memory 512MB \
--timeout 60s
```
## Cianfhoghlaim usage
The Cianfhoghlaim stack uses Cloudflare Workers (not GCP Cloud Functions) for
webhook ingestion. The Cloudflare Worker pattern is similar but
uses the Workers Python (`pyodide`) or TypeScript runtime. See the
`tuatha` and `croilar` quadrants for the Workers-based webhook
ingestion.
For GCP, this pattern is a valid alternative if the Cianfhoghlaim stack
ever migrates from Cloudflare to GCP.
## Reference
- The `Deploy GCP Cloud Function as a webhook _ dlt Docs.md` (5.5K)
was in `docs/dlt/` (deleted with the `sync-skills-from-docs`
change). The same content is in the dltHub docs at
<https://dlthub.com/docs/dlt-ecosystem/destinations/bigquery>
- The dltHub `dlt-bigquery` destination docs
- The GCP Cloud Functions Python docs: <https://cloud.google.com/functions/docs/concepts/python-runtime>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |