Skip to main content

Yandex Tracker Client (or Yet Another Tracker Client)

Async Yandex Tracker Client based on aiohttp and pydantic

Python Code linter: ruff Linters


You can read API documentation for more information or API specification in OpenAPI format.

Installation

With pip:

pip install ya_tracker_client

With poetry:

poetry add ya_tracker_client

With uv:

uv add ya_tracker_client

Usage

import os
from asyncio import run

from dotenv import load_dotenv

from ya_tracker_client import YaTrackerClient


load_dotenv()
# from registered application at Yandex OAuth - https://oauth.yandex.ru/
API_TOKEN = os.getenv("API_TOKEN")
# from admin panel at Yandex Tracker - https://tracker.yandex.ru/admin/orgs
API_ORGANISATION_ID = os.getenv("API_ORGANISATION_ID")


async def main() -> None:
    # init client
    client = YaTrackerClient(
        organisation_id=API_ORGANISATION_ID,
        oauth_token=API_TOKEN,
    )

    # create issue
    new_issue = await client.create_issue('New issue', 'TRACKER-QUEUE')

     # get issue
    issue = await client.get_issue('KEY-1')

    # update issue (just pass kwargs)
    issue = await client.edit_issue('KEY-1', description='Hello World')

    # don't forget to close tracker on app shutdown
    await client.stop()


if __name__ == "__main__":
    run(main())

Explanations about naming

  • All self properties renamed to url cause it's incompatible with Python;
  • All camelCase properties renamed to pythonic_case;
  • All datetime values converted to python's datetime.datetime objects;
  • Methods named by author, cause Yandex API has no clear method names.

Current library capabilities

  • Working with queues
  • Getting information about issues, priorities and transitions
  • Working with issue relationships
  • Getting user information

More info about work status here: https://github.com/danfimov/ya_tracker_client/milestone/1

Release files for ya_tracker_client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ya_tracker_client 0.1.0
File Size Uploaded
ya_tracker_client-0.1.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ya_tracker_client 0.1.0
File Interpreter ABI Platform
ya_tracker_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 65.1 kB

Release files / ya_tracker_client-0.1.0.tar.gz

Download URL ya_tracker_client-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28c8f413c252aa9217a7a7aaf529b94af83658a110c5266c18da1d5bff5c4f5c
BLAKE2b-256 checksum
How to use checksums
750c9f474a957bca4f275a2c488edad092e7bc237295d984cdd7e4de2070eed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.13

Release files / ya_tracker_client-0.1.0-py3-none-any.whl

Download URL ya_tracker_client-0.1.0-py3-none-any.whl
Size 42.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f601c3e101a3bb3766222b9e8fc220ab1c6784bcc2ce22ed636ddb048d96babb
BLAKE2b-256 checksum
How to use checksums
39a9934fa317d5fd89835bc609b97a040eb58806e2044a5782aa4c3646155531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.6.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page