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.4.tar.gz
(22.4 kB
view details)
Built Distribution
File details
Details for the file yatracker-2023.10.4.tar.gz
.
File metadata
- Download URL: yatracker-2023.10.4.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 401569e7df0a650fe985c2b70ca578d2d24e862cc2f0f670712d6dbf5e7821b9 |
|
MD5 | 22ec6f2f3861815864bf953a115a8b46 |
|
BLAKE2b-256 | e8986710f1077750064d5a3fab11a6a8a594a5e339a7e193bbbf2036dc987d93 |
File details
Details for the file yatracker-2023.10.4-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.10.4-py3-none-any.whl
- Upload date:
- Size: 30.3 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 | cecae2af5d6619b8f01d117a8a58a7734d2671e5b294cca531071821b1f77f60 |
|
MD5 | 72577c7c066ac02eda4c159b01197cab |
|
BLAKE2b-256 | afd0ac7cdceae194d5ccce6040b9161b9fa16f008ff171c94152661bf8c97b15 |