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.9.2.tar.gz
(19.3 kB
view hashes)
Built Distribution
Close
Hashes for yatracker-2023.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a115fb4b2406909519f60f4f5a9202af7dabaab8864ffbdd731c4af140e4707 |
|
MD5 | a25dc3501717c51f8ecca9d6e10ec4e8 |
|
BLAKE2b-256 | 54bd0b4264d45fb520ad1a55b32c8b0b9f970d6786c623e693befb6546e23a95 |