Releases: openfoodfacts/openfoodfacts-python
Releases ยท openfoodfacts/openfoodfacts-python
v0.1.5
Version 0.1.4
Brand-new version of the SDK, that is supposed to be easier to use and has more features.
Part of the Robotoff codebase was transferred to openfoodfacts-python.
Version 0.1.3
- python3.8 support
Version 0.1.2
Minfixes:
- Fix installation script for Python 2.7
- Fix
login_into_OFF
method on Python 3.x
Version 0.1.1
What's new? ๐
- #61 Add generator for search, get_by ...
for product in openfoodfacts.products.get_all_by_country('italy'):
print (product.get('product_name', 'Unknown'))
for product in openfoodfacts.products.get_all_by_facets({'trace': 'eggs', 'country': 'france'}):
print (product.get('product_name', 'Unknown'))
for product in openfoodfacts.products.search_all('kinder bueno'):
print (product.get('product_name', 'Unknown'))
- #62 Use
pet_products
andbeauty_products
as aliases
import openfoodfacts
for product in openfoodfacts.beauty_products.get_by_facets({
'packaging': 'Plastique',
'country': 'france'
}):
print (product.get('product_name', 'Unknown'))
- #64 openfoodfacts-python is on PyPi ๐๐ฆ