Skip to main content

eBay Browse API Python client

Project description

coverage build_status Documentation Status PyPI version

This package is a Python client for eBay Browse API. It is asynchronous and designed to send a large number of requests by one function call.

For more information about this API visit official documentation.

Installation

Install from PyPI by pip install browseapi_sandbox

Supported methods

Only these methods are now implemented (names changed to lowercase notation):

Quickstart

Create a BrowseAPI instance with your application id (app_id) and application secret (cert_id) and start sending requests:

from browseapi import BrowseAPI

app_id = '<your_app_id>'
cert_id = '<your_cert_id>'

api = BrowseAPI(app_id, cert_id)
responses = api.execute('search', [{'q': 'drone', 'limit': 50}, {'category_ids': 20863}])

# this will make 'search' request two times with parameters
# q=drone and limit=50 for the first time and
# category_ids=20863 for the second time

print(responses[0].itemSummaries[0])

All response fields have similar names and types as those mentioned in official docs.

Tests

For running tests put your secret.json file with fields 'eb_app_id' and 'eb_cert_id' to the browseapi/tests directory, then run a command from the parent browseapi directory:

python -m unittest browseapi.tests.test_client

You may get warnings like this:

ResourceWarning: unclosed transport

Just ignore it.

Requirements

Documentation

Documentation built with mkdocs.

browseapi.readthedocs.io

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

browseapi_sandbox-0.5.tar.gz (15.9 kB view details)

Uploaded Source

File details

Details for the file browseapi_sandbox-0.5.tar.gz.

File metadata

  • Download URL: browseapi_sandbox-0.5.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for browseapi_sandbox-0.5.tar.gz
Algorithm Hash digest
SHA256 b34a9e5deae4bc9457dd081e457ab7452b8e59e528c8a7856b18f9f2e61c0a98
MD5 2242a775aca4f8b5f2b78b50d38ddc29
BLAKE2b-256 aa7a7b4852e48f4e3df2fa6bba058b5036a2df2c864fbb1a6638a80235c37c1c

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