Meal plans for university canteens in Bonn
Project description
Meal plans for university canteens in Bonn
A python script for displaying the meal plans of the canteens of the Studierendenwerk Bonn. The script parses the HTML response of a call to an API. Depending on your request the API might take a few seconds to respond.
Installation
To install this script, run
pip install bonn-mensa
MacOS (using homebrew)
To install the application using homebrew, run:
# Add the tap to homebrew
brew tap --force-auto-update alexanderwallau/bonn-mensa https://github.com/alexanderwallau/bonn-mensa
# Install the application
brew install bonn-mensa
# Install the application from main branch
brew install --HEAD bonn-mensa
In case you want to remove the application, run:
brew uninstall bonn-mensa
brew untap alexanderwallau/bonn-mensa
brew autoremove
NixOS (using flakes)
This Repository provides a flake. If you have flakes enabled you can either run
nix run github:alexanderwallau/bonn-mensa -- <options>
for one time use. If you want to add this to your permanent configuration add
bonn-mensa = {
url = "github:alexanderwallau/bonn-mensa";
inputs = { nixpkgs.follows = "nixpkgs"; };
};
to your flake.nix and adjust the rest of your config accordingly if you are using Home-Manager an example can be found here. One could also use the flakehub route and use
fh add "alexanderwallau/bonn-mensa/0.1.81"
Usage
To run the script, simply run mensa. For a list of all arguments, see mensa --help
$ mensa --help
usage: mensa [-h] [--vegan | --vegetarian]
[--mensa {SanktAugustin, CAMPO, Hofgarten, FoodtruckRheinbach, VenusbergBistro, CasinoZEF/ZEI, Foodtruck, Rabinstraße}]
[-- price {Student, Staff, Guest}]
[--filter-categories [CATEGORY ...]] [--date DATE] [--lang {de,en}] [--show-all-allergens]
[--show-additives] [--no-colors] [--markdown]
[--glutenfree] [--pdf]
optional arguments:
-h, --help show this help message and exit
--vegan Only show vegan options
--vegetarian Only show vegetarian options
--mensa {SanktAugustin,CAMPO,Hofgarten,FoodtruckRheinbach,VenusbergBistro,CasinoZEF/ZEI,Foodtruck, Rabinstraße, Rheinbach}
The canteen to query. Defaults to CAMPO.
--price {Student, Staff, Guest}
The price to display on output defaults to Student
--filter-categories [CATEGORY ...]
Meal categories to hide. Defaults to ['Buffet', 'Dessert'].
--date DATE The date to query for in YYYY-MM-DD format. Defaults to today.
--lang {de,en} The language of the meal plan to query. Defaults to German.
--show-all-allergens Show all allergens. By default, only allergens relevant to vegans (e.g. milk or fish) are shown.
--show-additives Show additives.
--glutenfree Show only gluten free meals
--no-colors Do not use any ANSI colors in the output.
--markdown Output in markdown table format.
--pdf Download the meal plan of the current week for specified canteen as a PDF.
--verbose Output Debug Log
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bonn_mensa-1.3.0.tar.gz.
File metadata
- Download URL: bonn_mensa-1.3.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b401b76e7993659aa0ab5b026056d8ee5cc0d9a429a97b796b56d3249e45ccd
|
|
| MD5 |
3d043bff726e993ac5ff756dbb7abfa9
|
|
| BLAKE2b-256 |
3d2c8b38edee44ed9aecf80e1bf7b84edc053142cd564ea7964cbcf465905016
|
Provenance
The following attestation bundles were made for bonn_mensa-1.3.0.tar.gz:
Publisher:
python-publish.yml on alexanderwallau/bonn-mensa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bonn_mensa-1.3.0.tar.gz -
Subject digest:
6b401b76e7993659aa0ab5b026056d8ee5cc0d9a429a97b796b56d3249e45ccd - Sigstore transparency entry: 910590326
- Sigstore integration time:
-
Permalink:
alexanderwallau/bonn-mensa@79d47374a9585513235271f0f02d4e39db6a6c9e -
Branch / Tag:
refs/tags/1.3.0 - Owner: https://github.com/alexanderwallau
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@79d47374a9585513235271f0f02d4e39db6a6c9e -
Trigger Event:
release
-
Statement type:
File details
Details for the file bonn_mensa-1.3.0-py3-none-any.whl.
File metadata
- Download URL: bonn_mensa-1.3.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18b45813d9e35b8bed4117eba374f274e623d4d5b3f41e214e2afb485dc0e044
|
|
| MD5 |
f2e9fc0fe093542c088bfe100c0a743e
|
|
| BLAKE2b-256 |
c90a47eea74598f86ca37df3c6ce3d84cb53c2a1c9b26d4a409b5d97f35f4100
|
Provenance
The following attestation bundles were made for bonn_mensa-1.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on alexanderwallau/bonn-mensa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bonn_mensa-1.3.0-py3-none-any.whl -
Subject digest:
18b45813d9e35b8bed4117eba374f274e623d4d5b3f41e214e2afb485dc0e044 - Sigstore transparency entry: 910590334
- Sigstore integration time:
-
Permalink:
alexanderwallau/bonn-mensa@79d47374a9585513235271f0f02d4e39db6a6c9e -
Branch / Tag:
refs/tags/1.3.0 - Owner: https://github.com/alexanderwallau
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@79d47374a9585513235271f0f02d4e39db6a6c9e -
Trigger Event:
release
-
Statement type: