Unofficial python package to access Bring! shopping lists API.
Project description
Bring Shopping Lists API
An unofficial python package to access the Bring! shopping lists API.
This is a minimal python port of the node-bring-api by foxriver76. All credit goes to him for making this awesome API possible!
Disclaimer
The developers of this module are in no way endorsed by or affiliated with Bring! Labs AG, or any associated subsidiaries, logos or trademarks.
Installation
pip install python-bring-api
Usage Example
from python_bring_api.bring import Bring
# Create Bring instance with username and password
bring = Bring("USERNAME", "PASSWORD")
# Login
bring.login()
# Get information about all available shopping lists
lists = bring.loadLists()
# Save an item with specifications to a certain shopping list
bring.saveItem(lists['lists'][0]['listUuid'], 'Milk', 'low fat')
# Get all the items of a list
items = bring.getItems(lists['lists'][0]['listUuid'])
print(items['purchase']) # [{'specification': 'low fat', 'name': 'Milk'}]
# Remove an item from a list
bring.removeItem(lists['lists'][0]['listUuid'], 'Milk')
Changelog
1.0.0
Initial release
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
File details
Details for the file python-bring-api-1.0.0.tar.gz
.
File metadata
- Download URL: python-bring-api-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ee3f3dac774c9979414d2fdb713bdc6b14f5c44dc1fe9e016ec91fbab3a7a7a |
|
MD5 | 9a230a38f299dbca68a4e9cc8d2f2bec |
|
BLAKE2b-256 | 871c114efd6cc35f89d407e51a2a1e65038b4f83152cb2517d4d5558221c8643 |
File details
Details for the file python_bring_api-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: python_bring_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d83b2c0304723d8e778aaf7c8d196aa1553825f22add83e765bbc4c86e6c78e |
|
MD5 | 06349e79c44341c195f7bf11fc588a6f |
|
BLAKE2b-256 | 84d708ab58f9e03aa62dd040b9971a7e6989b6a9756cafd20a9fbf9f00da385d |