Skip to main content

Local, folder-driven Dagster CSV transformation engine with hot-folder sensors, AI-assisted pipeline creation, and Tkinter configuration UI.

Project description

ETLai

A local, AI-assisted data transformation engine built on Dagster. Install it, scaffold a project, and let Claude Code create new pipelines — from CSV transformations to API ingestion.

Install

pip install ETLai

Requires Python 3.10+ and Tkinter (ships with most Python installations).

Quick start

etlai init ~/my-etl
cd ~/my-etl
etlai sync
etlai run

This starts a Dagster dev server at http://localhost:3000. Enable sensors in the UI, then drop CSV files into pipelines/<name>/inbox/.

Commands

Command Purpose
etlai init <dir> Scaffold a new project with example pipelines
etlai sync Validate manifests, create folders, prompt for path: ask, check env files
etlai run Start the Dagster dev server
etlai list Show all registered pipelines

How it works

Each pipeline is defined by a manifest (pipelines/<name>/manifest.yaml) that wires together:

  • Atom — a reusable, single-unit-of-work transformation
  • Form — first-run Tkinter UI that collects config (or passthrough for no-UI)
  • Trigger — what causes the pipeline to run (file sensor, cron schedule, or both)
Trigger fires → load files (if any) → configure (form/config.json) → execute atom
                                        ├→ processed/ + output/     (success)
                                        └→ rejected/ + *.error.txt  (failure)

Pipeline types

File-based (CSV transformation)

Drop files into inbox/. Sensor detects stable files and triggers the pipeline.

name: vlookup_rollnumber
atom: vlookup
form: vlookup_column_picker
min_files: 2

API-based (data ingestion)

Fetch data from REST APIs on a schedule. No inbox files needed.

name: fetch_hr_data
atom: hr_api_fetch
form: passthrough
min_files: 0
env_file: ~/.etlai/secrets.env
requires_env:
  - HR_API_TOKEN
trigger:
  rules:
    - type: schedule
      cron: "0 8 * * *"

Composite (multi-step chains)

Chain multiple atoms. Output of each step feeds into the next.

name: vlookup_then_groupby
min_files: 2
steps:
  - atom: vlookup
    form: vlookup_column_picker
  - atom: groupby
    form: groupby_picker

Shipped atoms

Atom Description
vlookup Left join two CSVs on specified columns with dtype validation
groupby Group by column with count, sorted descending
mock_generate Generate synthetic data from file headers using Faker
api_fetch Generic REST API fetcher (JSON/XML/CSV, field mapping, env-based auth)

Shipped forms

Form Description
vlookup_column_picker Join + output column multi-select with dtype validation
groupby_picker Single column selection
passthrough No UI — reads config.json and passes to atom

Key concepts

Reference folder

reference/ holds permanent data used across runs (lookup tables, previous API snapshots). The framework passes reference file paths to atoms automatically.

Custom data paths

path: ask in a manifest prompts the user (via folder picker) during etlai sync to choose where data folders live. Each pipeline can have its own location.

Credentials

API credentials live in env files outside the project (e.g. ~/.etlai/secrets.env). The framework loads them before atom execution. etlai sync validates required vars are present without printing values.

Adding pipelines with Claude Code

Open your project in Claude Code. The scaffolded CLAUDE.md teaches it to:

  1. Create atoms (or reuse shipped ones)
  2. Create forms (or use passthrough with pre-written config.json)
  3. Write manifest.yaml
  4. Run etlai sync

Resolution order

  • Atoms: ./atoms/<name>.pyetlai.atoms.<name> (package)
  • Forms: ./forms/<name>.pyetlai.forms.<name> (package)

User files take precedence over shipped ones.

Development

git clone <repo>
pip install -e .
etlai init /tmp/test-project
cd /tmp/test-project
etlai run

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etlai-0.5.0.tar.gz (71.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etlai-0.5.0-py3-none-any.whl (90.0 kB view details)

Uploaded Python 3

File details

Details for the file etlai-0.5.0.tar.gz.

File metadata

  • Download URL: etlai-0.5.0.tar.gz
  • Upload date:
  • Size: 71.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for etlai-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f6bd784d0058becbe00187ef6b65ea4987b79642bde1d94d5816c3407841d7f0
MD5 c98a8f0261b57404bdc6129b43e98856
BLAKE2b-256 88cdd4e5ecce4b0ca10e5242ae0b773d0993f346306d328178fab9195dc67fc3

See more details on using hashes here.

File details

Details for the file etlai-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: etlai-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 90.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for etlai-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f834e36c1cf7a65420e3adcc0a642796542eb3059666500ed8438d07265729e9
MD5 3d2873f03193b5a6cb7c18d02c20a005
BLAKE2b-256 ed9cc93eaae2d0da0ba3ab12aa79baec882bdf527d01b159424650c55cb375c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page