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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page