How ryucel/tufe_hesaplama works
Project Type and Purpose
• This is a full-stack web application aimed at computing the inflation (TÜFE) changes and the corresponding value shifts of Turkish Lira over a selected period. The application uses historical inflation data from KKTC and leverages Python/Flask for the backend and HTML/CSS (with Bootstrap) for the frontend.
• The purpose is to allow users to select a start date, an end date, and an optional TL amount, and then display the calculated inflation change along with a descriptive summary.
Analyzing the File Structure
• At the top level, you have:
• app.py: This is the main Flask application file.
• cpi_data.csv: The CSV data file containing inflation data.
• requirements.txt: Lists Python dependencies like Flask, pandas, etc.
• The static directory holds all static assets:
• static/css/style.css for styling.
• static/images, manifest.json, and service-worker.js suggest Progressive Web App (PWA) support.
• The templates directory contains index.html, which is used by Flask to render the frontend.
• This simple structure follows a basic MVC pattern where:
• “Models/Controllers” are in app.py (data processing with pandas, handling business logic).
• “Views” are in the templates (HTML) and static assets (CSS, images, JavaScript for client-side interactions).