How jibyte/artic-etl-analytics-api works
This is a FastAPI service for ingesting Art Institute of Chicago artworks, staging raw records in MongoDB, transforming and loading them into a MySQL warehouse, and exposing analytics and cross-store auditing. The main workflow is an API request routed to ETL extraction and then transformation; separate endpoints reset the pipeline, profile one record across both stores, or analyze a warehouse column. The excerpts show these calls and storage operations. Other README capabilities are represented where documented; unsampled implementation details are not inferred.
Main entry points: main.py FastAPI application · etl_controller.py ETL routes · database.py Connection layer · entidad_sql.py Artwork model
Components 16
API Layer
- FastAPI application
app/main.py - ETL routes
app/controllers/etl_controller.py - Analytics routes
app/controllers/analitica_controller.py - Request responses
app/views/schemas.py - Settings
app/config.py
ETL Pipeline
- Artwork extraction
app/services/etl_service.py - Transform and load
app/services/etl_service.py - Pipeline reset
app/services/etl_service.py
Data Stores
- Connection layer
app/database.py - MongoDB staging
- MySQL warehouse
- Artwork model
app/models/entidad_sql.py
Analytics
- Dual-store profile
app/services/analitica_service.py - Column statistics
app/services/analitica_service.py
Other components
- API caller
- Art Institute API
Connections 28
- API caller → FastAPI application: sends request
README.md - FastAPI application → ETL routes: registers routes
app/main.py - FastAPI application → Analytics routes: registers routes
app/main.py - FastAPI application → Connection layer: creates tables
app/main.py - FastAPI application → Artwork model: loads model
app/main.py - ETL routes → Artwork extraction: calls extraction
app/controllers/etl_controller.py - ETL routes → Transform and load: calls transformation
app/controllers/etl_controller.py - ETL routes → Pipeline reset: calls reset
app/controllers/etl_controller.py - Analytics routes → Dual-store profile: calls profile
app/controllers/analitica_controller.py - Analytics routes → Column statistics: calls analysis
app/controllers/analitica_controller.py - ETL routes → Request responses: validates responses
app/controllers/etl_controller.py - Analytics routes → Request responses: validates responses
app/controllers/analitica_controller.py - Artwork extraction → Art Institute API: fetches pages
app/services/etl_service.py - Artwork extraction → MongoDB staging: upserts records
app/services/etl_service.py - Transform and load → MongoDB staging: reads documents
app/services/etl_service.py - Transform and load → MySQL warehouse: upserts rows
app/services/etl_service.py - Transform and load → Artwork model: builds records
app/services/etl_service.py - Pipeline reset → MySQL warehouse: truncates table
app/services/etl_service.py - Pipeline reset → MongoDB staging: deletes documents
app/services/etl_service.py - Dual-store profile → MongoDB staging: reads record
app/services/analitica_service.py - Dual-store profile → MySQL warehouse: queries record
app/services/analitica_service.py - Dual-store profile → Artwork model: queries model
app/services/analitica_service.py - Column statistics → MySQL warehouse: queries column
app/services/analitica_service.py - Column statistics → Artwork model: inspects columns
app/services/analitica_service.py - Connection layer → Settings: loads settings
app/database.py - Connection layer → MongoDB staging: connects staging
app/database.py - Connection layer → MySQL warehouse: creates engine
app/database.py - Artwork model → Connection layer: uses base
app/models/entidad_sql.py