A simple way to query UC San Diego's HDH dining halls
Project description
sdmenu
sdmenu is a simple way to query UC San Diego's HDH dining halls.
Installation
$ pip install sdmenu
Successfully installed sdmenu-1.0.0
Example
This example is based off the menu for 64 Degrees, which you can find here.
>>> from sdmenu import menu
>>> my_menu = menu()
<menu {'64 Degrees', 'Cafe Ventanas', 'Canyon Vista', ...}>
>>> items = my_menu.get('64 Degrees')
[<menu_item 'Avocado Toast'>, <menu_item 'Bacon Bobcat Sandwich'>, ...]
>>> items[0].price
3.5
>>> my_menu.has('64 Degrees', 'Hibachi Chicken')
True
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
sdmenu-1.0.0.tar.gz
(4.1 kB
view details)