corneyl / python-picnic-api

Unofficial Python wrapper for the Picnic API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python-Picnic-API

Buy me a coffee

Unofficial Python wrapper for the Picnic API. While not all API methods have been implemented yet, you'll find most of what you need to build a working application are available.

This library is not affiliated with Picnic and retrieves data from the endpoints of the mobile application. Use at your own risk.

Getting started

The easiest way to install is directly from pip:

$ pip install python-picnic-api

Usage

I'll go over a few common operations here you'll most likely use in applications. To login:

The country_code parameter defaults to NL, but you have to change it if you live in a different country than the Netherlands (Germany: DE, Belgium: BE). You can also store your credentials by setting the store value to true, this will store your credentials and country_code in /config/app.yaml.

Searching for a product

Check cart

Manipulating your cart

All of these methods will return the shopping cart.

See upcoming deliveries

See available delivery slots

About

Unofficial Python wrapper for the Picnic API.

License:Apache License 2.0


Languages

Language:Python 98.5%Language:Shell 1.5%