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 git+https://github.com/felixblanke/bonn-mensa.git
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}]
[--filter-categories [CATEGORY ...]] [--date DATE] [--lang {de,en}] [--show-all-allergens]
[--show-additives] [--no-colors] [--markdown]
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}
The canteen to query. Defaults to CAMPO.
--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.
--no-colors Do not use any ANSI colors in the output.
--markdown Output in markdown table format.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bonn-mensa-0.0.1.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for bonn_mensa-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64a0e37ff393ca4e6e84f3d9df9fad8d2763823dcdf0de017c4f55bc7e2924d |
|
MD5 | 16494ba55136a790d5d45212c2a08a9c |
|
BLAKE2b-256 | 64e72b7003707b535cf6dc3fd17694b4a1b243fb0a3fd0fe5218e7f08c9e6e05 |