Skip to main content

OpenEAN

Library to use the api of the Open EAN/GTIN Database

serves as API wrapper for the api of this EAN/GTIN database service

Getting started

Install the library from pypi via pip install openean

Then you need an user_id for the service; more info how you get that

There is also an id for small tests: "400000000" as described here https://opengtindb.org/faq.php#g

from openean.OpenEAN import OpenEAN


userID = 400000000  #user your own id here

openean = OpenEAN(userID)

barcode_num = 1111 #barcode number of you product

items = openean.parse(barcode_num)
#items is a list of possible products associated with the code
# the properties of each item are described here https://opengtindb.org/api.php

#only to show you structure of working results
#not needed for use
from pprint import pprint
for item in items:
    pprint(vars(item))

Thanks to

The creators of the API for making this possible and please consider donating to "Kueste gegen Plastik" if you like this service to help the creators of the database running it.

Release files for openean 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for openean 0.1.2
File Interpreter ABI Platform
openean-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / openean-0.1.2-py3-none-any.whl

Download URL openean-0.1.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c8014c62fa4b00db0cb31fe6d19200b0433ee52344febb41737a2485e04a354
BLAKE2b-256 checksum
How to use checksums
0b7000fbbfa775b84504c3f480f83caea37a686d15f1f35619c908340a0c8ea4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page