dlt-connector
यह क्या करती है
यह स्किल SaaS सेवाओं को Wren Engine से जोड़ने में मदद करती है: dlt इंस्टॉल करना, credentials सेट करना, pipeline को DuckDB में चलाना और semantic project बनाना। यह उन डेटा विश्लेषकों के लिए है जो व्यावसायिक टूल के डेटा को SQL से क्वेरी करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप HubSpot, Stripe या Salesforce जैसे SaaS टूल से डेटा किसी डेटाबेस में लाना चाहते हों।
- ✓जब आपके पास पहले से DuckDB फ़ाइल है और बस उस पर semantic project बनाना है।
- ✓जब आप Wren के ज़रिए अपने SaaS डेटा पर SQL क्वेरी शुरू करना चाहते हों।
Skill का लिंक
https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/dlt-connector/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा Stripe खाता Wren से जोड़िए, पिछले महीने के भुगतान DuckDB में लोड कीजिए, और एक project सेट कीजिए जिसे मैं क्वेरी कर सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल चार चरणों में काम करती है: dlt इंस्टॉल करना, स्रोत को DuckDB में लोड करना, Wren project बनाने के लिए schema जाँचना, और फिर असली SQL क्वेरी से पुष्टि करना।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
wren-dlt-connector
Reference docs (
dlt_sources) and theintrospect_dltscript are bundled. Pull references withwren skills get dlt-connector --full; fetch a script withwren skills get dlt-connector --script <name>.
Connect SaaS data to Wren Engine for SQL analysis — from zero to a verified, queryable project in one conversation.
Who this is for
Data analysts who know SQL and some Python, but may not have used dlt or Wren before. Explain concepts briefly when they first appear, but don't over-explain things a SQL-literate person would already know.
Overview
This skill walks through a four-phase workflow:
- Extract — Use dlt (data load tool) to pull data from a SaaS API into a local DuckDB file
- Model — Introspect the DuckDB schema and auto-generate a Wren semantic project (YAML models, relationships, profile)
- Build & Verify — Build the project and run actual SQL queries to confirm everything works end-to-end
- Handoff — Show the user their data and next steps
The user might enter at any phase. Ask which phase they're starting from — they may already have a .duckdb file and just need phases 2–4.
The goal is a project that actually queries successfully, not just files that look correct. Always run the verification step before declaring success.
Critical: DuckDB catalog naming
When wren engine connects to a DuckDB file, it ATTACHes it using the filename (without .duckdb extension) as the catalog alias:
ATTACH DATABASE 'stripe_data.duckdb' AS "stripe_data" (READ_ONLY)
This means every model's table_reference.catalog must equal the DuckDB filename stem. If the file is hubspot.duckdb, the catalog is hubspot. If it's my_pipeline.duckdb, the catalog is my_pipeline.
Getting this wrong causes "table not found" errors at query time. The introspect_dlt.py script handles this automatically.
Critical: Type normalization
Column types must be normalized using wren SDK's type_mapping.parse_type() function, which uses sqlglot to convert database-specific types (like DuckDB's HUGEINT, TIMESTAMP WITH TIME ZONE) into canonical SQL types that wren-core understands. Do not hardcode type mappings — always delegate to parse_type(raw_type, "duckdb").
The introspect_dlt.py script does this automatically when wren SDK is installed.
Phase 1: Extract — dlt Pipeline Setup
Step 1: Pick the SaaS source
Ask the user which SaaS service they want to connect. Read dlt_sources for a list of popular verified sources and their auth requirements. If the source isn't listed, check whether dlt has a verified source for it by searching dlthub.com/docs/dlt-ecosystem/verified-sources.
Step 2: Install dlt
pip install "dlt[duckdb]" --break-system-packages
Step 3: Write the pipeline script
Create a Python script that:
- Imports the dlt source function for the chosen SaaS
- Configures the pipeline with
destination='duckdb'and a local file path - Runs the pipeline with
pipeline.run(source)
Here's the general pattern — adapt it per source (check dlt_sources for source-specific templates):
import dlt
pipeline = dlt.pipeline(
pipeline_name="<source>_pipeline",
destination="duckdb",
dataset_name="<source>_data",
)
# Source-specific: check the dlt_sources reference for auth patterns
source = <source_function>(api_key=dlt.secrets.value)
info = pipeline.run(source)
print(info)
Step 4: Set up credentials
dlt reads credentials from environment variables or .dlt/secrets.toml. The simplest approach for a one-time run:
# Set the credential as an environment variable
# The exact variable name depends on the source — check the dlt_sources reference
export SOURCES__<SOURCE>__API_KEY="the-actual-key"
Ask the user for their API key or token. Remind them:
- Never commit credentials to git
- Environment variables are the simplest way for a one-time run
- For repeated use, they can create
.dlt/secrets.toml
Step 5: Run the pipeline
python <pipeline_script>.py
After the run, confirm:
- The pipeline completed without errors
- A
.duckdbfile was created (usually at<pipeline_name>.duckdb) - Print discovered tables and their column counts
import duckdb
con = duckdb.connect("<pipeline_name>.duckdb", read_only=True)
for row in con.execute("""
SELECT table_schema, table_name,
(SELECT COUNT(*) FROM information_schema.columns c
अक्सर पूछे जाने वाले सवाल
dlt क्या है?
यह एक डेटा लोडिंग टूल है जो APIs से डेटा खींचकर DuckDB जैसी डेटाबेस फ़ाइल में डालता है।
verification क्वेरी क्यों चलाएँ?
स्किल कहती है कि सफलता का मतलब है ऐसा project जो सच में क्वेरी चलाता है, न कि सिर्फ़ ऐसी फ़ाइलें जो सही दिखती हैं।
क्या मुझे Python आना चाहिए?
थोड़ा Python मदद करता है, क्योंकि pipeline उसी में चलती है, लेकिन स्किल SQL जानने वाले उपयोगकर्ताओं के लिए चरण समझाती है।
जानकारी
लेखक का मूल विवरण
Connect SaaS data (HubSpot, Stripe, Salesforce, GitHub, Slack, etc.) to Wren Engine for SQL analysis. Guides the user through the full flow: install dlt, pick a SaaS source, set up credentials, run the data pipeline into DuckDB, then auto-generate a Wren semantic project from the loaded data. Use this skill whenever the user mentions: connecting SaaS data, importing data from an API, dlt pipelines, loading HubSpot/Stripe/Salesforce/GitHub/Slack data, querying SaaS data with SQL, or setting up a new data source from a REST API. Also trigger when the user already has a dlt-produced DuckDB file a
repo: Canner/WrenAI
लोकप्रियता
- GitHub स्टार
- 18k
- रैंकिंग में स्थान
- #10724
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
enrich-context
18kआपके एजेंट को Wren डेटा project में व्यावसायिक अर्थ जोड़ने में मदद करती है, जैसे units, enum वैल्यू, समानार्थी शब्द और standard metrics।
genbi
18kआपके एजेंट को Wren डेटा project को ब्राउज़र का साझा करने योग्य डैशबोर्ड बनाने और उसे आपके अपने hosting खाते पर deploy करने में मदद करती है।
generate-mdl
18kआपके एजेंट को डेटाबेस schema खंगालकर, types साफ़ करके और YAML फ़ाइलें बनाकर Wren semantic project तैयार करने में मदद करती है।
onboarding
18kआपके एजेंट को Wren Engine शुरू से सेट करने में मदद करती है: माहौल जाँचना, project बनाना, डेटाबेस जोड़ना और पहली क्वेरी चलाना।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।