{ "info": { "author": "Pascal Sch\u00e4rli", "author_email": "pas.schaerli@sunrise.ch", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pyMensa\nA python package for accessing mensa menus at ETH and UZH Z\u00fcrich\n\n# Installation\n`pip3 install pyMensa`\n\n# Usage\nThis package lets you access mensa menus at ETH and UZH Z\u00fcrich. This package will only let you access menus at lunch time of the current day.\n\n## Get Meals\nIt is very simple to get meals for a mensa:\n```\nimport pyMensa\n\nmeals = pyMensa.get_meals(\"Polymensa\")\n\nfor meal in meals:\n print(meal)\n print()\n```\nExample Output:\n```\nLOCAL (STUD:10.50 STAFF:11.50 EXTERN:15.50)\n\tDieses Menu servieren wir Ihnen gerne bald wieder!\n\n\nSTREET (STUD:9.90 STAFF:11.90 EXTERN:15.90)\n\tThe New York Burger\n\tSchweizer Rindfleisch\n\toder Vegi-Grillburger\n\tSesam Maxi-Bun, Cheddar,\n\tEisberg, Tomaten, Gurken, \n\tBBQ Relish und Chips\n\nGARDEN (STUD:6.20 STAFF:9.30 EXTERN:12.70)\n\tVegan Day\n\tSeitan mit Blumenkohl,\n\tKichererbsen und Harissa-Sauce\n\netc ...\n```\n\n## Get Mensa\nYou can also just query for a Mensa Object:\n```\nimport pyMensa\n\nunimensa = pyMensa.get_mensa(\"uni\")\n\nprint(unimensa.name)\nprint(unimensa.aliases)\n\nmeals = unimensa.get_meals()\nfor meal in meals:\n print(meal)\n print()\n```\nExample Output:\n```\nUZH Zentrum\n['zentrum', 'uni', 'uzh zentrum', 'uzhzentrum']\neinfach gut (STUD:5.40 STAFF:7.00 EXTERN:10.50)\n\t Rindshackfleisch-Pilzragout\n\tmit hausgemachten Sp\u00e4tzli und Weisskabis\n\tFleisch:Rind, CH\n\n\nnat\u00fcrlich vegi (STUD:5.40 STAFF:7.00 EXTERN:10.50)\n\t Gef\u00fcllte Aubergine mit Sojagehacktem Tomatensauce und Bratkartoffeln Men\u00fcsalat oder Apfelmus\n```\n\n# Objects\nThis is a descripition of all objects used by this package.\n\n## Meal\nThis object describes a generic meal.\n\n### Parameters:\n| Name | Type | Description |\n| --------------|:----------:|:-------------------------------------------- |\n| label | str | The label/name of that meal |\n| price_student | str | The price for students |\n| price_staff | str | The price for staff |\n| price_extern | str | The price for other guests |\n| description | str array | A list of descriptions, usually ingredients. |\n\n### Functions:\n| Name | Return Type | Description |\n| ----------|:------------:|:----------------------------------------------------|\n| __str__ | str | Returns the string representation of the meal |\n\n## Mensa\nThis object describes a generic mensa.\n\n### Parameters:\n| Name | Type | Description |\n| ---------|:----------:|:--------------------------------- |\n| name | str | The name of the mensa |\n| aliases | str array | A list of alternative names that can be entered when searching |\n\n### Functions:\n| Name | Return Type | Description |\n| ----------|:------------:|:----------------------------------------------------|\n| get_meals | Meal array | Returns list of available Meals |\n| has_alias | bool | Checks if the given alias corresponds to that mensa |\n\n## ETH Mensa\nThis object inherits from the generic Mensa object and implements the `get_meals` function for the [ETH Gastro API](https://www.webservices.ethz.ch/gastro/v1/RVRI/Q1E1/meals/de/2019-02-07/lunch)\n### Parameters:\n| Name | Type | Description |\n| ---------|:----------:|:--------------------------------------------|\n| api_name | str | The name of the mensa in the ETH Gastro API |\n\n### Functions:\n| Name | Return Type | Description |\n| ----------|:------------:|:----------------------------------------------------|\n| get_meals | Meal array | Fetches meals using the [ETH Gastro API](https://www.webservices.ethz.ch/gastro/v1/RVRI/Q1E1/meals/de/2019-02-07/lunch) | |\n\n## UNI Mensa\nThis object inherits from the generic Mensa object and implements the `get_meals` function for the [UZH Mensa Website](https://www.mensa.uzh.ch/de/menueplaene.html) which is unfortunately much slower that working with the proper API ETH provides us with, but we have no choice.\n### Parameters:\n| Name | Type | Description |\n| ---------|:----------:|:-----------------------------------------------|\n| api_name | str | The name of the mensa on the UZH Mensa Website |\n\n### Functions:\n| Name | Return Type | Description |\n| ----------|:------------:|:----------------------------------------------------|\n| get_meals | Meal array | Fetches meals from the [UZH Mensa Website](https://www.mensa.uzh.ch/de/menueplaene.html) |\n\n## Available Mensas\nHere is a list of all available Mensas and their corresponding aliases:\n\n| Name | Aliases |\n|------|:--------|\nMensa Polyterrasse | poly, polymensa, polyterrasse, mensa polyterrasse\nFood&Lab | foodlab, food lab, food&lab\nCausiusbar | clausius, clausiusbar, lausiusbar, lausius\nPolysnack | polysnack, snack\nTrailerburger | foodtrailer, trailer, trailerburger\nAlumni quattro Lounge | alumni, alumnilounge, alumni lounge\nBellavista | bellavista, bella vista\nFusion Meal | fusion, fusionmeal, fusion meal\nG-ESSbar | gess, gessbar, g-essbar, essbar\nTannenbar | tanne, tannenbar, tannen bar\nDozentenfoyer | dozentenfoyer, dozenten, foyer, dozenten foyer\nPlattenstrasse | platte, plattestross, plattenstrasse, plattestrass\nR\u00e4mi 59 | r\u00e4mi, raemi, r\u00e4mi59, raemi59, r\u00e4mi 59, raemi 59, raemistrasse, r\u00e4mistrasse, r\u00e4mistross\nUZH Mercato | mercato\nUZH Zentrum | zentrum, uni, uzh zentrum, uzhzentrum\nUZH Lichthof | lichthof, rondell\nUZH Irchel | irchel, irchel mensa, irchelmensa\nUZH Irchel Atrium | irchel atrium, atrium\nUZH Binzm\u00fchle | binzm\u00fchle, binzmuehle\nUZH Cityport | cityport\nUZH Zahnmedizin | zahnmedizin, zzm\nUZH Tierspital | tierspital\nUZH Botanischer Garten | botanischergarten, botanischer garten, garten, botgarten\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pasch13/pyMensa", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyMensa", "package_url": "https://pypi.org/project/pyMensa/", "platform": "", "project_url": "https://pypi.org/project/pyMensa/", "project_urls": { "Homepage": "https://github.com/pasch13/pyMensa" }, "release_url": "https://pypi.org/project/pyMensa/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A python package for fetching mensa menus at ETH and UNI Z\u00fcrich", "version": "1.0.1" }, "last_serial": 4788757, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "29886fb87102c68a0e5fac329ff71de1", "sha256": "a65f3c0e555c93872ff967ff29cd084ae97250356c0a910e8d42556add6f8328" }, "downloads": -1, "filename": "pyMensa-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "29886fb87102c68a0e5fac329ff71de1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6701, "upload_time": "2019-02-06T22:25:59", "url": "https://files.pythonhosted.org/packages/10/c1/deba8e02b96cd224d7e471837a0e9a6fc28f77a1368f9f17d7d61159ceaa/pyMensa-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bba95db49dd386183c2cfdf984fa62df", "sha256": "5796bd71c76f37667700b2773c4982f0f6f8f066e75ae2731296345dd965f317" }, "downloads": -1, "filename": "pyMensa-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bba95db49dd386183c2cfdf984fa62df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5664, "upload_time": "2019-02-06T22:26:01", "url": "https://files.pythonhosted.org/packages/d4/39/a22ed375e5753ef06ca41579c88d35ff5932b21f061901ae41adc4be421e/pyMensa-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "0b590fc78da6fac9f8b280cb39065012", "sha256": "0df3632cc9c25f3922792d06e5f3601a705a006503a299110036b1453c4d4748" }, "downloads": -1, "filename": "pyMensa-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0b590fc78da6fac9f8b280cb39065012", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6708, "upload_time": "2019-02-06T22:32:16", "url": "https://files.pythonhosted.org/packages/d8/91/b365a2a9fa21ea927f31985be0a26a6c41ee6ff6890d98ff21ea3a0d3b67/pyMensa-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ced4f49475c40f83f0603446616ef525", "sha256": "9953b61c9caccc42095c2f7350b2d567060d9c57a6cf10f3bf744a451955d015" }, "downloads": -1, "filename": "pyMensa-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ced4f49475c40f83f0603446616ef525", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5675, "upload_time": "2019-02-06T22:32:19", "url": "https://files.pythonhosted.org/packages/f2/7e/34159584f3c595566d97bd6bc03765ad0047964f683aac1faed50236ce9e/pyMensa-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b590fc78da6fac9f8b280cb39065012", "sha256": "0df3632cc9c25f3922792d06e5f3601a705a006503a299110036b1453c4d4748" }, "downloads": -1, "filename": "pyMensa-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0b590fc78da6fac9f8b280cb39065012", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6708, "upload_time": "2019-02-06T22:32:16", "url": "https://files.pythonhosted.org/packages/d8/91/b365a2a9fa21ea927f31985be0a26a6c41ee6ff6890d98ff21ea3a0d3b67/pyMensa-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ced4f49475c40f83f0603446616ef525", "sha256": "9953b61c9caccc42095c2f7350b2d567060d9c57a6cf10f3bf744a451955d015" }, "downloads": -1, "filename": "pyMensa-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ced4f49475c40f83f0603446616ef525", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5675, "upload_time": "2019-02-06T22:32:19", "url": "https://files.pythonhosted.org/packages/f2/7e/34159584f3c595566d97bd6bc03765ad0047964f683aac1faed50236ce9e/pyMensa-1.0.1.tar.gz" } ] }