Skip to main content

PyWolt is a Python library that provides an open API for interacting with the popular food delivery application Wolt.

Project description

PyWolt

PyWolt is a Python library that provides an open API for interacting with the popular food delivery application Wolt. It utilizes the native, internal Wolt web API and wraps it in a Pythonic interface.

Features

  • List Available Venues: Retrieve a list of available venues for a given set of coordinates.
  • Search Venues: Search for venues based on coordinates and a text query.
  • Search Food Items: Search for food items based on coordinates and a text query.
  • List Venue Menu: Retrieve the menu of a specific venue.
  • List Cities: Retrieve a list of cities and their coordinates using Wolt's buit-in api Upcoming Features:
  • Authentication: Authenticate to get access to the user's basket and make orders.

Usage Examples

Get Venues

from pywolt.api import Wolt
import asyncio

# Initialize Wolt instance with latitude and longitude
wolt = Wolt(lat="35.0844", lon="106.6504")

# Get venues available at specified coordinates
venues = asyncio.run(wolt.get_venues())

# Get details of a specific venue (e.g., Los Pollos Hermanos)
los_pollos = venues[0]

print(los_pollos.venue.name)
Los Pollos Hermanos

Get the menu of the venue

los_pollos_menu = asyncio.run(wolt.get_menu(los_pollos.venue.slug))

Search Venues

los_pollos_menu = asyncio.run(wolt.search_venues("pizza"))

Search Items

los_pollos_menu = asyncio.run(wolt.search_items("pizza"))

Get Cities

los_pollos_menu = asyncio.run(wolt.get_cities())

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA) 4.0 International License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywolt-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

pywolt-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pywolt-0.1.0.tar.gz.

File metadata

  • Download URL: pywolt-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pywolt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d93e52f0ddd71f4527d804621df092fe46a20d1dc6dc9bc48cdca77581b62ca
MD5 371e02f1bb4cf592bb5fa92cd235c0fa
BLAKE2b-256 60b0f2e3e1af8809509f429b4cace0b890c32cc0e4966cddcc15bd7d227a2234

See more details on using hashes here.

File details

Details for the file pywolt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pywolt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pywolt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78618c9ae17beb2e1f9d286a9645d5f3b68738d0b302f1af4a17b4588c864b63
MD5 5ec3fc19be131f224f9571f06d9b6963
BLAKE2b-256 dfcde0c9f417c970c1dd82823ada156050dca2b7b766d31cacb4ec65d2b41469

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page