komida


Namekomida JSON
Version 0.0.4 PyPI version JSON
download
home_pageNone
SummaryKomida API.
upload_time2024-10-01 00:08:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords komida api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Komida API (komida)

Returns structured data from the [komida calendar][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

```python
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

[calendar]: https://app.growzer.be/komida-calendar


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "komida",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "komida, api",
    "author": null,
    "author_email": "Arkadiusz Micha\u0142 Ry\u015b <Arkadiusz.Michal.Rys@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6b/6c/8f697779b3e56441de229556e9ed3a3a12ccdf639981c39c761501dff0bc/komida-0.0.4.tar.gz",
    "platform": null,
    "description": "# Komida API (komida)\n\nReturns structured data from the [komida calendar][calendar].\n\n## Getting Started\n\nStart by installing the dependencies using pip.\nOne way of doing this is `pip install -r requirements.txt`.\nThis will install **all** dependencies, including those used for development.\nTo only install the minimum set of requirements and the package use `pip install -e .`.\n\nYou can also install the latest release with `pip install kapi`.\n\n## Example\n\n```python\nfrom datetime import datetime\nfrom komida import KomidaAPI, Request, Location, Customer\n\napi = KomidaAPI()\nmy_request = Request(Location.MIDDELHEIM, Customer.ANTWERPEN, datetime(2024, 10, 1))\nmenu = api.get_menu(my_request)\nprint(len(menu.dishes))\nfor dish in menu.dishes:\n    for ingredient in dish.ingredients:\n        print(ingredient)\nprint(menu.contains_dish(\"chicken\"))\n```\n\n## Improvements\n\n- Sanitize the data\n- Fix allergens\n\n[calendar]: https://app.growzer.be/komida-calendar\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Komida API.",
    "version": "0.0.4",
    "project_urls": {
        "source": "https://git.rys.one/arrys/komida-api"
    },
    "split_keywords": [
        "komida",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e99169f633f592b2bc3aa909fe3cbeaf621c4750da55aff6a0a5fd64985b6e56",
                "md5": "6c94232cb49e9962eee83c5d77b141b8",
                "sha256": "8f4d9d4c144d9d5773c10a2f606db642536abdc72fc3adf129cf9b5dae6ca59e"
            },
            "downloads": -1,
            "filename": "komida-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c94232cb49e9962eee83c5d77b141b8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 5306,
            "upload_time": "2024-10-01T00:08:49",
            "upload_time_iso_8601": "2024-10-01T00:08:49.161464Z",
            "url": "https://files.pythonhosted.org/packages/e9/91/69f633f592b2bc3aa909fe3cbeaf621c4750da55aff6a0a5fd64985b6e56/komida-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b6c8f697779b3e56441de229556e9ed3a3a12ccdf639981c39c761501dff0bc",
                "md5": "a1183bccd70f78f2664ed9d367bb1cc9",
                "sha256": "9cfbf391d7e6f6188dad8a8c0dbd321e9f4a30d296cf14fe2a7487b713d53106"
            },
            "downloads": -1,
            "filename": "komida-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "a1183bccd70f78f2664ed9d367bb1cc9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 7509,
            "upload_time": "2024-10-01T00:08:50",
            "upload_time_iso_8601": "2024-10-01T00:08:50.301587Z",
            "url": "https://files.pythonhosted.org/packages/6b/6c/8f697779b3e56441de229556e9ed3a3a12ccdf639981c39c761501dff0bc/komida-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-01 00:08:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "komida"
}
        
Elapsed time: 0.35871s