Skip to main content

All-in-one platform for data and AI/ML engineering

Project description

Seeknal

Transform data with SQL and Python. Build ML features with point-in-time joins. Materialize to PostgreSQL and Iceberg — all from one CLI.

PyPI version Python versions License CI

Seeknal is an all-in-one platform for data and AI/ML engineering. Define pipelines in YAML or Python, run them through a safe draft → dry-run → apply workflow, and materialize outputs to PostgreSQL and Apache Iceberg simultaneously. Python 3.11+ required.

Quick Start

pip install seeknal

seeknal init --name my_project
seeknal draft --name my_pipeline --type transform
seeknal dry-run
seeknal apply

Explore your data interactively or search docs from the terminal:

seeknal repl          # Interactive SQL on pipeline outputs
seeknal docs query    # Search documentation from the CLI
SELECT customer_id, COUNT(*) as order_count
FROM target.my_transform
GROUP BY customer_id;

Key Features

Dual Pipeline Authoring — Write pipelines in YAML, Python decorators, or both:

from seeknal.pipeline import source, transform

@source(name="orders", source="csv", table="data/orders.csv")
def orders():
    pass

@transform(name="order_metrics", inputs=["source.orders"])
def order_metrics(ctx):
    df = ctx.ref("source.orders")
    return ctx.duckdb.sql(
        "SELECT customer_id, SUM(amount) as total FROM df GROUP BY customer_id"
    ).df()

Multi-Target Materialization — Write to PostgreSQL and Iceberg from a single node:

materializations:
  - type: postgresql
    connection: local_pg
    table: analytics.my_table
    mode: upsert_by_key
    unique_keys: [id]
  - type: iceberg
    table: atlas.namespace.my_table

Environment Management — Isolated namespaces with per-environment profiles:

seeknal env plan dev --profile profiles-dev.yml
seeknal env apply dev
seeknal run --env dev

Feature Store — Define ML features in YAML or Python with entity keys, point-in-time joins, and automatic versioning. Supports offline (batch) and online (real-time) serving.

# seeknal/feature_groups/customer_features.yml
kind: feature_group
name: customer_features
entity:
  name: customer
  join_keys: ["customer_id"]
materialization:
  event_time_col: latest_order_date
  offline: { enabled: true, format: parquet }
  online: { enabled: false, ttl: 7d }
features:
  total_orders: { dtype: integer }
  total_spent: { dtype: float }
  avg_order_value: { dtype: float }
inputs:
  - ref: transform.customer_orders
# Or use Python decorators
@feature_group(name="customer_rfm", entity="customer")
def customer_rfm(ctx):
    df = ctx.ref("transform.clean_transactions")
    return ctx.duckdb.sql("""
        SELECT CustomerID, COUNT(DISTINCT InvoiceNo) as frequency,
               SUM(TotalAmount) as monetary_value
        FROM df GROUP BY CustomerID
    """).df()
seeknal entity list                           # Cross-feature-group consolidation
seeknal entity show customer                  # Inspect entity schema and feature groups

Interactive SQL REPL — Auto-registers parquets, PostgreSQL, and Iceberg sources at startup. Query pipeline outputs, explore data, iterate on SQL — all without leaving the terminal.

AI-Powered Data Agent — Ask questions in natural language, get SQL-backed answers with actionable insights. 12 built-in tools for data discovery, analysis, Python execution, and report generation:

seeknal ask "What are the top 5 customers by revenue?"
seeknal ask chat                        # Multi-turn interactive session
seeknal ask report "customer analysis"  # Generate interactive HTML dashboard
seeknal ask report --exposure monthly_kpis  # Run deterministic report exposure

Supports Google Gemini (default) and Ollama (local) as LLM providers. Use --provider ollama for fully local, private analysis.

Documentation

Getting Started Installation, configuration, first pipeline
CLI Reference All commands and flags
YAML Schema Pipeline YAML reference
CLI Docs Search Search documentation from the terminal (seeknal docs)
Tutorials YAML Pipelines · Python Pipelines · Mixed · Seeknal Ask Agent · Report Exposures
Guides Python Pipelines · Testing & Audits · Iceberg Materialization · Training to Serving
Concepts Point-in-Time Joins · Virtual Environments · Exposures · Glossary

Changelog

v2.4.0 (March 2026)

