Skip to main content

dlt-community-sources

CI PyPI License: MIT Python 3.12+

Community-maintained dlt sources for various APIs. Install only what you need via extras.

Available Sources

Source Extra Description
App Store Connect app-store-connect Apple App Store Connect API
Twilio twilio Twilio SMS, Calls, Usage Records
Meta Ads meta-ads Meta (Facebook) Ads campaigns, ad sets, ads, and insights
NextDNS nextdns NextDNS logs and analytics
Microsoft Ads microsoft-ads Microsoft Advertising (Bing Ads) with certificate auth support
TikTok Ads tiktok-ads TikTok Marketing API (Business API)
Yahoo Ads Search yahoo-ads-search Yahoo Japan Ads Search API (SS) with MCC support
Dialpad dialpad Dialpad calls, users, offices, departments, call centers

Installation

pip install dlt-community-sources[app-store-connect]

Or with uv:

uv add dlt-community-sources[app-store-connect]

Usage

import dlt
from dlt_community_sources.twilio import twilio_source

pipeline = dlt.pipeline(
    pipeline_name="twilio",
    destination="duckdb",
    dataset_name="twilio_data",
)

source = twilio_source(
    account_sid="your_account_sid",
    api_key_sid="your_api_key_sid",
    api_key_secret="your_api_key_secret",
    resources=["messages", "calls"],
)

load_info = pipeline.run(source)
print(load_info)

See each source's README for detailed usage and authentication options.

Features

All sources share these common features:

  • Incremental loading where applicable
  • Automatic token/auth refresh
  • Rate limit handling with exponential backoff
  • Works with any dlt destination

Error handling

Sources distinguish two kinds of resources:

  • Auxiliary resources (metadata: campaigns, ads, audiences, ...) skip expected client errors (HTTP 400/403/404) per endpoint — some APIs return 4xx for valid requests on accounts without certain features. Every skip is logged with the response body.
  • Primary resources (the fact data a source exists for: report, insights) never skip. Failures raise PrimaryResourceTerminalError (request rejected — retrying will not help; 4xx other than 408/429) or PrimaryResourceTransientError (timeout, rate limit, provider-side job failure), so a load never "succeeds" with silently missing data. Both mix in dlt's TerminalException / TransientException. Note that dlt wraps resource exceptions in PipelineStepFailed / ResourceExtractionError, so retry helpers that inspect only one level (such as dlt.pipeline.helpers.retry_load) cannot see the classification — use contains_terminal_exception, which walks the exception chain:
from tenacity import Retrying, retry_if_exception, stop_after_attempt
from dlt_community_sources._utils import contains_terminal_exception

for attempt in Retrying(
    stop=stop_after_attempt(3),
    retry=retry_if_exception(lambda e: not contains_terminal_exception(e)),
    reraise=True,
):
    with attempt:
        pipeline.run(source)

To load a subset of resources, either pass the source-specific resources argument or use dlt's native selection: source.with_resources("report").

Operating in production

Lessons from running these sources on daily schedules:

  • Isolate failures per account. When one runner processes many accounts/advertisers (one dlt.pipeline per account), wrap each account — and each discovery call — in its own try/except, collect failures, and exit non-zero at the end. A single account's terminal failure (e.g. an account put on hold by the provider) should not abort the remaining accounts, and one discovery failure (e.g. an MCC your API user is not invited to yet) should not kill the whole job.
  • Tune connection retries for your network. dlt's requests client retries ConnectionError/Timeout with request_max_attempts=5 and request_backoff_factor=1 by default — it gives up in roughly fifteen seconds. If your egress path has transient blackouts, raise them via dlt config (environment variables RUNTIME__REQUEST_MAX_ATTEMPTS, RUNTIME__REQUEST_BACKOFF_FACTOR, RUNTIME__REQUEST_MAX_RETRY_DELAY).
  • Alert on job failures. With this library's fail-loud behavior, data loss shows up as a non-zero exit instead of a green run with missing rows — but only if something watches the exit status. Wire your scheduler's failure signal (e.g. Cloud Run Job completed_execution_count{result:failed}) to an alert before relying on it.

Development

# Fork the repository first, then:
git clone https://github.com/YOUR_USERNAME/dlt-community-sources.git
cd dlt-community-sources
uv sync --group dev
uv run pytest -v
uv run ruff check .

AI-assisted development

This repository is set up for AI coding assistants with two layers of AI context:

  • Project rules (.ai/rules.md) — coding conventions, testing patterns, and structure specific to this repo
  • dltHub AI workbench — dlt ecosystem knowledge, MCP server, and guided skills for pipeline development

Both are synced to tool-specific locations (Claude Code, Cursor, Codex, etc.) via a single command:

bash scripts/sync-ai-rules.sh

The dltHub workbench provides an MCP server for source search (9,700+ APIs), pipeline inspection, and data exploration — plus skills that guide you through the full pipeline development workflow. See CONTRIBUTING.md for details.

Edit .ai/ only for project rules, then re-run the sync script. CI checks that files are in sync.

Contributing

See CONTRIBUTING.md.

License

MIT

Metadata

Release files for dlt-community-sources 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dlt-community-sources 0.8.1
File Size Uploaded Provenance Actions
dlt_community_sources-0.8.1.tar.gz 62.2 kB With provenance Details for dlt_community_sources-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dlt-community-sources 0.8.1
File Interpreter ABI Platform Actions
dlt_community_sources-0.8.1-py3-none-any.whl Python 3 none any Details for dlt_community_sources-0.8.1-py3-none-any.whl

Total release size: 148.1 kB

Release files / dlt_community_sources-0.8.1.tar.gz

Download URL dlt_community_sources-0.8.1.tar.gz
Size 62.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb50c9f781fc839974bf3627b2b6cecabdeb47761936da32b987e35532305608
BLAKE2b-256 checksum
How to use checksums
1936515b2fcbcf91c34a8c88be8c965087c1084e92760c5b25cf6e14a18dd44b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / dlt_community_sources-0.8.1-py3-none-any.whl

Download URL dlt_community_sources-0.8.1-py3-none-any.whl
Size 85.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b4e77c20399ca1cbece0d65c4711db417b0cb0f38cfa7b240d677eb9b1b908b
BLAKE2b-256 checksum
How to use checksums
1388d725df2dce225fd2fec3278e11801c3cc56010d896310537b4e7566420dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for dlt-community-sources 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dlt_community_sources-0.8.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 release files Full provenance

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