Logo Lanfrica

gishusam/kenya-econ-pipeline

Domain:

socioeconomic

Record type:

softwareproject
Creator:
gis
Host:
# πŸ‡°πŸ‡ͺ Kenya Economic Intelligence Pipeline A production-grade, end-to-end data engineering project that ingests, transforms, streams, and visualises Kenya's macroeconomic indicators in real time β€” built on the modern data stack. --- ## Dashboard Preview --- ## Problem Statement Kenya's economic data β€” GDP, inflation, and foreign exchange rates β€” is scattered across the World Bank, the Central Bank of Kenya, and third-party FX providers with no unified, automated data layer. Analysts manually download CSVs, reconcile different formats, and build one-off spreadsheets. Fintech and investment teams lack a reliable, always-fresh FX feed. Policy teams cannot track macro trends in near real-time. This pipeline solves that. It automates the full data journey β€” from raw API ingestion to a live dashboard β€” and produces analytical outputs no single source can provide, including Kenya's GDP expressed in KES, a real purchasing power index, and a continuously updating KES/USD time-series. --- ## Live Dashboard πŸ”— **kenya-economic-intelligence.streamlit.app** --- ## What It Produces | Metric | Description | Source | |--------|-------------|--------| | GDP in KES | Kenya GDP converted from USD at live FX rate | World Bank Γ— Open Exchange Rates | | YoY GDP growth | Year-over-year percentage change | Derived by dbt | | Inflation trend | Annual CPI rate 2020–2024 | World Bank | | Purchasing power index | Inflation + FX depreciation combined | Flagship dbt model | | Live KES/USD rate | Streamed every 60 seconds via Kafka | Open Exchange Rates | | FX daily summary | Min, max, average rate per day | Derived by dbt | --- ## Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Data Sources β”‚ β”‚ World Bank API Open Exchange Rates API β”‚ β”‚ (GDP, inflation) (KES/USD live rate) β”‚ └──────────┬───────────────────────────┬──────────────────── …