Seeknal Ask — AI-Powered Data Agent — Natural language data analysis with 12 built-in tools:

seeknal ask "What are the top 5 customers by revenue?"
seeknal ask chat                                        # Interactive multi-turn session
seeknal ask report "customer segmentation"              # AI-guided HTML dashboard
seeknal ask report --exposure monthly_kpis              # Deterministic report exposure
seeknal ask report serve my-report                      # Live-preview with Evidence dev server
  • One-shot & chat modes: Ask questions or start multi-turn sessions with conversation memory
  • 12 agent tools: Data discovery, SQL execution, Python analysis (pandas/scipy/matplotlib), pipeline inspection, and report generation
  • Report exposures: Define repeatable reports in YAML with pinned SQL queries, chart types (BigValue, BarChart, LineChart, AreaChart, DataTable), and LLM-generated narratives
  • Deterministic reports: sections key pins SQL and charts — LLM only writes commentary
  • Dual output: Both interactive HTML dashboards and standalone Markdown reports
  • LLM providers: Google Gemini (default) and Ollama (local, no API key)
  • Subprocess sandbox: Python execution runs in isolated subprocess with restricted imports

v2.3.0 (March 2026)

Incremental Detection — Automatically skip unchanged data sources and process only new data:

# PostgreSQL watermark-based incremental detection
- kind: source
  name: events
  source: postgresql
  table: public.events
  freshness:
    time_column: created_at  # Tracks MAX(created_at) watermark
  params:
    connection: my_pg
  • PostgreSQL Incremental: Watermark-based detection using MAX(time_column) comparison. Automatically generates WHERE time_col > 'watermark' OR time_col IS NULL for incremental reads.
  • Iceberg Incremental: Snapshot-based detection comparing current snapshot ID. Supports partition pruning for time-partitioned tables.
  • Skip Optimization: If fingerprint and watermark match, source execution is skipped entirely.
  • Cascade Invalidation: Dependent nodes are automatically invalidated when source data changes.
  • Full Refresh: Use --full flag to ignore stored watermarks and reload all data.

Other Changes:

  • Enhanced QA automation with multi-spec execution support
  • Pipeline error logging with --verbose mode
  • Security fix: Updated cryptography to 46.0.5 (CVE-2026-26007)

v2.2.2 (February 2026)

  • Entity consolidation for per-entity feature views
  • Multi-target materialization (PostgreSQL + Iceberg from single node)
  • Environment-aware execution with namespace prefixing

Install from Source

For development or contributing:

git clone https://github.com/mta-tech/seeknal.git
cd seeknal
uv venv --python 3.11 && source .venv/bin/activate
uv pip install -e ".[all]"

Contributing

Contributions are welcome! See CONTRIBUTING.md for setup, code style, testing, and PR guidelines.

License

Seeknal is Apache 2.0 licensed.

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

seeknal-2.4.2.tar.gz (525.3 kB view details)

Uploaded Source

Built Distribution

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

seeknal-2.4.2-py3-none-any.whl (631.1 kB view details)

Uploaded Python 3

File details

Details for the file seeknal-2.4.2.tar.gz.

File metadata

  • Download URL: seeknal-2.4.2.tar.gz
  • Upload date:
  • Size: 525.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seeknal-2.4.2.tar.gz
Algorithm Hash digest
SHA256 2ccfed479b584fae010b152ed164460f3b929e679e863d3d2d1ffbd4847715ae
MD5 1d8d83bafb9c1c8203f38cb9e768d16b
BLAKE2b-256 c811c99cfca27a4bf5ee02e6620faa9439f2e18d9f12bba6d9cf7749d0e9db17

See more details on using hashes here.

Provenance

The following attestation bundles were made for seeknal-2.4.2.tar.gz:

Publisher: release.yml on mta-tech/seeknal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seeknal-2.4.2-py3-none-any.whl.

File metadata

  • Download URL: seeknal-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 631.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seeknal-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b8d7121d8de490ff75874743a30a3b3124b4474aed49a6a5eb6784359252c5d
MD5 834f2a9586cb64a481829eaf515b5d12
BLAKE2b-256 1837d6a9646e05fccb37474550327712f072a3d1e7f5122dc6cc14332f2cc9a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for seeknal-2.4.2-py3-none-any.whl:

Publisher: release.yml on mta-tech/seeknal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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