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.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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yandex_market_api-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8e3cbb51b8e2098cdf6e7b90502bc02ca0ce00fe40fce9976eaa2e64748aea42
MD5 274fc054f51a9dd5a54a37c4a6a8d95a
BLAKE2b-256 ec65ba5d085422be4b355bd150b3cbc01fa4bb5a7a5f4a87cf882ec04f8b00b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yandex_market_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed6fa39c0c8fd68276435a3fbbfe30ea593d439dadf76c933c5c5b50acbb73e
MD5 89749c05410b4e0479dfa7144dc9f66e
BLAKE2b-256 4782c6920c95e42b7a5c496caad031d6ce6fc04e3b2829ac56bc85cd2dcb0d22

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