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 Linters

Documentation: https://olegt0rr.github.io/YaTracker/ API docs: https://cloud.yandex.com/en/docs/tracker/about-api

Attention!

  • 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.

How to install

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

Uploaded Source

Built Distribution

yatracker-2023.9.3-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yatracker-2023.9.3.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for yatracker-2023.9.3.tar.gz
Algorithm Hash digest
SHA256 20cde018cb84947d59ae42f14fee3f094eee546accb2e985219524c57aaf759c
MD5 f918d3ae6dde1f1b96f6a02b2766087d
BLAKE2b-256 dfc2319cadb55da390a797919ae9fa45a79c2bf2cb4f3fde3e655fab3e404dd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatracker-2023.9.3-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for yatracker-2023.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7e401d5b4569fbd387e4f2277e33b2b302b1a9ece3895b15a4a8d1d8e77258e7
MD5 7c79d5725bcf4d2b68424585eae4eef7
BLAKE2b-256 ad49e6927c14f324b590c0c18a0b3c2a38f7b128d9ab5263e4752ce58c0a8024

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