Skip to main content

Async client for Yandex Tracker API

Project description

YaTracker

Asyncio Yandex Tracker API client

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

Uploaded Source

Built Distribution

yatracker-2021.7.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yatracker-2021.7.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.1 Darwin/20.5.0

File hashes

Hashes for yatracker-2021.7.2.tar.gz
Algorithm Hash digest
SHA256 9c01ae1b4d24087ad056bcf9d8ac7efd97894a4b60415b34bd4af946d9e9a43f
MD5 4f937ad2eeaf1d5e316222e95b46756d
BLAKE2b-256 3a06b147c4de120411b44215c692f5a8cfe05f19c299bae740b3ef34ebc9da21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatracker-2021.7.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.1 Darwin/20.5.0

File hashes

Hashes for yatracker-2021.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be0f0f08e7251ddfbbf2009a1db3935a34603bc4e08134d87f8f1fd19d927718
MD5 8223a2c36f4dc7b83b5a90a364cf5293
BLAKE2b-256 f892ffd4b96936456bb8ae3bb3bf6858460e4053f0ef55cd32afef965a81fbd7

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