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')
)
Metadata
Release files for bring-python-api 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bring-python-api-1.0.2.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bring_python_api-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.0 kB
Release files / bring-python-api-1.0.2.tar.gz
| Download URL | bring-python-api-1.0.2.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87e978f674d21da101ea509aadc1bcd0330ba7e157e0daf72e862cb3f0bff5ee
|
|
BLAKE2b-256 checksum How to use checksums |
5b810e18774ef322c24508a7a9f37876ee11d5c6f2321c1bd3c45cfc85f9a819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / bring_python_api-1.0.2-py3-none-any.whl
| Download URL | bring_python_api-1.0.2-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c57cd4ea54af9946f8c7418f2398739ae56c47c00dc2f75070526294ca61cb14
|
|
BLAKE2b-256 checksum How to use checksums |
80e3d1f0ad2c85d5ba6876f79a1cb669a220646d840c69073e9e0696bca143df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|