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
Metadata
Release files for komida 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| komida-0.0.4.tar.gz | 7.5 kB | Without provenance | Details for komida-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| komida-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for komida-0.0.4-py3-none-any.whl |
Total release size: 12.8 kB
Release files / komida-0.0.4.tar.gz
| Download URL | komida-0.0.4.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cfbf391d7e6f6188dad8a8c0dbd321e9f4a30d296cf14fe2a7487b713d53106
|
|
BLAKE2b-256 checksum How to use checksums |
6b6c8f697779b3e56441de229556e9ed3a3a12ccdf639981c39c761501dff0bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / komida-0.0.4-py3-none-any.whl
| Download URL | komida-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f4d9d4c144d9d5773c10a2f606db642536abdc72fc3adf129cf9b5dae6ca59e
|
|
BLAKE2b-256 checksum How to use checksums |
e99169f633f592b2bc3aa909fe3cbeaf621c4750da55aff6a0a5fd64985b6e56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Security for komida 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.