{"id":16137499,"url":"https://github.com/purarue/calories-scripts","last_synced_at":"2025-10-23T20:32:29.145Z","repository":{"id":94609881,"uuid":"299138608","full_name":"purarue/calories-scripts","owner":"purarue","description":"Scripts for interacting with calories, to fuzzy select new entries to add, swap/merge databases","archived":true,"fork":false,"pushed_at":"2024-10-24T22:49:22.000Z","size":5519,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T13:06:21.176Z","etag":null,"topics":["calories","calories-tracker","cli","food","food-tracker","fzf","fzf-scripts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.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":"2020-09-27T23:31:15.000Z","updated_at":"2024-10-24T22:49:26.000Z","dependencies_parsed_at":"2024-10-26T11:31:51.417Z","dependency_job_id":"a4648101-9376-4f26-9f2b-8a760d67dc4b","html_url":"https://github.com/purarue/calories-scripts","commit_stats":null,"previous_names":["purarue/calories-scripts","seanbreckenridge/calories-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fcalories-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fcalories-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fcalories-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fcalories-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/calories-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237886844,"owners_count":19381910,"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":["calories","calories-tracker","cli","food","food-tracker","fzf","fzf-scripts"],"created_at":"2024-10-09T23:27:36.056Z","updated_at":"2025-10-23T20:32:23.790Z","avatar_url":"https://github.com/purarue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# calories-fzf\n\nScripts for interacting with [`calories`](https://github.com/zupzup/calories)\n\nThese are up here incase anyone wants to try hacking on them, I don't expect to update/use these anymore as I've replaced this with [ttally](https://github.com/purarue/ttally)\n\n### calfzf\n\nA [`fzf`](https://github.com/junegunn/fzf) interface to , to add something you've eaten in the past again.\n\n![](https://raw.githubusercontent.com/purarue/calories-fzf/master/demo.gif)\n\nAs you add more things to calories using `calories add \u003ccal\u003e '\u003cname\u003e'`, this picks them up using `calories export`.\n\n### calswap\n\nSwaps the current calories database (by updating your `$GOBIN/.caloriesconf` file) to another database. If the path doesn't exist, it copies the currently active database, along with all the data\n\n### calmerge\n\nNote: creates a backup of your current database before modifying anything\n\nMerges multiple 'calories' databases together.\n\nMerges entries and weights from the current and any\ndatabase(s) passed as arguments, removing\nduplicate entries. The resulting entries are imported\ninto the currently active database, using 'calories import'\n\nFor food, a duplicate is determined by using the following:\n\n`(created, entryDate, calories, food)`\n\ni.e., ignoring the bmr/amr, since those may differ based on\ninconsistencies between weights on different databases\n\nFor weight duplicates are determined using:\n\n`(created, weight)`\n\nids may change during the merge process\n\n```\nusage: calmerge [-h] [-d] CALORIES_DATABASE [CALORIES_DATABASE ...]\n\npositional arguments:\n  CALORIES_DATABASE  One or more calories databases to use as input\n\noptional arguments:\n  -h, --help         show this help message and exit\n  -d, --debug        Increase log verbosity\n```\n\n## Install\n\nDependencies: `bash`, `python3.6+`\n\nYou could install each of the scripts manually onto your `$PATH`, or use the `Makefile`, which attempts to install them into `~/.local/bin`:\n\n```\ngit clone https://github.com/purarue/calories-scripts\ncd ./calories-scripts\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fcalories-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fcalories-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fcalories-scripts/lists"}