Package to manage your eAsistent meals automatically.
Project description
eAwaiter
eAwaiter is a Python package that can change your eAsistent meals automatically.
Description
eAwaiter is supposed to help with changing meals in eAsistent. Meals are "changable" only 7 days in advance. Therefore, waiter's service looks for any disliked foods and favourite foods and changes meals few weeks in future. I can also help manually changing meals and more.
eAwaiter's service (and more) is used in eAmenu android app.
Install & Run
If you are changing the code or using it locally, you can easily install and run it with the following commands:
- Clone the project
git clone https://github.com/5KRC1/eAwaiter && cd eAmenu
- Setup Python venv
python -m venv env && source env/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run the example provided under "Usage"
python examples/example.py
Usage
install with pip
pip install git+https://github.com/5KRC1/eAwaiter.git
examples:
- service
from waiter.waiter import Waiter
# Init Waiter
username = "__your_username__"
password = "__your_password__"
default_menu = "1"
preferred_menu = "2"
favourite_foods = ["pica", "špageti"]
disliked_foods = ["Cheder", "hrenovko", "osličev", "oslič"]
overwrite = False
waiter = Waiter(
username=username,
password=password,
default_menu=default_menu,
favourite_foods=favourite_foods,
disliked_foods=disliked_foods,
preferred_menu=preferred_menu,
orevwrite_unchangable=overwrite
)
# Run service
waiter.service()
- get meals
from waiter.waiter import Waiter
# Init Waiter
username = "__your_username__"
password = "__your_password__"
waiter = Waiter(
username=username,
password=password
)
# Get meals
meals = waiter.get_meals()
- change a meal
from datetime import datetime
from waiter.waiter import Waiter
# Init Waiter
username = "__your_username__"
password = "__your_password__"
waiter = Waiter(
username=username,
password=password
)
action = "prijava"
meal_id = "__meal_id__"
date = datetime(2023, 3, 29) # (year, month, day)
# Change a meal
changed = waiter.prijava_odjava(
action=action,
meal_id=meal_id,
date=date
)
For more information check out the documentation here.
Contribute
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
File details
Details for the file eAwaiter-0.0.3.tar.gz
.
File metadata
- Download URL: eAwaiter-0.0.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a473ada90bc1facb730fd4b12013d3a009696709b9e585149919b5244198c1e |
|
MD5 | 959da1703ea30cea44f4f1c9bc6c2010 |
|
BLAKE2b-256 | 1c32901cf6e60a30cb86be62cfe46fe03f4a6adb59e8805b281e95ee3d1d0e6e |
File details
Details for the file eAwaiter-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: eAwaiter-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.3 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 | 2339dc179c31618b83314256fc40614f56f201ec26780c77c25740015d4115d5 |
|
MD5 | 411822deceaff0b79d99f332c533329e |
|
BLAKE2b-256 | 3c5c08d158b2981d8ddd113739282bfa5d5434f445bd25347d73270cc130f423 |