{"id":18952171,"url":"https://github.com/lastaapps/menza-cli","last_synced_at":"2025-04-16T01:33:23.118Z","repository":{"id":99247300,"uuid":"585620535","full_name":"Lastaapps/menza-cli","owner":"Lastaapps","description":"Menza CLI - View dish menus for CTU cafeterias","archived":false,"fork":false,"pushed_at":"2025-02-01T10:07:49.000Z","size":400,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T05:05:22.383Z","etag":null,"topics":["cli","ctu","ctu-fit","menza","ncurses","prague"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lastaapps.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":"2023-01-05T16:30:07.000Z","updated_at":"2025-02-01T10:07:53.000Z","dependencies_parsed_at":"2023-03-30T12:21:00.143Z","dependency_job_id":null,"html_url":"https://github.com/Lastaapps/menza-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fmenza-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fmenza-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fmenza-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fmenza-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lastaapps","download_url":"https://codeload.github.com/Lastaapps/menza-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182513,"owners_count":21226082,"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","ctu","ctu-fit","menza","ncurses","prague"],"created_at":"2024-11-08T13:31:18.550Z","updated_at":"2025-04-16T01:33:23.105Z","avatar_url":"https://github.com/Lastaapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Menza CLI\n[![PyPI version](https://badge.fury.io/py/menza_cli.svg)](https://badge.fury.io/py/menza_cli)\n\nMenza CLI is a command line tool written in Python (what a mistake)\nallowing not only CTU students to view CTU Canteens menus.\nToday menu, week menu, canteens info and dish rating using own rating BE\ninterconnected with my Android app is supported.\n\nBecause the Gui of the project is written using the ncurses library,\n**non-unix systems are not supported**.\n\nMake sure your terminal supports emojis.\n\n# Install\n\n**Python 3.10+ required!** Check by running `python3 --version`.\n\nYou can install the app from [pypi](https://pypi.org/project/menza-cli/).\n\n```bash\n# install the package\npython3 -m pip install menza_cli\n\n# If you don't have python in your PATH\n# Bash\nprintf '\\nexport PATH=\"$PATH:$HOME/.local/bin\"\\n\\n' \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n# zsh\nprintf '\\nexport PATH=\"$PATH:$HOME/.local/bin\"\\n\\n' \u003e\u003e ~/.zshrc\nsource ~/.zshrc\n\n# Run the app\nmenza\n```\n\n# Setup locally\nTo set the project you will need Python 3.10 or greater.\nYou can just run the `./scripts/setup.sh` script or create a virtual environment yourself\nfrom the `requirements.txt` file included.\n\n# Running\nTo run the app, source the created env using `source .venv/bin/activate` and run `./menza --help`\n\nTo use mocked data (eg. it is weekend and no dish is served), pass the `--mocked` option.\n\n## Gui\nTo run the app in Gui mode, omit any command while executing from CLI. You can navigate like\na chad using basic Vim binding or like a VŠE student using arrows.\n\n### Controls\n- `right/left` - switch between menu and main view\n- `up/down` - move in menus/lists\n- `Enter/o` - in menu load selected canteen menu, in the menu view open dish photo in browser if available\n- `w` - switch to week view and back\n- `r` - rate selected dish\n- `q/Esc` - quit\n\nTo be warned against allergens view the config section below.\n\nIf the images are being opend twice in a brower it is not my fault, Python the stupid one here.\n\n\n## Cli\nTo just get basic overview of one specific system, you can use a command in the CLI - `list`, `dish`, `week` or `info`.\n\nThe first 3 output data in Tab separated format, so they can be used by CLI filters.\n\nLast 3 expect a cafeteria id (run the `list` command) or name, at least partially - the first system that matches gets used.\n\nSo to view a menu in the Strahov cafeteria, you can run any of these:\n- `./menza.py dish 1`\n- `./menza.py dish Strahov`\n- `./menza.py dish str`\n\n## Config file\nYou can config some basic app behavior using `menza.conf` file in the `~/.config` directory. The file is not required to exist.\nFile format is as follow:\n\n```conf\n# Required\n[DEFAULT]\n\n# if something changes in the future and project is no longer maintained\nagata_url_base=\nagata_url_api=\nagata_api_key=\nlasta_url=\nlasta_api_key=\n\n# Dishes with the following allergens will be grayed out\nallergens=1,3\n```\n\n# License\nMenza CLI is licensed under the `GNU GPL v3.0` license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flastaapps%2Fmenza-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flastaapps%2Fmenza-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flastaapps%2Fmenza-cli/lists"}