semvec/pypi-packages huggingface dataset:
upc_item_db_api 0.1.1
Python wrapper for UPC Item DB API
License: MIT
Keywords: upc

===============
 upc_item_db_api
===============

A python wrapper for the UPC Item DB API

http://www.upcitemdb.com/api/explorer

The api is currently just in demo mode, so no api keys are required.

To install, run `pip install upc_item_db_api` or `easy_install upc_item_db_api`

Usage
=====

``
# establish a connection
# (this will require an api key once the api is complete)
connection = Connection()

# perform a lookup via get
connection.lookup(upc="some valid upc")

# perform a lookup via post
connection.post_lookup(params={"upc": "some valid upc"})

# perform a search via get
#   optional kwargs
#     * brand
#     * category
#     * offset
#     * item_type (default: "product")
#
#
# adding brand and category filter the results and will make the call much
# faster
connection.search(s="some keywords")

# perform a search via post
connection.post_search(params={"s": "some keywords"})
``