Skip to main content

Python client for EAN-DB API

Project description

EAN-DB Python client

This is a Python client for EAN-DB API.

EAN-DB is an online API for product info lookups by EAN / UPC / ISBN. Product info includes titles in various languages, categories, manufacturer, images and additional metadata.

For more information, please see API docs and Database stats.

Installation

pip install eandb

Usage

Asynchronous client

>>> from eandb.clients.v2 import EandbV2AsyncClient

>>> eandb_client = EandbV2AsyncClient(jwt='YOUR_JWT_GOES_HERE')
>>> response = await eandb_client.get_product('0016065024615')

Synchronous client

>>> from eandb.clients.v2 import EandbV2SyncClient

>>> eandb_client = EandbV2SyncClient(jwt='YOUR_JWT_GOES_HERE')
>>> response = eandb_client.get_product('0016065024615')
>>> response

ProductResponse(
    balance=100, error=None, 
    product=Product(
        barcode='0016065024615', 
        titles={'en': 'Pretty Tied Up'}, 
        categories=[
            Category(id='855', titles={'en': 'Music & Sound Recordings', ...})
        ],
        manufacturer=Manufacturer(id=None, titles={'de': 'Geffen'}, wikidataId=None),
        relatedBrands=[],
        images=[Image(url='...')], 
        metadata=Metadata(
            generic=Generic(
                contributors=[Contributor(names={'en': "Guns N' Roses"}, type='artist')]
            )
        )
    )
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eandb-0.9.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eandb-0.9.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file eandb-0.9.0.tar.gz.

File metadata

  • Download URL: eandb-0.9.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.0 Darwin/25.2.0

File hashes

Hashes for eandb-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9eac32ba6eaa158f17c949de5d8f65792fbe484facac38eac76bb0c7f44db7a8
MD5 01c7c70e3b17f9a44154eb99fb3120d3
BLAKE2b-256 4ae156dc6235bc98a6cc1aa28720abaf0b7c7feac10edae36d63d4efef1a8d20

See more details on using hashes here.

File details

Details for the file eandb-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: eandb-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.0 Darwin/25.2.0

File hashes

Hashes for eandb-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 431a86eefa31062683f9909fcc129f9dfd18c75ee603072b1b246efaa4e27a83
MD5 a2b7dcfd73c84f61ecf38ad877862610
BLAKE2b-256 c9d3daea7ba2a3fb5eb64dec6c81f549b7539a9f36166c51b96a1bfe1d397e80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page