AsyncIO Library for Communicating with Paprika backend servers.
Project description
Pyprika
Python Package to talk to Paprika's backend server.
Features
- Configurable periodic retrieval of data
- Recipes, Categories, Meals, Menus are all linked via relational id
- Ability to filter recipes that include categories, exclude categories, total cook/prep duration, recipe difficulty and recipe names.
Usage
Initialize
Initialize Pyprika
with your username and password from your mobile app. If you so choose, you can also tell it to auto fetch after a certain delay:
pyprika = Pyprika(username, password)
pyprika = Pyprika(username, password, fetch_delay=timedelta(hours=2), auto_fetch=True)
Get all data
recipe_book = pyprika.get_all()
Filter recipes
recipes = pyprika.get_recipes(
categories=None,
not_categories=None,
difficulty=None,
duration=None,
name_like=None,
name_not_like=None
)
NOTE All arguments here are optional. Passing no arguments will return every recipe.
Enable/disable auto fetch
pyprika.set_auto_fetch(True) #Enable auto-fetch after delay
pyprika.set_auto_fetch(False) #Disable auto-fetch immediately
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
pyprika-client-0.2.1.tar.gz
(13.0 kB
view details)
Built Distribution
File details
Details for the file pyprika-client-0.2.1.tar.gz
.
File metadata
- Download URL: pyprika-client-0.2.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099442b3843c198e53a248fd1765131563d439855dc449884a1d9227c0b173ee |
|
MD5 | 90a3b49112859551c42ace106c8d0922 |
|
BLAKE2b-256 | 68de2eadca8d090843fe3a80cb7d12a09c3abc10c1204ec210f7d4b8b943acc4 |
File details
Details for the file pyprika_client-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pyprika_client-0.2.1-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c707ec63178f8da0b8a2438c44a2e27b7b8ea9ccbfd53652f7fe4d55d2b3bb |
|
MD5 | 862eb3a20affb6c9ad23e1c81b237c2b |
|
BLAKE2b-256 | 6c2ff9c52d6f9c4fed2e71e3e09e1b3d9ca3b6cb218846c61df23cc9c0a91a2f |