Skip to main content

Access sodexo api to retrieve menu for desired location

Project description

Mines Market Package


This 'mines_market' python package allows users to see menu options for any sodexo sponsored dining option. The package was made for Mines Market located at the Colorado School of Mines, but has the ability to work for other locations through a unique location id assigned to each dining option.

Requirements


This module requires the following modules:

  • [requests]

Installation


Install this package as you normally would via 'pip install mines_market'

Usage


NOTE: Package requires the use of an API key for sodexo's bite API

Users can use this package via two main functions:

1. fetch_location_ids(location, apiKey, url)
Parameters
- location: Location name of the place you are trying to access. For Mines Market, this is 'mines'
- apiKey: Use the API key given once you register for Sodexo's Bite API
- url: Link to request URL of sodexo's bite API that gets location ids. Use default argument for link
Returns
- 'str': A string containing the location id
2. get_parsed_menu(apiKey, locationId, date, url)
Parameters
- apiKey: Same parameter as used in fetch_location_ids
- locationId: Location id of chosen place. Use fetch_location_ids to get id
- date: Specify which date's menu you are trying to access. Default argument given as today
- url: Link to request URL of sodexo's bite API that gets menu. Use default argument for link
Returns
-  'dict': Full menu for given date

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

mines_market-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file mines_market-0.1.0.tar.gz.

File metadata

  • Download URL: mines_market-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for mines_market-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a92a08a3d7adbefce9d3d50927e5a64394fb7b9cb5b2a6e2310e3d92ba6fae69
MD5 a2d2a7b1788087a22d4c1437e6b63d55
BLAKE2b-256 a6c054663b8562cbf72061db627d0569b2b6124a5bf08df0228fc216e2d327b8

See more details on using hashes here.

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