🚀 SlideFlow
____ _ _ _ __ _
/ ___|| (_) __| | ___ / _| | _____ __
\___ \| | |/ _` |/ _ \ |_| |/ _ \ \ /\ / /
___) | | | (_| | __/ _| | (_) \ V V /
|____/|_|_|\__,_|\___|_| |_|\___/ \_/\_/
Generate
Beautiful slides.
Direct from your data.
SlideFlow is a Python-based tool for generating beautiful, data-driven decks, docs, and sheets directly from your data sources.
Key Features • How It Works • Installation • Getting Started • CLI Usage • Configuration • Customization • Contributing
✨ Why SlideFlow?
SlideFlow was built to solve a simple problem: automating the tedious process of creating data-heavy reporting artifacts. If you find yourself repeatedly copying and pasting charts, metrics, and narrative updates into decks, docs, or sheets, SlideFlow is for you.
- 🎨 Beautiful, Consistent Visuals: Leverage the power of Plotly for stunning, replicable charts. Use YAML templates to create a library of reusable chart designs.
- 📊 Connect Directly to Your Data: Pull data from CSV files, JSON, Databricks, DuckDB, or your dbt models. No more manual data exports.
- ⚡ Automate Your Reporting: Stop the manual work. Reduce errors and save time. Your decks/docs/sheets are always up-to-date with your latest data.
- 🚀 Scale Instantly: Need to create an output for every customer, region, or product? Generate hundreds of personalized deck/doc variants at once from a single template.
- 🤖 Production Automation Ready: Run scheduled builds in GitHub Actions with the reusable SlideFlow workflow and machine-readable JSON outputs.
🔑 Key Features
- Declarative YAML Configuration: Define your entire reporting artifact in a simple, human/agent readable YAML file.
- Multiple Data Source Connectors:
csv: For local CSV files.json: For local JSON files.databricks: For running SQL queries directly against Databricks.dbt: Composable dbt source config with explicitdbt+warehouseblocks.databricks_dbt: Legacy dbt connector format (still supported for compatibility).
- Dynamic Content Replacements:
- Text: Replace simple placeholders like
{{TOTAL_REVENUE}}with dynamic values. - Tables: Populate entire tables in your slides or document sections from a DataFrame.
- AI-Generated Text: Use OpenAI, Databricks Serving Endpoints, or Gemini to generate summaries, insights, or any other text, right from your data.
- Text: Replace simple placeholders like
- Powerful Charting Engine:
- Plotly Graph Objects: Create any chart you can imagine with the full power of Plotly.
- YAML Chart Templates: Use packaged built-ins or define reusable local templates.
- Custom Python Functions: For when you need complete control over your chart generation logic.
- Extensible and Customizable:
- Use Function Registries to extend SlideFlow with your own Python functions for data transformations, formatting, and more.
- Powerful CLI:
slideflow build: Generate one or many deck/document artifacts.slideflow validate: Validate your configuration before you build.slideflow doctor: Run preflight diagnostics before validate/build.slideflow sheets validate|build|doctor: Validate/build/diagnose workbook pipelines.slideflow templates: Inspect available template names and parameter contracts.- Generate multiple deck/doc variants from a single template using a CSV parameter file.
- Multiple Output Providers:
google_slides: Build slide decks from template slides.google_docs: Build marker-anchored documents for newsletter/report workflows.google_sheets: Build workbook outputs with tab-level replace/append semantics.
- Optional Source Citations:
- Emit deterministic source provenance (
modeland/orexecution) into output artifacts. - Render
Sourcesblocks in Slides speaker notes or Docs footnotes/document end. - Capture citation payloads in
slideflow build --output-jsonfor downstream audit workflows.
- Emit deterministic source provenance (
🔧 How It Works
SlideFlow works in three simple steps:
- Define: You create a YAML file that defines your build target. This includes a Google Slides template, Google Docs template, or Google Sheets workbook schema, plus data sources and per-section/tab content.
- Connect & Transform: SlideFlow connects to your specified data sources, fetches the data, and applies any transformations you've defined.
- Build: SlideFlow creates a new deck/document/workbook, populates it with your data and charts, and saves it to Google Drive.
🛠 Installation
pip install slideflow-presentations
Connector extras (install only what you need):
# Databricks SQL sources
pip install "slideflow-presentations[databricks]"
# dbt sources (includes dbt-core adapter stack + Git clone support)
pip install "slideflow-presentations[dbt]"
# Optional warehouse extras for dbt warehouse.type variants
pip install "slideflow-presentations[bigquery]"
pip install "slideflow-presentations[duckdb]"
🧑💻 Getting Started
To create your first output, you'll need:
-
A Template/Target: Use either:
- Google Slides template with slide IDs for target slides, or
- Google Docs template with section markers like
{{SECTION:intro}}, or - Google Sheets target (
spreadsheet_id) or destination folder for workbook creation.
-
Your Data: Have your data ready in a CSV file, or have your Databricks credentials configured.
-
A YAML Configuration File: This is where you'll define your output artifact. See the Configuration section for more details.
-
Google Cloud Credentials: You'll need a Google Cloud service account with access to the required Google APIs (Slides/Docs/Sheets + Drive as needed). Provide credentials with one of:
- Set the
credentialsfield in yourconfig.ymlto the path of your JSON credentials file. - Set the
credentialsfield in yourconfig.ymlto the JSON content of your credentials file as a string. - Set
GOOGLE_DOCS_CREDENTIALS(forgoogle_docs),GOOGLE_SHEETS_CREDENTIALS(forgoogle_sheets), orGOOGLE_SLIDEFLOW_CREDENTIALS(shared fallback) to a path/raw JSON.
- Set the
Once you have these, you can run the build command:
slideflow build your_config.yml
⚙️ CLI Usage
SlideFlow comes with a simple CLI.
Commands
slideflow validate CONFIG_FILE [OPTIONS]- validate config/registry resolution
- optional provider contract checks (
--provider-contract-check) - optional machine-readable output (
--output-json)
slideflow build CONFIG_FILE [OPTIONS]- generate one or many deck/document artifacts
- supports batch params (
--params-path), dry-run, threads, and RPS controls - optional machine-readable output (
--output-json)
slideflow doctor [OPTIONS]- runtime preflight checks (Python/chart/runtime/provider environment)
- supports strict fail mode (
--strict) and JSON output
slideflow templates list|info- inspect available chart templates and contract metadata
slideflow sheets validate|build|doctor CONFIG_FILE [OPTIONS]- workbook configuration workflows (
workbook:schema) - tab-local AI summaries via
workbook.tabs[].ai.summaries[](type: ai_text) - bounded tab concurrency via
--threads(applied up to tab count) - machine-readable JSON supported via
--output-json
- workbook configuration workflows (
Examples:
slideflow doctor --config-file config.yml --registry registry.py --strict --output-json doctor-result.json
slideflow validate config.yml --registry registry.py --provider-contract-check --params-path variants.csv --output-json validate-result.json
slideflow build config.yml --registry registry.py --params-path variants.csv --threads 2 --rps 0.8 --output-json build-result.json
For the complete and current command surface, see CLI Reference.
📝 Configuration
Your config.yml file is the heart of your SlideFlow project. Here's a high-level overview of its structure:
presentation:
name: "My Awesome Presentation"
slides:
- id: "slide_one_id"
title: "Title Slide"
replacements:
# ... text, table, and AI replacements
charts:
# ... chart definitions
provider:
type: "google_slides" # or "google_docs"
config:
credentials: "/path/to/your/credentials.json"
template_id: "your_google_slides_template_id"
citations: # optional
enabled: true
mode: "both" # model | execution | both
location: "document_end" # per_slide | per_section | document_end
template_paths:
- "./templates"
# For Sheets workflows, use `workbook:` schema and `slideflow sheets ...` commands.
For provider-specific behavior, see:
🎨 Customization
SlideFlow is designed to be extensible. You can use your own Python functions for:
- Data Transformations: Clean, reshape, or aggregate your data before it's used in charts or replacements.
- Custom Formatting: Format numbers, dates, and other values exactly as you need them.
- Custom Charts: Create unique chart types that are specific to your needs.
To use your own functions, create a registry.py file with a function_registry dictionary:
# registry.py
def format_as_usd(value):
return f"${value:,.2f}"
function_registry = {
"format_as_usd": format_as_usd,
}
You can then reference format_as_usd in your YAML configuration.
🤝 Contributing
See CONTRIBUTING.md for development setup, local quality gates, test expectations, and PR checklist.
🔒 Dependency Reproducibility Policy
SlideFlow tracks uv.lock in git as the canonical lockfile for development and CI.
- CI validates lock freshness with
uv lock --check. - Contributor environments should be synced from lock with:
uv sync --extra dev --extra ai --locked
When dependency constraints change in pyproject.toml, regenerate uv.lock in the
same PR.
📜 License
MIT License © Joe Broadhead
Metadata
Release files for slideflow-presentations 0.0.7
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 |
|---|---|---|---|---|
| slideflow_presentations-0.0.7.tar.gz | 518.2 kB | With provenance | Details for slideflow_presentations-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slideflow_presentations-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for slideflow_presentations-0.0.7-py3-none-any.whl |
Total release size: 778.9 kB
Release files / slideflow_presentations-0.0.7.tar.gz
| Download URL | slideflow_presentations-0.0.7.tar.gz |
|---|---|
| Size | 518.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96d76887c8a048dab1f10699d5967423527a8288c05e7e070d56c957636edf0c
|
|
BLAKE2b-256 checksum How to use checksums |
1143337a95b14fb73d323ad79a5e47229eb36c540f46c92227066dd3cefbaad9
|
| 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 May 25, 2026.
Transparency logRelease files / slideflow_presentations-0.0.7-py3-none-any.whl
| Download URL | slideflow_presentations-0.0.7-py3-none-any.whl |
|---|---|
| Size | 260.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15bf648e7fc9cecacb9b7111f31b0c5363b89174f541bcd513c644ff00400c54
|
|
BLAKE2b-256 checksum How to use checksums |
4e28e91f1860a19a35a6c9a6a3e947f1c579f5e1ff009476f4a767000cc5ae96
|
| 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 May 25, 2026.
Transparency logSecurity for slideflow-presentations 0.0.7
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.
Attestation for slideflow_presentations-0.0.7.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 May 25, 2026.
Transparency logA 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.