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.1.1.tar.gz (4.7 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.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yandex_market_api-0.1.1.1.tar.gz
  • Upload date:
  • Size: 4.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 0b60b757553a10677c39a63e1b73cadb98f21b7944c12b4dd1210dac1aefa74b
MD5 815f6631e2ea940f7d68044783a0f947
BLAKE2b-256 e33ff3c3689e75898aa64b101ead05ff255217db41344768424f63901db59aeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yandex_market_api-0.1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63732fef7e37a45995f5d7eba258ae0188c2e5b479cb04f916ca5032876a5060
MD5 2b3571660600915aec53c516fa56bd1d
BLAKE2b-256 385808a00584de18665475316bb1b76c7981ae7c9c40c04ec92be54284996c14

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