Skip to main content

Fast, lightweight async client for the Wildberries Seller API

Project description

wbapi

Version Downloads Status Python


Documentation: https://dev.wildberries.ru

Source Code: https://github.com/serdukow/wbapi-async


wbapi is a lightweight async client for the Wildberries Seller API, built on top of httpx.

It handles pagination, rate limiting, and base URL resolution automatically — so you can focus on your business logic instead of HTTP boilerplate.

Requirements

Python 3.10+

wbapi stands on the shoulders of giants:

Installation

pip install wbapi-async

How to use

  1. Register in the Wildberries seller personal account if you haven't already.
  2. Go to store settings and create an API token.

Quick start

import asyncio
from wbapi import WbAPI

async def main():
    async with WbAPI(token="your_api_token") as api:
        # Simple request
        warehouses = await api.get("/api/v3/warehouses")

        # Auto-paginated — fetches all pages automatically
        all_cards = await api.post(
            "/content/v2/get/cards/list",
            body={
                "settings": {
                    "sort": {"ascending": True},
                    "cursor": {"limit": 100},
                    "filter": {"withPhoto": -1},
                }
            },
            paginate=True,
        )
        print(all_cards)

asyncio.run(main())

Pass paginate=True to any get or post call and the library fetches all pages automatically. Pagination strategy (cursor, token, or offset) is detected from the first response.

Base URL resolution and per-endpoint rate limiting are handled transparently.

License

This project is licensed under the terms of the MIT license.

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

wbapi_async-0.7.9.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wbapi_async-0.7.9-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file wbapi_async-0.7.9.tar.gz.

File metadata

  • Download URL: wbapi_async-0.7.9.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wbapi_async-0.7.9.tar.gz
Algorithm Hash digest
SHA256 666847eaabe263d8dc200465eb1c948b2f237686a4f3f8c6e4b68e38286a3146
MD5 32042c6b55cb30595342ee3ac4acf94b
BLAKE2b-256 47335a351fc2a407c5e8449a0a032d0d773a2c05453c49586ce401ef7d49ce35

See more details on using hashes here.

Provenance

The following attestation bundles were made for wbapi_async-0.7.9.tar.gz:

Publisher: pypi_release.yml on serdukow/wbapi-async

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wbapi_async-0.7.9-py3-none-any.whl.

File metadata

  • Download URL: wbapi_async-0.7.9-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wbapi_async-0.7.9-py3-none-any.whl
Algorithm Hash digest
SHA256 965ac36720c60f006b1e5349161a1566a6c68484096a4431f1c54c5a36e89ad6
MD5 6e47f80c43656c0be9cb51888b14d6fb
BLAKE2b-256 3c9419abad4efcd51f69e3e7f5d3ded08e54c6f5049f9e20668b75c9e90b3935

See more details on using hashes here.

Provenance

The following attestation bundles were made for wbapi_async-0.7.9-py3-none-any.whl:

Publisher: pypi_release.yml on serdukow/wbapi-async

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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