🍔 What to eat? 🍕
CLI tool to query Wolt API in your location!
Why to use what-to-eat? How many times have you not known what to order for dinner or lunch? What-to-eat will help you querying and filtering restaurants available in your location via Wolt app! 🍔
Example usage:
✨ Features
- 🍔 Query restaurants in your location
- 🍕 Filter restaurants by name, cuisine, price, rating, delivery time, etc.
- 🍗 Display restaurant details
- 🍟 Random restaurant draw
🛠️ Installation
What to eat is compatible with Python 3.12+ and runs on Linux, macOS and Windows. The latest releases with binary wheels are available from pip. Before you install What to eat and its dependencies, make sure that your pip, setuptools and wheel are up to date.
You can install what-to-eat using pip:
pip install what-to-eat
💬 Available commands
There are currently 3 commands available, one of which is used to configure the tool: configure, ls, random:
$ what-to-eat --help
Usage: what-to-eat [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version -v │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ configure Create configuration file to your orders │
│ ls List restaurants queried from Wolt API. │
│ random Finds random restaurant via Wolt API │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
You can find examples of using these commands in the section below.
✨ Examples
Configure your tool:$ what-to-eat configure
List all available restaurants in your localization:
$ what-to-eat ls
Sort restaurants by rating and limit results to 5 records:
$ what-to-eat ls --sort rating --ordering desc --limit 5
┏━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓
┃ No. ┃ Restaurant ┃ Address ┃ Estimate time ┃ Delivery cost ┃ Rating ┃ Price ┃ Tags ┃
┡━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ Mikropiekarnia Pochlebstwo │ Romanowicza 5/LU7b │ 25 - 35 min │ (No delivery) │ 10.0 │ 💰💰 │ Bakery, Grocery │
│ 2 │ KruKam Kraków │ ul. Krakowska 35A │ 30 - 40 min │ (No delivery) │ 9.8 │ 💰💰 │ Grocery, Healthy │
│ 3 │ Piekarnia Mojego Taty │ ul. Meiselsa 6 │ 20 - 30 min │ (No delivery) │ 9.8 │ 💰 │ Bakery, Grocery │
│ 4 │ MARLIN - Fish & Chips - Smażalnie Rybne │ Krowoderskich Zuchów 21A │ 45 - 55 min │ (No delivery) │ 9.6 │ 💰💰 │ Fish, Mediterranean │
│ 5 │ Lody Ice Cream NOW - Stare Miasto II (K) │ This is a virtual venue │ 20 - 30 min │ (No delivery) │ 9.6 │ 💰💰 │ Ice cream │
└─────┴──────────────────────────────────────────┴──────────────────────────┴───────────────┴───────────────┴────────┴───────┴─────────────────────┘
🍿 Restaurants in Kraków via wolt 🍿
While using ls command you can also use option query to filter results by restaurant name, address or tags:
$ what-to-eat ls --query Pizza --limit 3
┏━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┓
┃ No. ┃ Restaurant ┃ Address ┃ Estimate time ┃ Delivery cost ┃ Rating ┃ Price ┃ Tags ┃
┡━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━┩
│ 1 │ Pizzeria Caprese Chillzone Młynówka │ Racławicka 21, │ 20 - 30 min │ (No delivery) │ 8.4 │ 💰💰 │ Italian, pizza │
│ 2 │ U Filipa │ Ul. Św. Filipa 25 │ 30 - 40 min │ (No delivery) │ 7.8 │ 💰 │ pizza │
│ 3 │ Baqaro - Rakowicka │ Rakowicka 11 │ 25 - 35 min │ (No delivery) │ - │ 💰💰 │ Italian, Pinsa, pizza │
└─────┴─────────────────────────────────────┴───────────────────┴───────────────┴───────────────┴────────┴───────┴───────────────────────┘
🍿 Restaurants in Kraków via wolt 🍿
By default your first profile is default one. But while listing restaurants you can change it using profile option:
$ what-to-eat ls --profile work
You can also display restaurant details by using ls command with restaurant name:
$ what-to-eat ls zapiecek
┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ 🍕 Zapiecek ┃ Kraków, Ul. Floriańska 20 🍕 ┃
┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Rating │ Amazing (9 / 20 reviews) │
│ Price │ 💰 │
│ Opening time │ 10:00 - 20:45 │
│ Website │ https://wolt.com/pl/pol/krakow/restaurant/zapiecek │
│ Phone │ +48 124221345 │
│ Estimates │ 30 minutes │
│ Payment Methods │ Card │
│ Description │ Kultowy bar kanapkowo - sałatkowy... │
│ Tags │ Sandwich, Salad │
└─────────────────┴────────────────────────────────────────────────────┘
However, perhaps the coolest options is to randomly select restaurants.
$ what-to-eat random
Note: The selection algorithm is based on the ranking and delivery time for a given restaurant.
You can also enter a tag based on which a restaurant will be randomly selected:
$ what-to-eat random --tag pizza
Random command supports technique option, which allows you to choose the algorithm used to select a restaurant. The default value is mix and it means that the restaurant will be selected based on the ranking and delivery time.
$ what-to-eat random --technique mix
You can select one of the following techniques:
mix- the restaurant will be selected based on the ranking and delivery time.rating- the restaurant will be selected based on the ranking.delivery_time- the restaurant will be selected based on the delivery time.random- the restaurant will be selected randomly.
📖 Documentation
| Documentation | Command | Options |
|---|---|---|
| 🚀 List all restaurants | what-to-eat ls |
query, profile, tag, sort, ordering, limit |
| 🎲 Random restaurant | what-to-eat random |
profile, tag, technique |
| 👤 Configure profile | what-to-eat config |
📚 License
This project is licensed under the terms of the MIT license.
Metadata
Release files for what-to-eat 1.1.1
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 |
|---|---|---|---|---|
| what_to_eat-1.1.1.tar.gz | 37.8 kB | Without provenance | Details for what_to_eat-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| what_to_eat-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for what_to_eat-1.1.1-py3-none-any.whl |
Total release size: 57.1 kB
Release files / what_to_eat-1.1.1.tar.gz
| Download URL | what_to_eat-1.1.1.tar.gz |
|---|---|
| Size | 37.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1663c290465cd61dc24e56b9fb2cbb4aac397c0f8873e62d4fd607dae72d8d89
|
|
BLAKE2b-256 checksum How to use checksums |
d1297c480c6612b815edd760c9dc6dd4064037d2be8efae91a407b4e8f41779e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
|
Release files / what_to_eat-1.1.1-py3-none-any.whl
| Download URL | what_to_eat-1.1.1-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ced4412c5131256ae336cffc279323328d8d0a7fbdac0dfebf399cd017bcacb6
|
|
BLAKE2b-256 checksum How to use checksums |
beb0c9b4191d6d8370f196253130f576b511e7338cb029901a1ce46c2dac4360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0
|
Security for what-to-eat 1.1.1
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.