{"id":19757398,"url":"https://github.com/manojkarthick/expenses","last_synced_at":"2025-04-30T12:31:40.743Z","repository":{"id":44877537,"uuid":"297892625","full_name":"manojkarthick/expenses","owner":"manojkarthick","description":"Simple, Interactive, command line Expense logger.","archived":false,"fork":false,"pushed_at":"2022-01-21T05:47:16.000Z","size":156,"stargazers_count":42,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T02:04:48.858Z","etag":null,"topics":["cli","expenses","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/manojkarthick.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}},"created_at":"2020-09-23T07:44:01.000Z","updated_at":"2024-03-18T02:11:15.000Z","dependencies_parsed_at":"2022-08-26T07:01:12.274Z","dependency_job_id":null,"html_url":"https://github.com/manojkarthick/expenses","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojkarthick%2Fexpenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojkarthick%2Fexpenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojkarthick%2Fexpenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manojkarthick%2Fexpenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manojkarthick","download_url":"https://codeload.github.com/manojkarthick/expenses/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224208332,"owners_count":17273751,"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","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":["cli","expenses","go"],"created_at":"2024-11-12T03:19:17.952Z","updated_at":"2024-11-12T03:19:18.525Z","avatar_url":"https://github.com/manojkarthick.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expenses [![GitHub release](https://img.shields.io/github/release/manojkarthick/expenses.svg)](https://github.com/manojkarthick/expenses/releases/) ![build](https://github.com/manojkarthick/expenses/workflows/release/badge.svg)\nAn interactive command line expense logger. Answer a series of questions to log your expenses. Currently writes to CSV and SQLite backends.\n\n## Installation\n\n### Recommended method\nYou can download pre-built binaries for Linux, macOS and Windows [here](https://github.com/manojkarthick/expenses/releases). Just add the binary to your path and you're good to go!\n\n### Alternative methods\n\nAlternatively, if you have go installed, you can use go get to directly download the package from the master branch:\n```shell script\ngo get github.com/manojkarthick/expenses\n``` \n\nIf you are a [nix](https://github.com/NixOS/nix) user, you can install expenses from [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/expenses/default.nix)\n```shell script\nnix-env --install expenses\n```\n\nor, if you manager your installation using [home-manager](https://github.com/nix-community/home-manager), add to your `home.packages`:\n```\nhome.packages = [\n    pkgs.expenses\n]; \n```\n\n### Building from source\nYou can use the Makefile present in the directory to build the project. Make sure you have Golang v1.14.x installed on your system.\n\n```shell script\ngit clone https://github.com/manojkarthick/expenses.git\ncd expenses\nmake dev-build\n./expenses help\n```\n\n## Running\n\nTo add a new expense, run `expenses add` and answer the questions that follow. Example below:\n\n```\n$ expenses add\n? What did you buy? Cookies\n? Cost? 2.99\n? Where did you buy this? Trader Joes\n? Please select the item's categories Food\n? Source of Funds? Chequing\n? Any notes?\n? Transaction date Today\n```\n\nView the tool in action here:\n \n [![asciicast](https://asciinema.org/a/381989.svg)](https://asciinema.org/a/381989)\n\n### Available Commands\nRun `expenses help` to view the list of commands available:\n\n```shell script\nA simple command line utility to log your expenses\n\nUsage:\n  expenses [command]\n\nAvailable Commands:\n  add         Log your expenses to the file/database\n  config      Show the current configuration used by expenses\n  delete      Delete expenses by transaction id\n  help        Help about any command\n  show        Show contents of the CSV or SQLite database created by the program\n  version     Show application version information\n\nFlags:\n      --config string   config file (default is $HOME/.expenses.yaml)\n  -h, --help            help for expenses\n      --verbose         use verbose logging\n\nUse \"expenses [command] --help\" for more information about a command.\n```\n\n* To add a new expense: `expenses add`\n* View the current version: `expenses version`\n* View the configuration used: `expenses config`\n* Show the expenses: `expenses show db` or `expenses show csv`\n* Delete expenses: `expenses delete --transaction \u003ctransaction_ids\u003e`\n\n\n### Sample Output\n\nTo view the expenses currently logged, run `expenses show db` or `expenses show csv`.\n\n```\n+--------------------------------------+------------+---------+----------+-------------+----------+----------+\n|            TRANSACTION ID            |    DATE    |  ITEM   |   COST   |  LOCATION   | CATEGORY |  SOURCE  |\n+--------------------------------------+------------+---------+----------+-------------+----------+----------+\n| fb96cf93-b096-4137-ad8b-b60a3bf08045 | 2020/12/31 | Cookies | 2.990000 | Trader Joes | Food     | Chequing |\n| 3d275a44-76a2-4162-942d-d8901cae2c82 | 2020/12/30 | Coffee  | 4.990000 | Starbucks   | Food     | Cash     |\n+--------------------------------------+------------+---------+----------+-------------+----------+----------+\n```\n\n### Configuration\n\nExpenses allows you to configure values such as the database name, csv file name, categories for expenses, source of funds, etc.\n\nCreate a file under your home directory called `.expenses.yaml`. You can modify the following fields in the config file:\n\n1. `dbName`: Name of the SQLite3 database to commit to (`default = expenses.db`)\n2. `disableDb`: Set to `true` if you don't want to write to database (`default = false`)\n3. `csvName`: Name of the CSV file to write to (`default = expenses.csv`)\n4. `disableCSV`: Set to `true` if you don't want to write to the CSV file (`default = false`)\n5. `categories`: Provide an alternate list of categories for your expenses to show during the interactive prompt (`default = Rent/Mortgage, Food, Utilities, Maintenance, Living, Health, Electronics, Hygiene, Travel, Education`)\n6. `funds`: Provide possible source of funds for the expense (`default = VISA, Mastercard, Chequing, Savings, Cash, PayPal`)\n \n\n### TODO\n\n* [ ] Statistics/Spending reports by Time period and category\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanojkarthick%2Fexpenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanojkarthick%2Fexpenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanojkarthick%2Fexpenses/lists"}