Bring! web api for Python
Project description
Bring Python API
This is an unofficial python API for Bring! the shopping list service, based on their webapi. Some endpoints might be missing, this is solely based on traffic capture while using the web app.
API doc
You'll find the API documentation on this page: https://psychokiller1888.github.io/bring-api/
Please note that sme endpoints might be missing
Insomnia repository
Import the repository in your Insomnia app: https://github.com/Psychokiller1888/bring-api/tree/master
Usage
- Import the package in your project
- Create a Bring instance by passing your login and password to use the API:
from BringPythonApi.Bring import Bring
try:
bring = Bring(email='foo@bar.com', password='foobar')
except Exception as e:
print(f'Error logging in: {e}')
else:
# Add an item to your default list
bring.purchase(item='Milk', detail='3 liters')
# Remove 1 cat food from your default list
bring.remove(item='Cat food', detail=1)
# Empty your list called "My work list". If no name provided, defaults to you default list
bring.emptyPurchaseList(listUuid=bring.user.getList(name='My work list'))
# Change the default list language
bring.changeUserListLanguage(languageCode='en-US')
# Change the account password
bring.changeUserPassword(newPassword='myNewPassword')
# Get stats for Cat food
bring.getItemStatistic(itemName='Cat food')
# Get profile picture
bring.getUserProfilePicture()
# Add item to recent list
bring.addToRecentItems(item='Milk', detail='2 liters')
# Get my work shopping list
bring.getShoppingList(listUuid=bring.user.getList(name='Work list'))
# Move cucumber to another category
bring.changeItemCategory(newCategory='Eigene Artikel')
# Create a new "Bauhaus" list
bring.createNewList(listName='Bauhaus')
# Add power drill to Bauhaus shopping list
bring.purchase(
item='Power drill',
detail='With bits',
listUuid=bring.user.getList(name='Bauhaus')
)
# Create a new "Aldi" list
bring.createNewList(listName='Aldi')
# Add rice to Aldi's list
bring.purchase(
item='Rice (1kg)',
detail=2,
listUuid=bring.user.getList(name='Aldi')
)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bring-python-api-1.0.2.tar.gz.
File metadata
- Download URL: bring-python-api-1.0.2.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87e978f674d21da101ea509aadc1bcd0330ba7e157e0daf72e862cb3f0bff5ee
|
|
| MD5 |
c3c5f8739dd29b2e7307e28821b6f6f1
|
|
| BLAKE2b-256 |
5b810e18774ef322c24508a7a9f37876ee11d5c6f2321c1bd3c45cfc85f9a819
|
File details
Details for the file bring_python_api-1.0.2-py3-none-any.whl.
File metadata
- Download URL: bring_python_api-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c57cd4ea54af9946f8c7418f2398739ae56c47c00dc2f75070526294ca61cb14
|
|
| MD5 |
6b1d02d09bf77bc51adf3a1de2b84eb5
|
|
| BLAKE2b-256 |
80e3d1f0ad2c85d5ba6876f79a1cb669a220646d840c69073e9e0696bca143df
|