Skip to main content

flowfile-duckdb

Query a Flowfile catalog from DuckDB (and anything that speaks DuckDB, like Apache Superset) — zero-copy, read-only.

Flowfile stores catalog tables as open Delta Lake tables (Parquet + _delta_log) and tracks them in a small SQLite database (flowfile_catalog.db). DuckDB reads Delta natively via delta_scan, so this package is a thin metadata bridge: it reads the SQLite catalog and exposes every table to DuckDB as a view over delta_scan(...) (or read_parquet(...) for legacy Parquet tables). No data is copied or moved; queries read the underlying files live.

Install

With uv (recommended):

uv pip install flowfile-duckdb          # once published
uv pip install -e .                     # from a checkout

Or plain pip:

pip install flowfile-duckdb

CLI

flowfile-duckdb list                          # sanity-check discovered tables
flowfile-duckdb build --out catalog.duckdb    # persist a DuckDB file with the views
flowfile-duckdb attach > init.sql             # emit the CREATE VIEW SQL as an init script

Common flags: --catalog-db PATH, --schema-template, --include-cloud, --owner-id N.

Python

import duckdb
from flowfile_duckdb import attach_flowfile_catalog

con = duckdb.connect()
attach_flowfile_catalog(con)                  # schemas render as e.g. Demo_sales_analytics
con.sql('SELECT * FROM "Demo_sales_analytics"."sales" LIMIT 5')

Schema names default to {catalog}_{schema} (single underscore); override via schema_template= (e.g. "{schema}" to drop the catalog prefix).

Where is the catalog DB?

Resolved the same way Flowfile resolves it:

  1. FLOWFILE_DB_PATH — explicit path to flowfile_catalog.db.
  2. <FLOWFILE_STORAGE_DIR or ~/.flowfile>/database/flowfile_catalog.db (default).

The SQLite connection is opened read-only.

Apache Superset

pip install duckdb-engine
flowfile-duckdb build --out /data/flowfile_catalog.duckdb

Add a Superset database with SQLAlchemy URI duckdb:////data/flowfile_catalog.duckdb. See examples/superset.md.

Publishing (maintainers)

Distribution is automated via GitHub Actions (.github/workflows/publish.yml), using PyPI Trusted Publishing (OIDC — no API token stored):

  1. On PyPI, add a trusted publisher for this project: owner edwardvaneechoud, repo flowfile-duckdb, workflow publish.yml, environment pypi.
  2. Create a GitHub Environment named pypi.
  3. Push a v* tag (or publish a GitHub Release) — the workflow builds with uv and publishes to PyPI.
git tag v0.1.0 && git push origin v0.1.0

Known limitations / next steps

  • Cloud tables (s3://, az://, gs://) are skipped unless --include-cloud, which also needs a DuckDB CREATE SECRET. flowfile_duckdb/secrets.py maps a decrypted options dict to CREATE SECRET SQL but deliberately does not decrypt Flowfile's $ffsec$ secrets (that needs Flowfile's master key + HKDF).
  • Virtual / SQL tables have no physical files and are skipped (they can't be read without Flowfile's engine).
  • Refresh: views read live data, but the table list is a snapshot — re-run build/attach to pick up newly created tables.
  • On multi-user (docker-mode) installs the catalog holds every user's tables; use --owner-id to scope to one user.

License

MIT

Metadata

Release files for flowfile-duckdb 0.1.0

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

Source distribution (sdist)

Source distribution for flowfile-duckdb 0.1.0
File Size Uploaded Provenance Actions
flowfile_duckdb-0.1.0.tar.gz 37.6 kB With provenance Details for flowfile_duckdb-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flowfile-duckdb 0.1.0
File Interpreter ABI Platform Actions
flowfile_duckdb-0.1.0-py3-none-any.whl Python 3 none any Details for flowfile_duckdb-0.1.0-py3-none-any.whl

Total release size: 48.8 kB

Release files / flowfile_duckdb-0.1.0.tar.gz

Download URL flowfile_duckdb-0.1.0.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e67ec2610ae62a73a58ee2f401265899b42bc017fefedbd0cec5f825452ae8c8
BLAKE2b-256 checksum
How to use checksums
9cea4d4748ad6c2d958b6eb609a9eb4a792fb47f3027229a468be1af9d3da39b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Release files / flowfile_duckdb-0.1.0-py3-none-any.whl

Download URL flowfile_duckdb-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67571b8e1eaed896c42ffe479e96996335baca07996da7d000b47d37b595a57b
BLAKE2b-256 checksum
How to use checksums
4f1572f658bf418b7a207941270c8b2b26523d21457c6647d6c55e5a8ffdedfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 9, 2026.

Transparency log

Security for flowfile-duckdb 0.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flowfile_duckdb-0.1.0.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 Jul 9, 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.1.0 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