Skip to main content

Async client for Yandex Tracker API

Project description

YaTracker

Asyncio Yandex Tracker API client

Python Code style: black Code linter: ruff Checked with mypy

API docs: https://tech.yandex.com/connect/tracker/api/about-docpage/

Attention!

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

How to install

python3.9 -m pip install yatracker

How to use

from yatracker import YaTracker

tracker = YaTracker(org_id=..., token=...)

async def foo():
    # create issue
    issue = await tracker.create_issue('New Issue', 'KEY')

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

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

    # get transitions:
    transitions = await issue.get_transitions()

    # execute transition
    transition = transitions[0]
    await transition.execute()
# don't forget to close tracker on app shutdown
async def on_shutdown():
    await tracker.close()

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

yatracker-2023.8.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

yatracker-2023.8.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file yatracker-2023.8.1.tar.gz.

File metadata

  • Download URL: yatracker-2023.8.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1042-azure

File hashes

Hashes for yatracker-2023.8.1.tar.gz
Algorithm Hash digest
SHA256 10ed7da655ce0a1051826a2f786b1468b14f9c8945e1505ef5b66f24be6d7154
MD5 ba43c1bc4ff7115e4b30999fe80ee6e9
BLAKE2b-256 a1d9f32799bf29071aa939213761e602ab7fe4e50395a5e9ce46f277686669d0

See more details on using hashes here.

File details

Details for the file yatracker-2023.8.1-py3-none-any.whl.

File metadata

  • Download URL: yatracker-2023.8.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1042-azure

File hashes

Hashes for yatracker-2023.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc7aef6e3314f995b0a6c3ebfa77ed175739341b3c01ee59e8a0744b8d9d760
MD5 7f2b891cb1999aa87d215a2f898d1b7f
BLAKE2b-256 b91c26eb37069bbf35f740bf10aedb473fd8ae49e2ebacc99aa82d9e83e7f047

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page