Skip to content

Releases: openfoodfacts/openfoodfacts-python

v0.1.5

21 Jul 09:55
b1cc21a
Compare
Choose a tag to compare

0.1.5 (2023-07-21)

Bug Fixes

Documentation

  • improve documentation in taxonomy.py (2942143)

Version 0.1.4

20 Jul 15:09
Compare
Choose a tag to compare

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

07 Apr 16:07
2b947bc
Compare
Choose a tag to compare
  • python3.8 support

Version 0.1.2

06 Nov 17:25
Compare
Choose a tag to compare

Minfixes:

  • Fix installation script for Python 2.7
  • Fix login_into_OFF method on Python 3.x

Version 0.1.1

20 Jul 14:33
Compare
Choose a tag to compare

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 and beauty_products as aliases
import openfoodfacts

for product in openfoodfacts.beauty_products.get_by_facets({
  'packaging': 'Plastique',
  'country': 'france'
}):
    print (product.get('product_name', 'Unknown'))