SuperTable
SuperTable — versioned data lake library for SQL analytics.
SuperTable stores structured data as immutable Parquet snapshots on object storage (S3, MinIO, Azure Blob, GCP Cloud Storage, or local disk), keeps metadata, locks, and audit state in Redis, and queries everything through DuckDB (embedded) or Spark SQL. It is a Python library — there is no separate server process.
Installation
pip install supertable # core + local storage
pip install "supertable[s3]" # AWS S3
pip install "supertable[minio]" # MinIO
pip install "supertable[azure]" # Azure Blob
pip install "supertable[gcp]" # Google Cloud Storage
pip install "supertable[all]" # everything
Requirements: Python 3.10+, a POSIX host (the durable monitoring spool uses
fcntl locking), a reachable Redis 6+, and a configured storage backend (or
local disk for development). See
docs/02_configuration.md for environment
variables.
Architecture
┌──────────────────────────────────────────────────┐
│ Python application │
│ (notebooks, ETL jobs, FastAPI handlers, etc.) │
└──────────┬─────────────────────────┬──────────────┘
│ DataWriter / DataReader │
▼ ▼
┌───────────────┐ ┌────────────────────┐
│ RedisCatalog │ │ StorageInterface │
│ metadata │ │ Parquet files │
│ locks │ │ S3 / MinIO / │
│ audit chain │ │ Azure / GCP / │
└───────────────┘ │ Local │
└────────────────────┘
Data is organised as Organization → SuperTable → SimpleTable. Each
SimpleTable is a versioned, append-only collection of Parquet files
backed by a snapshot linked list — every write produces a new immutable
snapshot whose previous_snapshot points at the predecessor.
| Layer | Technology |
|---|---|
| Language | Python 3.10+ |
| Metadata store | Redis 6+ (standalone or Sentinel HA) |
| Query engine (primary) | DuckDB |
| Query engine (large) | Spark SQL via Thrift |
| Data format | Apache Parquet |
| Object storage | MinIO / S3 / Azure / GCP / local |
| Mirror formats | Delta Lake, Apache Iceberg, Parquet |
| Audit storage | Redis Streams + Parquet |
Quick example
from supertable import SuperTable, DataWriter, DataReader, engine
# Bootstrap catalogue + storage
SuperTable(super_name="example", organization="my-org")
# Write
dw = DataWriter(super_name="example", organization="my-org")
columns, rows, inserted, deleted = dw.write(
role_name="superadmin",
simple_name="facts",
data=arrow_table,
overwrite_columns=["day", "client"],
lineage={"source_type": "manual", "source_id": "my-job"},
)
# Read
dr = DataReader(
super_name="example",
organization="my-org",
query="SELECT day, sum(value) FROM facts GROUP BY day LIMIT 10",
)
df, status, message = dr.execute(role_name="superadmin", engine=engine.AUTO)
Demos
The package ships three runnable demos under supertable.demo:
# Numbered tutorial — runs the full lifecycle end-to-end.
supertable-demo-quickstart
# or
python -m supertable.demo.quickstart
# Synthetic webshop dataset.
supertable-demo-webshop-generate # build ~1.2M rows on disk
supertable-demo-webshop-load # load them into SuperTable
supertable-demo-webshop-topup # continuous incremental refresh
# Medical-center finance demo (raw → staging → mart, fully synthetic).
supertable-demo-medcenter-run # generate → load → transform → tests →
# accounting export → idempotency proof
All demos are also runnable as module steps. Examples:
python -m supertable.demo.quickstart.s01_01_01_create_super_table
python -m supertable.demo.quickstart.s03_08_read_snapshot_history
python -m supertable.demo.webshop.generate
See supertable/demo/README.md for the full script index.
What's included
- Versioned tables with snapshot isolation, upsert (
overwrite_columns), soft deletes (delete_only=True), schema evolution, and staleness filtering - DuckDB and IslandDB query engines — embedded reads with adaptive selection
- Spark SQL via Thrift — for queries exceeding DuckDB memory limits
- RBAC — role types (superadmin, admin, writer, reader, meta) with row-level and column-level security enforced through view chains
- Audit logging — tamper-evident SHA-256 hash chain in Redis Streams with Parquet export
- Monitoring —
MonitoringWriterpushes read/write/metric payloads to Redis lists; structured JSON logging with correlation IDs - Ingestion — staging areas (
Staging) and automated ingestion pipes (SuperPipe) - Mirroring — optional Delta Lake / Iceberg / Parquet export after every write
- Snapshot history — every write chains to
previous_snapshot, enabling point-in-time inspection without separate historical tables
Documentation
See docs/00_index.md for the full table of contents.
| # | Document | Description |
|---|---|---|
| 01 | Platform Overview | Architecture, package layout, deployment, data flow |
| 02 | Configuration | Environment variables and runtime settings |
| 03 | Data Model | Organization → SuperTable → SimpleTable hierarchy |
| 04 | Storage Backends | StorageInterface, S3, MinIO, Azure, GCP, local |
| 05 | Redis Catalog | Metadata store, key naming, operations, CAS |
| 06 | Data Writer | Write pipeline, locking, dedup, tombstones |
| 07 | Ingestion & Pipes | Staging areas, automated ingestion pipes |
| 08 | Distributed Locking | Redis locks, file locks, deadlock prevention |
| 09 | Query Engine | DuckDB, IslandDB, Spark SQL, auto selection |
| 10 | Data Reader | Read facade, snapshot history, view chain |
| 11 | RBAC & Access Control | Roles, users, row/column security |
| 12 | Audit Logging | SHA-256 hash chain, DORA/SOC 2, SIEM |
| 13 | Table Mirroring | Delta Lake, Iceberg, Parquet export |
| 14 | Monitoring | Metrics writer, structured logging |
| 15 | Python SDK | Core classes, demos, example index |
| 16 | Redis Key Layout | Canonical key namespaces and validation rules |
| 17 | Privileged Audit Worker | Supervised deployment, durability preflight, safe trimming, probes, failure policy |
License
SuperTable is licensed under the Functional Source License, Version 1.1,
ALv2 Future License (FSL-1.1-ALv2).
You may use, copy, modify, create derivative works, publicly perform, publicly display, and redistribute the software for any permitted purpose other than a Competing Use.
A Competing Use means making the software available to others in a commercial product or service that:
- substitutes for SuperTable;
- substitutes for another product or service offered by Kladna Soft Kft. using SuperTable; or
- offers the same or substantially similar functionality as SuperTable.
Permitted purposes include internal use, non-commercial education, non-commercial research, and professional services provided to a licensee using the software in accordance with the license.
Each version of the software becomes available under the Apache License 2.0 on the second anniversary of the date that version is made available.
See LICENSE for the full license terms.
Copyright © 2024-2026 Kladna Soft Kft.
Metadata
Release files for supertable 2.5.3
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 |
|---|---|---|---|---|
| supertable-2.5.3.tar.gz | 1.2 MB | Without provenance | Details for supertable-2.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supertable-2.5.3-py3-none-any.whl | Python 3 | none | any | Details for supertable-2.5.3-py3-none-any.whl |
Total release size: 2.6 MB
Release files / supertable-2.5.3.tar.gz
| Download URL | supertable-2.5.3.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22caeb4c9c211e26ffc36f32d47590c718e3d40d44a9bbb9c3c17931d05cafe8
|
|
BLAKE2b-256 checksum How to use checksums |
6e2c08140d85ea50b8cfc9ce8fbb31d1974ffd6fd097980f5b88a3bd7d68d011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / supertable-2.5.3-py3-none-any.whl
| Download URL | supertable-2.5.3-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce7c8d4158f431b5b00675a929dd4c9802b40cd1ddba5004d1d5d3841617a118
|
|
BLAKE2b-256 checksum How to use checksums |
6011556441cc14aca09a9bbbf867675323a94832c0d0973164ff7a4a12e262fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for supertable 2.5.3
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.