Browse API client
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
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
Requirements
Python >= 3.5.3
Documentation
Documentation built with mkdocs.
Metadata
Release files for browseapi 0.12.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| browseapi-0.12.2.tar.gz | 13.9 kB | Without provenance | Details for browseapi-0.12.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browseapi-0.12.2-py3-none-any.whl | Python 3 | none | any | Details for browseapi-0.12.2-py3-none-any.whl |
Total release size: 28.0 kB
Release files / browseapi-0.12.2.tar.gz
| Download URL | browseapi-0.12.2.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53ff1ca649b05ceda117431d134637079364dfff4bba100c50b0c5266bb2b9ba
|
|
BLAKE2b-256 checksum How to use checksums |
50a3ac48ecfb69f9abc81f0c83539e3b40dfa5044087e65ba8d3945e63cbf2e3
|
| 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
|
Release files / browseapi-0.12.2-py3-none-any.whl
| Download URL | browseapi-0.12.2-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40a91424c86c19c5fa7e728a8328e2cc351de336c994f2c1927248c24767345a
|
|
BLAKE2b-256 checksum How to use checksums |
6959bbf283bedf1ffd79fe616a6a9b3f6651997cb5c130bedc3b64f295598051
|
| 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
|
Security for browseapi 0.12.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.