Skip to main content

Async Python SDK for Yandex Market Partner API

Project description

yandex-market-api

Async Python client for the Yandex Market Partner API (unofficial).

This library provides an asynchronous, resource-oriented interface for interacting with the Yandex Market Partner API. It is designed as a thin, explicit SDK that mirrors the API structure while following Python and async best practices.


Features

  • Fully asynchronous HTTP client based on httpx
  • Resource-oriented design (client.offers, client.campaigns, etc.)
  • Explicit and predictable method naming
  • Python 3.10+ support
  • Designed to be extended with typed models (Pydantic) over time

Installation

The library can be installed from PyPI:

pip install yandex-market-api

Python 3.10 or newer is required.


Quick start

from yandex_market_api import YandexMarketClient
import asyncio

async def main() -> None:
    client = YandexMarketClient(api_key="YOUR_API_TOKEN")

    campaigns = await client.campaigns.list_campaigns()
    print(campaigns)

    await client.close()

asyncio.run(main())

The client is asynchronous, so it should be used inside an async context (e.g. with asyncio.run).


Project status

Work in progress

  • Some endpoints are not implemented yet
  • Request and response schemas are mostly returned as plain dictionaries
  • Error handling and retries are still evolving

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

yandex_market_api-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

yandex_market_api-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file yandex_market_api-0.1.0.tar.gz.

File metadata

  • Download URL: yandex_market_api-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for yandex_market_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 71b378b00a910a3117b8ed80ad8e76b70eac8e83c396b861d65bed5c96732782
MD5 4e3f3b6a512900b4227ac86985ec065c
BLAKE2b-256 d08adbd5ce2e82fdd4f9f2608a8496631e6143280d8770b613d1921780dd0141

See more details on using hashes here.

File details

Details for the file yandex_market_api-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yandex_market_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d8951f7a46a09f762b7e88e43b738b8a0ba2b06244a3494fcbc5c1267ea714
MD5 a8f13ec3f5056d3f4793fc2b18427038
BLAKE2b-256 9bcea4e9781df104827dfe3d0887bc80796473142b943d66758279ea90d49914

See more details on using hashes here.

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