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.8.0.tar.gz (13.4 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.8.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wbapi_async-0.8.0.tar.gz
  • Upload date:
  • Size: 13.4 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.8.0.tar.gz
Algorithm Hash digest
SHA256 b81fa3ddb0356c646a8a1de9a3d043dd25d14a35ac26d96b49643c9ccfd3638f
MD5 5d4543c05613cce0bf93f7fe5bf6e7a6
BLAKE2b-256 cf5431633dc86e1e3a8abe8ea28d9a3bf052d97424423dd1b8654b3de9d358a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for wbapi_async-0.8.0.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.8.0-py3-none-any.whl.

File metadata

  • Download URL: wbapi_async-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 600524be04e807667a854e54b742fa8a0f4bd6dda68594da896e2c54142c43d1
MD5 afd31785982986b117721826657a3fa9
BLAKE2b-256 531124a864037f34d889c8decf3d3b537fffe04b973e4eda6a4cc563fd56b0c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for wbapi_async-0.8.0-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