Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 805 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 805 Bytes

sdmenu

sdmenu is a simple way to query UC San Diego's HDH dining halls.

Code Style: Black

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