Reference¶
Cookidoo API package.
Cookidoo
¶
Unofficial Cookidoo API interface.
Init function for Cookidoo API.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
ClientSession
|
The client session for aiohttp requests.
Must use a |
required |
cfg
|
CookidooConfig
|
Cookidoo config |
CookidooConfig()
|
Source code in cookidoo_api/cookidoo.py
localization
property
¶
Localization.
api_endpoint
property
¶
Get the api endpoint.
Returns the cookidoo domain derived from the localization URL,
e.g. https://cookidoo.ch or https://cookidoo.co.uk.
login
async
¶
Perform browser-based OAuth2 login.
Follows the same redirect chain as the Cookidoo web app:
1. Initiate login at cookidoo.{tld}/profile/{lang}/login
2. Follow redirects through OAuth2/PKCE to the CIAM login page
3. POST credentials to the CIAM login service
4. Follow callback redirects to capture session cookies
After login, the session's cookie jar contains the authentication cookies and all subsequent API calls are authenticated automatically.
Raises:
| Type | Description |
|---|---|
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the login page cannot be parsed. |
CookidooAuthException
|
If the login fails due to invalid credentials. |
Source code in cookidoo_api/cookidoo.py
save_cookies
¶
Save session cookies to a file for later reuse.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | Path
|
Path to the file where cookies will be saved. |
required |
Source code in cookidoo_api/cookidoo.py
load_cookies
¶
Load session cookies from a file to restore a previous session.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | Path
|
Path to the file containing saved cookies. |
required |
Raises:
| Type | Description |
|---|---|
CookidooConfigException
|
If the cookie file cannot be read or parsed. |
Source code in cookidoo_api/cookidoo.py
get_user_info
async
¶
Get user info.
Returns:
| Type | Description |
|---|---|
CookidooUserInfo
|
The user info |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_active_subscription
async
¶
Get active subscription if any.
Returns:
| Type | Description |
|---|---|
CookidooSubscription
|
The active subscription |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_recipe_details
async
¶
Get recipe details.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
The id of the recipe |
required |
Returns:
| Type | Description |
|---|---|
CookidooShoppingRecipeDetails
|
The recipe details |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
search_recipes
async
¶
Search recipes in Cookidoo (GET).
Uses the same API base as the rest of the client (api_endpoint): {api_endpoint}/search/{locale}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str | None
|
Optional search query (e.g. "chicken", "pasta"). |
None
|
locale
|
str | None
|
Locale for the search path (e.g. "es", "en", "de"). Defaults to the first part of the configured language (e.g. "de-CH" -> "de"). |
None
|
accessories
|
str | list[str] | None
|
Optional comma-separated accessory filters (e.g. "includingFriend,includingBladeCover,includingBladeCoverWithPeeler,includingCutter,includingSensor"). |
None
|
languages
|
str | list[str] | None
|
Optional comma-separated language codes (e.g. "en,es"). |
None
|
categories
|
str | list[str] | None
|
Optional comma-separated category IDs. |
None
|
countries
|
str | list[str] | None
|
Optional comma-separated country codes (e.g. "ar"). |
None
|
ingredients
|
str | list[str] | None
|
Optional comma-separated ingredients. |
None
|
exclude_ingredients
|
str | list[str] | None
|
Optional comma-separated excluded ingredients. |
None
|
tags
|
str | list[str] | None
|
Optional comma-separated tags. |
None
|
ratings
|
str | list[str] | None
|
Optional comma-separated ratings (e.g. "5,4"). |
None
|
difficulty
|
str | None
|
Optional difficulty (e.g. "easy", "medium", "hard"). |
None
|
preparation_time
|
int | None
|
Optional preparation time in seconds. |
None
|
total_time
|
int | None
|
Optional total time in seconds. |
None
|
portions
|
int | None
|
Optional portions count. |
None
|
page
|
int | None
|
Optional page number (API-dependent, often 0- or 1-based). |
None
|
page_size
|
int | None
|
Optional page size (API-dependent; common keys: pageSize). |
None
|
tmv
|
ThermomixMachineType | str | list[ThermomixMachineType | str] | None
|
Optional Thermomix machine version. Use |
None
|
Returns:
| Type | Description |
|---|---|
CookidooSearchResult
|
Search result with recipes and total count. |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore. |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 | |
get_custom_recipe
async
¶
Get custom recipe.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
The id of the custom recipe |
required |
Returns:
| Type | Description |
|---|---|
CookidooCustomRecipe
|
The custom recipe |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
list_custom_recipes
async
¶
List custom recipes.
Source code in cookidoo_api/cookidoo.py
add_custom_recipe_from
async
¶
Add custom recipe.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
recipeId
|
str
|
The base recipe to copy |
required |
servingSize
|
int
|
The serving size of the custom recipe |
required |
Returns:
| Type | Description |
|---|---|
CookidooCustomRecipe
|
The added custom recipe |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_custom_recipe
async
¶
Remove custom recipe.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_recipe_id
|
str
|
The custom recipe id to remove |
required |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_shopping_list_recipes
async
¶
Get recipes.
Returns:
| Type | Description |
|---|---|
list[CookidooShoppingRecipe]
|
The list of the recipes |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_ingredient_items
async
¶
Get ingredient items.
Returns:
| Type | Description |
|---|---|
list[CookidooIngredientItem]
|
The list of the ingredient items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_ingredient_items_for_recipes
async
¶
Add ingredient items for recipes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
recipe_ids
|
list[str]
|
The recipe ids for the ingredient items to add to the shopping list |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooIngredientItem]
|
The list of the added ingredient items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_ingredient_items_for_recipes
async
¶
Remove ingredient items for recipes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
recipe_ids
|
list[str]
|
The recipe ids for the ingredient items to remove to the shopping list |
required |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
edit_ingredient_items_ownership
async
¶
Edit ownership ingredient items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ingredient_items
|
list[CookidooIngredientItem]
|
The ingredient items to change the the |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooIngredientItem]
|
The list of the edited ingredient items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_ingredient_items_for_custom_recipes
async
¶
Add ingredient items for custom recipes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
recipe_ids
|
list[str]
|
The recipe ids for the ingredient items to add to the shopping list |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooIngredientItem]
|
The list of the added ingredient items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_ingredient_items_for_custom_recipes
async
¶
Remove ingredient items for custom recipes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
recipe_ids
|
list[str]
|
The custom recipe ids for the ingredient items to remove to the shopping list |
required |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_additional_items
async
¶
Get additional items.
Returns:
| Type | Description |
|---|---|
list[CookidooAdditionalItem]
|
The list of the additional items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_additional_items
async
¶
Create additional items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
additional_item_names
|
list[str]
|
The additional item names to create, only the label can be set, as the default state |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooAdditionalItem]
|
The list of the added additional items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
edit_additional_items
async
¶
Edit additional items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
additional_items
|
list[CookidooAdditionalItem]
|
The additional items to change the the |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooAdditionalItem]
|
The list of the edited additional items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
edit_additional_items_ownership
async
¶
Edit ownership additional items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
additional_items
|
list[CookidooAdditionalItem]
|
The additional items to change the the |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooAdditionalItem]
|
The list of the edited additional items |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_additional_items
async
¶
Remove additional items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
additional_item_ids
|
list[str]
|
The additional item ids to remove |
required |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
clear_shopping_list
async
¶
Remove all additional items, ingredients and recipes.
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
count_managed_collections
async
¶
Get managed collections.
Returns:
| Type | Description |
|---|---|
tuple[int, int]
|
The number of managed collections and the number of pages |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_managed_collections
async
¶
Get managed collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page
|
int
|
The page of the managed collections |
0
|
Returns:
| Type | Description |
|---|---|
list[CookidooCollection]
|
The list of the managed collections |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_managed_collection
async
¶
Add managed collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
managed_collection_id
|
str
|
The managed collection id to add |
required |
Returns:
| Type | Description |
|---|---|
CookidooCollection
|
The added managed collection |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_managed_collection
async
¶
Remove managed collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
managed_collection_id
|
str
|
The managed collection id to remove |
required |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
count_custom_collections
async
¶
Get custom collections.
Returns:
| Type | Description |
|---|---|
tuple[int, int]
|
The number of custom collections and the number of pages |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_custom_collections
async
¶
Get custom collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page
|
int
|
The page of the custom collections |
0
|
Returns:
| Type | Description |
|---|---|
list[CookidooCollection]
|
The list of the custom collections |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_custom_collection
async
¶
Add custom collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_collection_name
|
str
|
The custom collection name to add |
required |
Returns:
| Type | Description |
|---|---|
CookidooCollection
|
The added custom collection |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_custom_collection
async
¶
Remove custom collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_collection_id
|
str
|
The custom collection id to remove |
required |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_recipes_to_custom_collection
async
¶
Add recipes to a custom collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_collection_id
|
str
|
The custom collection to add the recipes to |
required |
recipe_ids
|
list[str]
|
The recipe ids to add to a custom collection |
required |
Returns:
| Type | Description |
|---|---|
CookidooCollection
|
The changed custom collection |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_recipe_from_custom_collection
async
¶
Remove recipe from a custom collections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_collection_id
|
str
|
The custom collection to remove the recipe from |
required |
recipe_id
|
str
|
The recipe id to remove from a custom collection |
required |
Returns:
| Type | Description |
|---|---|
CookidooCollection
|
The changed custom collection |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
get_recipes_in_calendar_week
async
¶
Get recipes in a calendar week.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
day
|
date
|
The date specifying the calendar week |
required |
Returns:
| Type | Description |
|---|---|
list[CookidooCalendarDay]
|
The list of the calendar days with recipes |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_recipes_to_calendar
async
¶
Add recipes to a calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
day
|
date
|
The date to add the recipes to in the calendar |
required |
recipe_ids
|
list[str]
|
The recipe ids to add to the calendar |
required |
Returns:
| Type | Description |
|---|---|
CookidooCalendarDay
|
The changed calendar day |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_recipe_from_calendar
async
¶
Remove recipe from calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
day
|
date
|
The date to remove the recipe from in the calendar |
required |
recipe_id
|
str
|
The recipe id to remove from the calendar |
required |
Returns:
| Type | Description |
|---|---|
CookidooCalendarDay
|
The changed calendar day |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
add_custom_recipes_to_calendar
async
¶
Add custom recipes to a calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
day
|
date
|
The date to add the custom recipes to in the calendar |
required |
recipe_ids
|
list[str]
|
The recipe ids to add to the calendar |
required |
Returns:
| Type | Description |
|---|---|
CookidooCalendarDay
|
The changed calendar day |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
remove_custom_recipe_from_calendar
async
¶
Remove custom recipe from calendar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
day
|
date
|
The date to remove the custom recipe from in the calendar |
required |
recipe_id
|
str
|
The custom recipe id to remove from the calendar |
required |
Returns:
| Type | Description |
|---|---|
CookidooCalendarDay
|
The changed calendar day |
Raises:
| Type | Description |
|---|---|
CookidooAuthException
|
When the access token is not valid anymore |
CookidooRequestException
|
If the request fails. |
CookidooParseException
|
If the parsing of the request response fails. |
Source code in cookidoo_api/cookidoo.py
CookidooAuthException
¶
Bases: CookidooException
When an authentication error is encountered.
CookidooConfigException
¶
Bases: CookidooException
When the config is invalid.
CookidooParseException
¶
Bases: CookidooException
When data could not be parsed.
CookidooRequestException
¶
Bases: CookidooException
When a request returns an error.
CookidooResponseException
¶
Bases: CookidooException
When a response could not be parsed.
CookidooUnavailableException
¶
Bases: CookidooException
When the network or server is not available.
CookidooAdditionalItem
dataclass
¶
CookidooCategory
dataclass
¶
CookidooChapter
dataclass
¶
Cookidoo chapter type.
Attributes:
| Name | Type | Description |
|---|---|---|
title |
The title of the chapter |
|
recipes |
list[CookidooChapterRecipe]
|
The recipes in the chapter |
CookidooChapterRecipe
dataclass
¶
CookidooCollection
dataclass
¶
Cookidoo collection type.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
The id of the collection |
title |
The title of the collection |
|
description |
str | None
|
The description of the collection |
chapters |
list[CookidooChapter]
|
The recipes in the collection |
CookidooConfig
dataclass
¶
Cookidoo config type.
Attributes:
| Name | Type | Description |
|---|---|---|
localization |
CookidooLocalizationConfig
|
The localization for the api including country, language and url |
email |
str
|
The email to login |
password |
str
|
The password to login |
CookidooIngredient
dataclass
¶
CookidooIngredientItem
dataclass
¶
Bases: CookidooItem
Cookidoo ingredient item type.
Attributes:
| Name | Type | Description |
|---|---|---|
description |
str
|
The description of the item, including the quantity or other helpful information |
CookidooItem
dataclass
¶
CookidooLocalizationConfig
dataclass
¶
A localization config class.
CookidooRecipeCollection
dataclass
¶
CookidooSearchRecipeHit
dataclass
¶
CookidooSearchResult
dataclass
¶
Cookidoo search result type.
Attributes:
| Name | Type | Description |
|---|---|---|
recipes |
list[CookidooSearchRecipeHit]
|
List of recipe hits matching the search |
total |
int
|
Total number of matching recipes |
CookidooShoppingRecipe
dataclass
¶
Cookidoo shopping recipe type.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
The id of the recipe |
name |
str
|
The label of the recipe |
ingredients |
list[CookidooIngredient]
|
The ingredients of the recipe |
thumbnail |
str | None
|
The thumbnail image URL (small preview) |
image |
str | None
|
The full-size image URL |
url |
str
|
The URL of the recipe |
CookidooShoppingRecipeDetails
dataclass
¶
Bases: CookidooShoppingRecipe
Cookidoo recipe details type.
Attributes:
| Name | Type | Description |
|---|---|---|
difficulty |
str
|
The difficulty of the recipe |
notes |
list[str]
|
Hints and additional information about the recipe |
categories |
list[CookidooCategory]
|
The categories of the recipe |
collections |
list[CookidooRecipeCollection]
|
The collections of the recipe |
utensils |
list[str]
|
The utensils needed for the recipe |
serving_size |
int
|
The service size of the recipe |
active_time |
int
|
The time needed preparing the recipe [in seconds] |
total_time |
int
|
The time needed until the recipe is ready [in seconds] |
nutrition_groups |
list[CookidooNutritionGroup]
|
The nutrition groups of the recipe (from API, may be empty) |
CookidooSubscription
dataclass
¶
A subscription class.
CookidooUserInfo
dataclass
¶
A user info class.
get_country_options
async
¶
get_language_options
async
¶
get_localization_options
async
¶
Get a list of possible localization options.