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.3.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

yatracker-2023.8.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yatracker-2023.8.3.tar.gz
  • Upload date:
  • Size: 11.1 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.3.tar.gz
Algorithm Hash digest
SHA256 2837be4e26709e31dace8294b7f5f8e0a7f2e439f3ef42a1d8568d242f2306c3
MD5 fa401c1d1fd7b2c79b522223f990814a
BLAKE2b-256 a288ff7bccda4dde2d5a97d7bf5592c2df60fa1888de02ce484daab8cb8caf42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatracker-2023.8.3-py3-none-any.whl
  • Upload date:
  • Size: 15.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5bf2a3f87673fe8c8561a37efa40e1c27235a483af31cb30befb7c29b5ea49
MD5 6a4be514c9163a9045a48474a8d6072d
BLAKE2b-256 feefd50eb973eb965afb80b6fe9e52411870d258b96fd8141c6359c37519e5bc

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