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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yandex_market_api-0.1.0a3.tar.gz
  • Upload date:
  • Size: 3.1 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.0a3.tar.gz
Algorithm Hash digest
SHA256 382d2dbf787ff1ecfae7480999ec7abaaa21cfb9eee7024cd8a7e7665c5f1330
MD5 793180c9c48c042ad654eb37769ddeab
BLAKE2b-256 289d9fab40d81a6edce45a7ba056d10f2ea97ea106fc59cdfd81b3cb12e77d53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yandex_market_api-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 502fe06897bc7c29428fe41fe10f4b730271f7ea426ac88f92a06078c0bb1e3e
MD5 4faac2220d516f1365d78f1d5b756764
BLAKE2b-256 9bae1dcdbd9e1403ee6e5f615d9200b70a8f6ca1891a80b99af1c4596b4f5e45

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