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.

⚠️ Important: this project is in alpha stage and is under active development. The public API may change, and not all endpoints are implemented yet.


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(token="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

Alpha (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
  • Backward compatibility is not guaranteed between alpha releases

The project is suitable for experimentation and internal tooling, but it is not yet recommended for production use.


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.0a1.tar.gz (3.0 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.0a1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yandex_market_api-0.1.0a1.tar.gz
  • Upload date:
  • Size: 3.0 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.0a1.tar.gz
Algorithm Hash digest
SHA256 eefe2a78b543ef1de8f699dad4b33cf191445b63ad7aeab31669b24a4f5aa4ac
MD5 59f91949eeb131da6ce6dfa991a6f6b4
BLAKE2b-256 fb1f253d79fdd9deaba4625bbca41c1b7ac77c8c7d4f5ef3dc7f52355570f24a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yandex_market_api-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b437b951bb11235b07b5999bd29b6ff21cdfb00f3b2e8857ae29d3df01504a5c
MD5 c1339eb1f8962344ec8e27cf7c6b54e1
BLAKE2b-256 e2a01a52ce3739e91a3cf00a5b12732d84fe89726347d229121065f8c29a0d68

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