Async client for Yandex Tracker API
Project description
YaTracker
Asyncio Yandex Tracker API client
Documentation: https://olegt0rr.github.io/YaTracker/
API docs: https://cloud.yandex.com/en/docs/tracker/about-api
Attention!
- All
self
properties renamed tourl
cause it's incompatible with Python. - All
camelCase
properties renamed topythonic_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
Release history Release notifications | RSS feed
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.10.1.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for yatracker-2023.10.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 874a4ddb547e1fe4431bd38d1ebb9818da13b0598f8d7383c302442dc91d8d36 |
|
MD5 | 3354f1a39da9ff0e0397b51bf94cf88c |
|
BLAKE2b-256 | 2f6c63784c4e46460fe15401a84a6cfc5b7a705fdd8724f5afb1cd84a94ab07f |