How 19vermouth/oilpricemonitor works
Project Type and Purpose
• This is a full-stack Python application for real-time Oil Price Monitoring & Analysis.
• Purpose:
• Ingest live oil price and news data from multiple APIs
• Detect anomalies in price feeds
• Correlate anomalies with news events
• Generate AI-driven summaries and insights
• Expose results via a Streamlit dashboard
File Structure
Top-level files & folders:
• chatbot.py, dashboard.py, test_env.py: entry points for UI/interaction/testing.
• data/: local SQLite database scripts (init_db.py, sampledb.py).
• src/: core modules orchestrating data ingestion, processing, AI analysis.
• price_tracker.py
• anomaly_detector.py
• news_aggregator.py
• ollama_analyzer.py
• etl_pipeline.py
• monitor.py
• utils/: shared configuration and logger.
• requirements.txt, .gitignore.
Architectural Patterns:
• Modular pipeline: source connectors → anomaly detection → AI analysis → storage.
• Orchestrator module (monitor.py) invokes subcomponents.
• Separation of concerns: data ingestion, processing, AI, UI.
README for Additional Insights
• Tech stack: Python, SQLite, Streamlit, Plotly, Statsmodels, Ollama/Mistral-7B.
• Multi-source resilience, local cache fallback.