{"id":22845232,"url":"https://github.com/dmotte/cashlog","last_synced_at":"2025-08-02T13:40:14.044Z","repository":{"id":267879034,"uuid":"902630275","full_name":"dmotte/cashlog","owner":"dmotte","description":"🐍 Cash flow tracker","archived":false,"fork":false,"pushed_at":"2025-07-02T01:43:23.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T02:34:06.113Z","etag":null,"topics":["analysis","budget","budgeting","calculator","cash","csv","finance","flow","log","management","money","monitor","monitoring","package","py","python","statistics","track","tracker","tracking"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cashlog/","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/dmotte.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,"zenodo":null}},"created_at":"2024-12-13T00:26:23.000Z","updated_at":"2025-07-02T01:43:20.000Z","dependencies_parsed_at":"2024-12-13T01:29:21.808Z","dependency_job_id":"219e3307-a87a-4b23-9954-151db4a881c4","html_url":"https://github.com/dmotte/cashlog","commit_stats":null,"previous_names":["dmotte/cashlog"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dmotte/cashlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fcashlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fcashlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fcashlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fcashlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmotte","download_url":"https://codeload.github.com/dmotte/cashlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmotte%2Fcashlog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268400669,"owners_count":24244445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["analysis","budget","budgeting","calculator","cash","csv","finance","flow","log","management","money","monitor","monitoring","package","py","python","statistics","track","tracker","tracking"],"created_at":"2024-12-13T03:16:24.589Z","updated_at":"2025-08-02T13:40:13.975Z","avatar_url":"https://github.com/dmotte.png","language":"Python","readme":"# cashlog\n\n[![GitHub main workflow](https://img.shields.io/github/actions/workflow/status/dmotte/cashlog/main.yml?branch=main\u0026logo=github\u0026label=main\u0026style=flat-square)](https://github.com/dmotte/cashlog/actions)\n[![PyPI](https://img.shields.io/pypi/v/cashlog?logo=python\u0026style=flat-square)](https://pypi.org/project/cashlog/)\n\n:snake: **Cash** flow **tracker**.\n\n## Installation\n\nThis utility is available as a Python package on **PyPI**:\n\n```bash\npython3 -mpip install cashlog\n```\n\n## Usage\n\nThere are some files in the [`example`](example) directory of this repo that can be useful to demonstrate how this tool works, so let's change directory first:\n\n```bash\ncd example/\n```\n\nWe need a Python **virtual environment** (\"venv\") with some packages to do the demonstration:\n\n```bash\npython3 -mvenv venv\nvenv/bin/python3 -mpip install -r requirements.txt\n```\n\nNow we need some **input data**. You can take a look at the tests in [`test_cli.py`](test/test_cli.py) to understand the file format and create your own CSV input file.\n\n\u003e **Tip**: you can **join multiple input files** that are in the same format with the following command:\n\u003e\n\u003e ```bash\n\u003e cat input-*.csv | (read -r header; echo \"$header\"; while read -r i; do [ \"$i\" = \"$header\" ] || echo \"$i\"; done)\n\u003e ```\n\nThen we can **compute the totals**:\n\n```bash\npython3 -mcashlog --fmt-amount='{:+.2f}' --fmt-total='{:.2f}' input.csv output.csv\n```\n\nAnd finally display some nice **plots** using the [`plots.py`](example/plots.py) script (which uses the [_Plotly_](https://github.com/plotly/plotly.py) Python library):\n\n```bash\nvenv/bin/python3 plots.py -at output.csv\n```\n\n\u003e **Tip**: if you want to somehow **filter the data** before generating the plots, you can use the `awk` command:\n\u003e\n\u003e ```bash\n\u003e awk -F, 'NR==1 || ($2+0 \u003e= 5 || $2+0 \u003c= -5)' output.csv \u003e output-filtered.csv\n\u003e ```\n\nFor more details on how to use this command, you can also refer to its help message (`--help`).\n\n## Development\n\nIf you want to contribute to this project, you can install the package in **editable** mode:\n\n```bash\npython3 -mpip install -e . --user\n```\n\nThis will just link the package to the original location, basically meaning any changes to the original package would reflect directly in your environment ([source](https://stackoverflow.com/a/35064498)).\n\nIf you want to run the tests, you'll have to install the `pytest` package and then run:\n\n```bash\npython3 -mpytest test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmotte%2Fcashlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmotte%2Fcashlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmotte%2Fcashlog/lists"}