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.3.tar.gz
(22.3 kB
view details)
Built Distribution
File details
Details for the file yatracker-2023.10.3.tar.gz
.
File metadata
- Download URL: yatracker-2023.10.3.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ced08b389abcbafa1cf0bc5a16a71108ef813daecb48ee73c6d6760886685a6 |
|
MD5 | 1a2178da8d8780cdcd48675f564af5f9 |
|
BLAKE2b-256 | 6283b3cc61914ec4c7d9390f781c7707a9acab25e11f2026aef3fe76906dcb36 |
File details
Details for the file yatracker-2023.10.3-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.10.3-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a646aab744e71c3f4c9876fc7c161508eb2d762b2f06214115d0fe2e74ed45c |
|
MD5 | c8d46f3ba196d9c588445d27d257b994 |
|
BLAKE2b-256 | e92adbd0036bf8af28c98de152d3c92a495c25848251238541d6e4ada818af76 |