Any help is welcome, as long as you don't break the continuous integration. Fork the repository and open a Pull Request directly on the "develop" branch. A maintainer will review and integrate your changes.
Maintainers:
Contributors:
- Agamit Sudo
- Daniel Stolpe
- Enioluwa Segun
- Nicolas Leger
- Pablo Hinojosa
- Andrea Stagi
- Benoît Prieur
- Aadarsh A
Copyright 2016-2022 Open Food Facts
The Open Food Facts Python SDK is licensed under the MIT License.
The easiest way to install the SDK is through pip:
pip install openfoodfacts
or manually from source:
git clone https://github.com/openfoodfacts/openfoodfacts-python
cd openfoodfacts-python
python setup.py install
Get information about a product
api = openfoodfacts.API(version="v2")
code = "3017620422003"
api.product.get(code)
Perform text search
api = openfoodfacts.API(version="v2")
results = api.product.text_search("mineral water")
Create a new product or update an existing one
api = openfoodfacts.API(version="v2")
results = api.product.update(CODE, body)
with CODE
the product barcode and body
the update body.
To see all possible capabilities, check out the usage guide.
If you use this SDK, feel free to open a PR to add your application in this list.