Python SDK wrapping all eBay REST APIs
Project description
ldraney-ebay-sdk
Python SDK wrapping all eBay REST APIs. Uses ldraney-ebay-oauth for authentication and httpx for HTTP.
Install
pip install ldraney-ebay-sdk
Quick Start
from ebay_oauth import EbayOAuthClient
from ebay_sdk import EbayClient
oauth = EbayOAuthClient(
client_id="your-app-id",
client_secret="your-secret",
)
with EbayClient(oauth) as ebay:
# Search for items
results = ebay.buy_browse.search(q="vintage camera", limit=5)
# Get category suggestions
cats = ebay.commerce_taxonomy.get_category_suggestions("0", "camera")
# List orders
orders = ebay.sell_fulfillment.get_orders(limit=5)
# Manage inventory
ebay.sell_inventory.create_or_replace_inventory_item("MY-SKU", {
"product": {"title": "Test Item"},
"condition": "NEW",
"availability": {"shipToLocationAvailability": {"quantity": 1}},
})
Sandbox Mode
oauth = EbayOAuthClient(client_id="...", client_secret="...", sandbox=True)
ebay = EbayClient(oauth, sandbox=True)
Available APIs
| Property | API | Endpoints |
|---|---|---|
ebay.buy_browse |
Buy Browse | search, get_item, etc. |
ebay.sell_inventory |
Sell Inventory | items, offers, locations |
ebay.sell_fulfillment |
Sell Fulfillment | orders, shipping, disputes |
ebay.sell_account |
Sell Account | policies, programs, privileges |
ebay.sell_finances |
Sell Finances | payouts, transactions, transfers |
ebay.sell_marketing |
Sell Marketing | campaigns, ads, promotions |
ebay.sell_feed |
Sell Feed | tasks, schedules, templates |
ebay.commerce_taxonomy |
Commerce Taxonomy | categories, aspects, compatibility |
Development
poetry install
pytest tests/ -m integration # requires EBAY_CLIENT_ID, EBAY_CLIENT_SECRET
poetry build
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ldraney_ebay_sdk-0.1.0.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ldraney_ebay_sdk-0.1.0.tar.gz.
File metadata
- Download URL: ldraney_ebay_sdk-0.1.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba43679ddf257fb0bd52745abf95644d7d1e49406114f8ddf1f16a1e8436bdf2
|
|
| MD5 |
b2e565a84f40f963ae4c503276cb6fe1
|
|
| BLAKE2b-256 |
26d24dc6472f957c7f0a5e30d4d6fe559d0577499925f51e785fc69b669d87bd
|
File details
Details for the file ldraney_ebay_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ldraney_ebay_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
932b7de61bc78cd21198ae4ef302d355a0f03acacda51ac771d7c20975066bc7
|
|
| MD5 |
dfc9d63ab9e6b527a82e43ebd2bebbbb
|
|
| BLAKE2b-256 |
5a798b1d8169b4199a380237cdb6c9518bcdd92bcc321020778290834dbc57bf
|