{"id":18326942,"url":"https://github.com/pxaris/expenditure-analyzer","last_synced_at":"2026-04-29T01:33:19.485Z","repository":{"id":261092977,"uuid":"883244915","full_name":"pxaris/expenditure-analyzer","owner":"pxaris","description":"Application for analyzing expenditure data over time","archived":false,"fork":false,"pushed_at":"2024-11-05T13:48:03.000Z","size":419,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T16:53:18.185Z","etag":null,"topics":["data-analysis","data-visualization","docker","python","statistics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pxaris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T16:16:10.000Z","updated_at":"2024-11-05T13:48:06.000Z","dependencies_parsed_at":"2025-04-09T16:42:16.187Z","dependency_job_id":"2815d264-2a65-40e9-be62-b33c8f28c234","html_url":"https://github.com/pxaris/expenditure-analyzer","commit_stats":null,"previous_names":["pxaris/expenditure-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pxaris/expenditure-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxaris%2Fexpenditure-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxaris%2Fexpenditure-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxaris%2Fexpenditure-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxaris%2Fexpenditure-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pxaris","download_url":"https://codeload.github.com/pxaris/expenditure-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxaris%2Fexpenditure-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-analysis","data-visualization","docker","python","statistics"],"created_at":"2024-11-05T19:08:58.671Z","updated_at":"2026-04-29T01:33:19.469Z","avatar_url":"https://github.com/pxaris.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Expenditure Data Analysis\n\nThis repository contains scripts to analyze expenditure data, generating categorized reports and visualizations of financial transactions over time. The analysis outputs a summary report and visualizations for easy data interpretation.\n\n## Docker Installation and Usage\n\nYou can use Docker to run the analysis script without needing to install dependencies directly on your machine.\n\nClone the repository:\n   ```bash\n   git clone https://github.com/pxaris/expenditure-analyzer.git\n   cd expenditure-analyzer\n   ```\n\n### Step 1: Build the Docker Image\n\nIn the root directory of this repository, build the Docker image:\n\n```bash\ndocker build -t expenditure-analyzer .\n```\n\n### Step 2: Run the Analysis with Docker\n\nTo analyze expenditure data, place your CSV file in the `data/` directory, then specify the `--data_filename` with the following Docker command:\n```bash\ndocker run --rm -v $(pwd)/data:/app/data -v $(pwd)/report:/app/report expenditure-analyzer --data_filename 'sample_data.csv'\n```\n\nThis command:\n\n- Mounts the `data` directory to `/app/data` in the container, so it can access the specified at `--data_filename` CSV file.\n- Mounts the `report` directory to `/app/report` in the container, where it will save the generated reports and figures.\n\n### Step 3: View the Results\n\nAfter the analysis completes, you can find the output in the `report/` directory:\n\n- **Report**: The `report.txt` file provides a summary of the analyzed expenditure data, including the total and average expenditures, breakdowns by category, and insights by month.\n- **Figures**: The generated figures, including bar charts of monthly expenditures and pie charts showing expenditure distribution by category, are also saved in the `report/` directory.\n\nThese outputs offer a comprehensive view of your spending patterns, making it easier to understand and interpret your financial data over time.\n\n---\n\n## Manual Installation and Usage\n\nTo get started, install the required Python packages. It's recommended to use a virtual environment.\n\n### Requirements Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/pxaris/expenditure-analyzer.git\n   cd expenditure-analyzer\n   ```\n\n2. Install the required packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n### Usage\n\nTo analyze expenditure data, follow these steps:\n\n#### Step 1: Configure Default Variables\n\nOpen the `config.py` file and set the following default configuration variables if needed:\n\n- `DATA_FILENAME`: Name of the default CSV file containing transaction data, e.g., `'sample_data.csv'`.\n- `N_SKIPROWS`: Number of rows to skip at the beginning of the CSV file, typically for headers or additional info, e.g., `6`.\n- `CSV_DELIMITER`: The delimiter used in the CSV file, e.g., `';'`.\n- `DATE_COLUMN`: Name of the column in the CSV file containing transaction dates, e.g., `'Ημ/νία συναλλαγής'`.\n- `EXPENDITURE_COLUMN`: Name of the column with expenditure amounts, e.g., `'Ποσό (EUR)'`.\n- `EXPENDITURE_CATEGORY_COLUMN`: Name of the column categorizing expenditures, e.g., `'Κατηγορία δαπάνης'`.\n- `CURRENCY`: Currency symbol to display in the report, e.g., `'€'`.\n\n#### Step 2: Run the Analysis\n\nYou can override the default `DATA_FILENAME` and `REPORT_DIR` values directly from the command line.\n\n##### Basic Usage\nTo use the default values specified in `config.py`, simply run:\n```bash\npython analyze.py\n```\n\n##### Custom Usage\nTo specify a different data file or report directory, use the following arguments:\n```bash\npython analyze.py --data_filename 'custom_data.csv' --report_dir 'custom_report_dir'\n```\n\nThis will process the specified input data, perform analysis, and generate reports and visualizations in the designated report directory.\n\n#### Step 3: View the Results\n\nAfter the analysis completes, the **Report** and the **Figures** will be located in the `report/` directory (or the directory specified in `--report_dir`).\n\n---\n\n## Additional Information\n\n- **Sample Data**: A sample CSV file is included to demonstrate the format required for analysis. It follows the rationale of an exported data file from a Greek bank and the respective analysis can be found in the `sample_report/` directory.\n- **Customization**: Modify `config.py` and adjust the `analyze.py` and `utils.py` scripts as needed to fit different datasets or specific analysis requirements.\n\nEnjoy analyzing your expenditure data!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxaris%2Fexpenditure-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpxaris%2Fexpenditure-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxaris%2Fexpenditure-analyzer/lists"}