Skip to content

Repository files navigation

Data Analytics Pipeline

ETL pipeline that extracts product data from the Fake Store API, transforms it with currency conversion and categorization, and loads it into a SQLite database.

Pipeline Stages

  1. Extract — Fetches product data from the Fake Store API and saves raw JSON locally.
  2. Transform — Converts prices from USD to EUR, categorizes products by price tier (low/medium/high), and flags highly rated items.
  3. Load — Writes the transformed data into a SQLite database.

Configuration

Settings are defined in config.py. The following can be overridden with environment variables:

Variable Default Description
FAKE_STORE_API_URL https://fakestoreapi.com Product data source
EXCHANGE_RATE_API_URL https://api.exchangerate-api.com/v4/latest/AUD Exchange rate provider
DATABASE_NAME products.db SQLite database filename

Thresholds

Setting Value
Low price < $5
High price > $100
Highly rated >= 4.5 stars

Project Structure

data_analytics/
├── main.py              # Entry point
├── requirements.txt
├── src/
│   ├── config.py
│   ├── etl_pipeline.py
│   └── data/
│       ├── raw/         # Raw JSON extracts
│       ├── processed/   # Processed JSON
│       └── database/    # SQLite database and schema
└── README.md

Usage

Docker (recommended)

docker compose up --build

Local

pip install -r requirements.txt
python main.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages