Difference between revisions of "API/Python"

From Open Food Facts wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Documentation of the Python bindings
 
Documentation of the Python bindings
  
== Source code ==  
+
 
 +
[[File:Python.png|thumb]]
 +
 
 +
 
 +
== Online API==
 +
https://github.com/openfoodfacts/openfoodfacts-python
 +
This has recently been enriched using code from Robotoff.
 +
== Offline API (proxy)==
 +
=== Source code ===
 
https://github.com/openfoodfacts/OpenFoodFacts-APIRestPython
 
https://github.com/openfoodfacts/OpenFoodFacts-APIRestPython
== How to install ==
+
=== How to use ===
* Install python 3
+
 
* Install mongodb
+
== Open Food Facts projects in Python you can contribute to ==
* Install pip
+
 
* Install requirements : $ pip install -r requirements.txt
+
* [[:Category:Robotoff|Robotoff]] - [https://github.com/openfoodfacts/robotoff Github] ([https://github.com/openfoodfacts/robotoff/issues/374 What can I work on?])
* Download the database from : http://world.openfoodfacts.org/data/openfoodfacts-mongodbdump.tar.gz
+
* [[Folksonomy Engine]] (FastAPI) - [https://github.com/openfoodfacts/folksonomy_api Github] ([https://github.com/openfoodfacts/folksonomy api/issues/70/ What can I work on ?])
* Import to local mongodb : $ mongorestore -d off -c products /foldertobsonfile/products.bson
+
* [[Prices|Open Prices]] (Django) - [https://github.com/openfoodfacts/open-prices Github] ([https://github.com/openfoodfacts/open-prices/issues/39 What can I work on ?])
* Launch api : $ python3 runApiRESTServer.py
+
* [[Taxonomy editor|Taxonomy editor]] (FastAPI) - [https://github.com/openfoodfacts/taxonomy-editor Github]
* That's all !
+
* [[Search-a-licious]] (FastAPI) - [https://github.com/openfoodfacts/search-a-licious Github]
== How to use ==
+
* Facet Knowledge Panels - [https://github.com/openfoodfacts/facets-knowledge-panels Github]
 +
 
 +
Full list of repositories using Python: https://github.com/orgs/openfoodfacts/repositories?q=python
 +
 
 +
== Apps reusing the Python SDK ==
 +
 
 +
== Get in touch==
 +
{{Box
 +
| 1    = Slack channel
 +
| 2    = [https://openfoodfacts.slack.com/messages/C13993JDD/ #python]
 +
}}
 +
[[Category:API]]
 +
[[Category:Python]]
 +
[[Category:SDKs]]

Latest revision as of 12:43, 9 November 2024

Documentation of the Python bindings


Python.png


Online API

https://github.com/openfoodfacts/openfoodfacts-python This has recently been enriched using code from Robotoff.

Offline API (proxy)

Source code

https://github.com/openfoodfacts/OpenFoodFacts-APIRestPython

How to use

Open Food Facts projects in Python you can contribute to

Full list of repositories using Python: https://github.com/orgs/openfoodfacts/repositories?q=python

Apps reusing the Python SDK

Get in touch

Slack channel