Skip to main content

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.

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

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

sdmenu-1.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

sdmenu-1.0.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page