openfoodfacts 0.1.8
pip install openfoodfacts==0.1.8
Released:
Official Python SDK of Open Food Facts
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIMeta
- License: Other/Proprietary License (Apache 2.0)
- Author: The Open Food Facts team
- Requires: Python >=3.8.1, <4.0
Classifiers
- License
- Programming Language
Project description
Open Food Facts Python SDK
Status
Contributing
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 and License
Copyright 2016-2022 Open Food Facts
The Open Food Facts Python SDK is licensed under the MIT License.
Installation
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
Examples
Get information about a product
code = "3017620422003"
api.product.get(code)
Perform text search
results = api.product.text_search("mineral water")
Create a new product or update an existing one
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.
Third party applications
If you use this SDK, feel free to open a PR to add your application in this list.
Project details
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIMeta
- License: Other/Proprietary License (Apache 2.0)
- Author: The Open Food Facts team
- Requires: Python >=3.8.1, <4.0
Classifiers
- License
- Programming Language
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 openfoodfacts-0.1.8.tar.gz
.
File metadata
- Download URL: openfoodfacts-0.1.8.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf08f4fa76d76d56e3117fe62fa58c9222bae54749a7de951e3837afba276133 |
|
MD5 | a5acb724f3bda4b1a93f5efc43ce1e55 |
|
BLAKE2b-256 | 2e6cf735888887a7a84ba014030753900a793035f5a8791ab673f5e19193b1a4 |
File details
Details for the file openfoodfacts-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: openfoodfacts-0.1.8-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0da1c8d8e8731f6bacb91e3d2986d4e21bd19ab6b0d50336f5ed785f2cba34 |
|
MD5 | 1ab759a687dcfb6b34e63450bdf9bcb6 |
|
BLAKE2b-256 | e891cdcfeae3f0adbf4a764d667dddb69ca28f8f879c14d7d93b0a7246395f6a |