dcf -- D.ata C.ollection F.ramework
uvx --from dcf-core dcf init
How it works
- Define a data collector in YAML for any http data source
- Run it with
dcf run - Query your new data
Quickstart
Get real data. From an API. Into your Lakehouse. Query it with SQL. In 5 lines.
mkdir dcf-demo && cd dcf-demo
uvx --from dcf-core dcf init
uv sync
uv run dcf run so_questions
uv run dcf query 'SELECT * FROM stackoverflow.so_questions'
dcf init creates pyproject.toml, profiles.yml, .gitignore, collectors/, and an example collector.
Example
dcf collector
name: so_questions
namespace: stackoverflow
source:
type: http
url: https://api.stackexchange.com/2.3/questions
response:
records_path: items
params:
- name: site
type: string
value: stackoverflow
- name: tagged
type: string
value: "python;data-engineering"
schema:
columns:
- name: question_id
path: question_id
type: integer
- name: title
path: title
type: string
- name: creation_date
path: creation_date
type: integer
cadence:
strategy: incremental
primary_key: question_id
iterate:
- type: date_range
params: [fromdate, todate]
format: "%s"
start: "2025-01-01"
end: today
step: 30 days
dcf run
uv run dcf run so_questions
dcf query
uv run dcf query 'SELECT * FROM stackoverflow.so_questions LIMIT 5'
More features
- Create a collector with Claude Code —
/new-collectorskill, installed bydcf init - Importing collectors from dcf-hub, GitHub, or PyPI —
dcf import - Authenticated collectors — bearer tokens, API keys,
{{ env.VAR }} - Collector config reference — full YAML field reference
Contributing
git clone https://github.com/zephschafer/dcf && cd dcf && uv sync
Point a local project at your checkout:
[tool.uv.sources]
dcf-core = { path = "../dcf", editable = true }
To verify changes:
uv run dcf run so_questions
uv run dcf query 'SELECT * FROM stackoverflow.so_questions'
Releasing: bump version in pyproject.toml and push to main — GitHub Actions publishes to PyPI automatically.
Package structure
dcf/
├── cli.py Entry point (Typer)
├── config/
│ ├── models.py Pydantic models for collector YAML
│ └── loader.py YAML loading + env var resolution
├── engine/
│ ├── runner.py Outer loop (iterate → fetch → project → write)
│ ├── fetcher.py HTTP and Python source fetchers
│ ├── iterator.py Date range and categorical iteration
│ ├── projector.py Schema projection and path extraction
│ └── transforms.py Column transforms
├── writer/
│ └── iceberg.py Write strategies (incremental / append / full_refresh)
└── gcp/ GCP auth, provisioning, Terraform wrappers
Metadata
Release files for dcf-core 1.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dcf_core-1.1.11.tar.gz | 61.0 kB | Without provenance | Details for dcf_core-1.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dcf_core-1.1.11-py3-none-any.whl | Python 3 | none | any | Details for dcf_core-1.1.11-py3-none-any.whl |
Total release size: 121.2 kB
Release files / dcf_core-1.1.11.tar.gz
| Download URL | dcf_core-1.1.11.tar.gz |
|---|---|
| Size | 61.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1efe0516c3d7df8312873b54fbaf1a6b4f8e1bceb09f679e76b65e4820d4f560
|
|
BLAKE2b-256 checksum How to use checksums |
9154f7457ecea0b81ff6bb869513410c60c7c094de1d69b2140f98258d85784a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / dcf_core-1.1.11-py3-none-any.whl
| Download URL | dcf_core-1.1.11-py3-none-any.whl |
|---|---|
| Size | 60.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b81ab9ad1b30864d4a560e433d12856a99322d1fda18394103e97901bf7070c
|
|
BLAKE2b-256 checksum How to use checksums |
666d81996451f2a26cf4b72858f6125ab8f53e5f92af5975aa4e21564aae1684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for dcf-core 1.1.11
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.