Skip to main content

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 email and password
bring = Bring("EMAIL", "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.2.2

Clean up unused code 🧹

1.2.1

Fix encoding in login request, thanks to @tony059!

1.2.0

Add function to update an item, thanks to @Dielee!

1.1.2

Add option to provide own headers, thanks to @Dielee!

1.1.0

Add item details endpoint, thanks to @Dielee!

1.0.2

Fixed error handling Added response return to login

1.0.1

Add github repo

1.0.0

Initial release

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

python-bring-api-1.2.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

python_bring_api-1.2.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file python-bring-api-1.2.2.tar.gz.

File metadata

  • Download URL: python-bring-api-1.2.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for python-bring-api-1.2.2.tar.gz
Algorithm Hash digest
SHA256 75a6ca71496badf3ca0963311045971d2734186c367cfcc07e35cccbb3b7cb6e
MD5 05afe7aedc4c9e7ab8d7b1981e710644
BLAKE2b-256 1d45760d0a454a5078a90e7f99a981a034707ac3fd9443e17729f47856262312

See more details on using hashes here.

File details

Details for the file python_bring_api-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_bring_api-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ae762655eb28af0dd0a214e1dbe3d757c4649b062d40bd7967ec45efadd308
MD5 6515853c7b2e03c7ac2be8bc9dbb20c2
BLAKE2b-256 ac6e75da8924ada5c15df528fe678a504d63504bc03171c023e54beb2b8d7d09

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