Komida API.
Project description
Komida API (komida)
Returns structured data from the komida calendar.
Getting Started
Start by installing the dependencies using pip.
One way of doing this is pip install -r requirements.txt.
This will install all dependencies, including those used for development.
To only install the minimum set of requirements and the package use pip install -e ..
You can also install the latest release with pip install kapi.
Example
from datetime import datetime
from komida import KomidaAPI, Request, Location, Customer
api = KomidaAPI()
my_request = Request(Location.MIDDELHEIM, Customer.ANTWERPEN, datetime(2024, 10, 1))
menu = api.get_menu(my_request)
print(len(menu.dishes))
for dish in menu.dishes:
for ingredient in dish.ingredients:
print(ingredient)
print(menu.contains_dish("chicken"))
Improvements
- Sanitize the data
- Fix allergens
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file komida-0.0.4.tar.gz.
File metadata
- Download URL: komida-0.0.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cfbf391d7e6f6188dad8a8c0dbd321e9f4a30d296cf14fe2a7487b713d53106
|
|
| MD5 |
a1183bccd70f78f2664ed9d367bb1cc9
|
|
| BLAKE2b-256 |
6b6c8f697779b3e56441de229556e9ed3a3a12ccdf639981c39c761501dff0bc
|
File details
Details for the file komida-0.0.4-py3-none-any.whl.
File metadata
- Download URL: komida-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f4d9d4c144d9d5773c10a2f606db642536abdc72fc3adf129cf9b5dae6ca59e
|
|
| MD5 |
6c94232cb49e9962eee83c5d77b141b8
|
|
| BLAKE2b-256 |
e99169f633f592b2bc3aa909fe3cbeaf621c4750da55aff6a0a5fd64985b6e56
|