You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,24 @@ print(results)
100
100
# 'vegetarian': 'yes'}]
101
101
```
102
102
103
+
### Working with the other projects
104
+
105
+
The SDK also supports the sibling **Open \[[Beauty](https://world.openbeautyfacts.org/)|[Pet Food](https://world.openpetfoodfacts.org/)|[Products](https://world.openproductsfacts.org/)\] Facts** projects, not just food:
If you're planning to perform data analysis on Open Food Facts, the easiest way is to download and use the Open Food Facts dataset dump. Fortunately it can be done really easily using the SDK:
@@ -131,3 +149,21 @@ for product in dataset:
131
149
## Taxonomies
132
150
133
151
For a deep dive on how to handle taxonomies, check out the [dedicated page](./handle_taxonomies.md).
152
+
153
+
## Utilities
154
+
155
+
### Barcode
156
+
157
+
The SDK includes utilities for normalizing and validating barcodes (GTINs):
158
+
159
+
```python
160
+
from openfoodfacts.barcode import normalize_barcode, has_valid_check_digit
0 commit comments