How swadhinbiswas/eurostream works
EuroStream is a GDPR-oriented event-streaming and medallion-lakehouse platform. Its main workflow produces events, scores payment fraud, transforms warehouse data through Bronze/Silver/Gold and quality gates, then exports a lake snapshot. A separate Article 17 workflow suppresses a customer, cascades anonymization/deletion, and records proof for verification. The repository also contains a Databricks implementation with an AppKit erasure interface and Lakeflow pipelines. Relationships are limited to README statements and shown source references; unsampled implementation details are not inferred.
Main entry points: warehouse.py Medallion warehouse · api.py FastAPI service · erasure.py Erasure cascade · __init__.py Event bus
Components 34
API and operations
- FastAPI service
src/eurostream/api.py - Web dashboard
src/eurostream/dashboard.py - Metrics
src/eurostream/metrics.py - Runtime settings
src/eurostream/config.py
Streaming and lakehouse
- Event contracts
src/eurostream/models.py - Event production
src/eurostream/producers.py - Event bus
src/eurostream/bus/__init__.py - SQLite bus
src/eurostream/bus/sqlite.py - Kafka bus
src/eurostream/bus/kafka.py - Fraud scoring
src/eurostream/streaming.py - Medallion warehouse
src/eurostream/warehouse.py - Quality gates
src/eurostream/quality.py - Parquet lake export
src/eurostream/warehouse.py - Turso sync
src/eurostream/turso.py - Pipeline orchestration
src/eurostream/orchestration.py
Privacy and governance
- Erasure cascade
src/eurostream/governance/erasure.py - PII pseudonymization
src/eurostream/governance/pii.py - Erasure audit chain
src/eurostream/governance/audit_chain.py - Data lineage
src/eurostream/lineage.py
Databricks stack
- Databricks app UI
databricks/app/client/src/App.tsx - UI entry point
databricks/app/client/src/main.tsx - Erasure page
databricks/app/client/src/pages/ErasurePage.tsx - Databricks app server
databricks/app/server/server.ts - Erasure actions
databricks/app/server/plugins/erasure-actions/index.ts - Preview token security
databricks/app/server/security/preview-token.ts - Shared app contracts
databricks/app/shared/contracts.ts - Bronze ingestion
databricks/dlt/bronze_ingest.py - Silver pseudonymization
databricks/dlt/silver_pseudonymize.py - Gold consent gating
databricks/dlt/gold_consent_gated.py - Article 17 workflow
databricks/notebooks/02_article17_erasure.py - Physical cleanup
databricks/dab/notebooks/erasure_physical_cleanup.py - Suppression masking
databricks/dab/notebooks/erasure_suppression_mask.py
Other components
- Operator
- Synthetic events
Connections 33
- Operator → FastAPI service: uses
README.md - Synthetic events → Event production: provide events
README.md - Event production → Event bus: publishes events
src/eurostream/producers.py - Event bus → SQLite bus: uses locally
README.md - Event bus → Kafka bus: uses when hosted
README.md - FastAPI service → Web dashboard: serves
src/eurostream/api.py - FastAPI service → Runtime settings: loads settings
src/eurostream/api.py - FastAPI service → Metrics: records metrics
src/eurostream/api.py - FastAPI service → Fraud scoring: triggers scoring
README.md - Event production → Event contracts: builds events
src/eurostream/producers.py - Medallion warehouse → Event contracts: parses events
src/eurostream/warehouse.py - Fraud scoring → Event bus: consumes payments
README.md - Fraud scoring → Medallion warehouse: stores scores
- Medallion warehouse → Quality gates: validates data
src/eurostream/quality.py - Medallion warehouse → Parquet lake export: exports Parquet
README.md - Medallion warehouse → Turso sync: syncs optionally
src/eurostream/warehouse.py - Operator → Erasure cascade: requests erasure
README.md - FastAPI service → Erasure cascade: queues requests
src/eurostream/api.py - Erasure cascade → Medallion warehouse: anonymizes and deletes
src/eurostream/governance/erasure.py - Erasure cascade → Event bus: publishes suppression
src/eurostream/governance/erasure.py - Erasure cascade → Erasure audit chain: records proof
src/eurostream/governance/erasure.py - Medallion warehouse → PII pseudonymization: pseudonymizes records
src/eurostream/warehouse.py - Operator → Databricks app UI: uses
databricks/app/client/src/App.tsx - UI entry point → Databricks app UI: renders
databricks/app/client/src/main.tsx - Databricks app UI → Erasure page: routes to
databricks/app/client/src/App.tsx - Erasure page → Shared app contracts: uses types
databricks/app/client/src/pages/ErasurePage.tsx - Databricks app server → Erasure actions: registers plugin
databricks/app/server/server.ts - Erasure actions → Preview token security: verifies previews
databricks/app/server/plugins/erasure-actions/index.ts - Article 17 workflow → Suppression masking: stages suppression
- Article 17 workflow → Physical cleanup: stages cleanup
- Bronze ingestion → Silver pseudonymization: feeds transformation
README.md - Silver pseudonymization → Gold consent gating: feeds transformation
README.md - Pipeline orchestration → Medallion warehouse: runs DAG tasks