Official Python SDK of Open Food Facts
Actively maintained. Last release 6 weeks ago, commits in 13 of the last 26 weeks. A safe choice.
pip install openfoodfactsREADME as published on PyPI with version 5.4.1.
Open Food Facts Python SDK
Status
Description
This is the official Python SDK for the Open Food Facts project. It provides a simple interface to the Open Food Facts API and allows you to:
- Get information about a product
- Perform text search
- Create a new product or update an existing one
It also provides some helper functions to make it easier to work with Open Food Facts data and APIs, such as:
- getting translation of a taxonomized field in a given language
- downloading and iterating over the Open Food Facts data dump
- handling OCRs of Open Food Facts images generated by Google Cloud Vision
Please note that this SDK is still in beta and the API is subject to change. Make sure to pin the version in your requirements file.
Third party applications
If you use this SDK or want to use this SDK, make sure to read the REUSE and ensure you comply with the OdBL licence, in addition to the licence of this package (MIT). Make sure you at least fill the form, and feel free to open a PR to add your application in this list :-)