How saleweaver/python-amazon-sp-api works
This repository is a Python wrapper for Amazon’s Selling Partner API, offering synchronous and asyncio clients. A caller creates a service client and invokes an endpoint method; the client obtains authorization, sends an HTTP request, and returns a response wrapper. The API surface spans seller, catalog, order, fulfillment, finance, and vendor workflows, alongside reports, feeds, and analytics. The tree and README establish these capability areas; sampled source shows client, authentication, transport, and endpoint behavior. Many individual API modules were not sampled, so their internal links are not asserted.
Main entry points: base/client.py Sync client · base/client.py Async client · services.py Home services · reports Reports and feeds
Components 25
Client runtime
- Sync client
sp_api/base/client.py - Async client
sp_api/asyncio/base/client.py - Access tokens
sp_api/auth/access_token_client.py - Async tokens
sp_api/asyncio/auth/access_token_client.py - HTTP transport
sp_api/base/_transport_httpx.py - Async transport
sp_api/asyncio/base/_transport_httpx.py - API response
sp_api/base/ApiResponse.py - Version dispatch
sp_api/util/versioned_client.py
Seller commerce
- Catalog and listings
sp_api/api/catalog_items - Orders and sales
sp_api/api/orders - Finance and invoices
sp_api/api/finances - Seller and app management
sp_api/api/sellers
Fulfillment operations
- Inbound fulfillment
sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py - Outbound fulfillment
sp_api/api/fulfillment_outbound - Inventory services
sp_api/api/inventories - Shipping services
sp_api/api/shipping - Home services
sp_api/api/services/services.py
Data and reporting
- Reports and feeds
sp_api/api/reports - Data Kiosk
sp_api/api/data_kiosk - Notifications
sp_api/api/notifications
Vendor operations
- Vendor orders
sp_api/api/vendor_orders - Vendor fulfillment
sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py
Other components
- API caller
- Amazon SP-API
- Amazon LWA
Connections 21
- API caller → Sync client: calls endpoints
- API caller → Async client: awaits endpoints
- Sync client → Access tokens: gets token
sp_api/base/client.py - Sync client → HTTP transport: sends request
sp_api/base/client.py - Async client → Async tokens: gets token
sp_api/asyncio/base/client.py - Async client → Async transport: sends request
sp_api/asyncio/base/client.py - Access tokens → Amazon LWA: requests token
sp_api/auth/access_token_client.py - Async tokens → Amazon LWA: requests token
sp_api/asyncio/auth/access_token_client.py - HTTP transport → Amazon SP-API: sends HTTP
- Async transport → Amazon SP-API: sends HTTP
- Catalog and listings → Sync client: uses client
- Orders and sales → Sync client: uses client
- Reports and feeds → Sync client: uses client
- Data Kiosk → Sync client: uses client
- Reports and feeds → Async client: uses client
- Inbound fulfillment → Sync client: inherits client
sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py - Home services → Sync client: calls request
sp_api/api/services/services.py - Home services → Async client: calls request
- Sync client → API response: parses response
sp_api/base/client.py - Async client → API response: parses response
sp_api/asyncio/base/client.py - Version dispatch → Vendor fulfillment: dispatches versions