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 details)
Built Distribution
File details
Details for the file yatracker-2023.10.1.tar.gz
.
File metadata
- Download URL: yatracker-2023.10.1.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc770858d993e45bfef437cab64efe86a0503dd17901d3c287a26dfa0bf88061 |
|
MD5 | e707ae5cb9ea51db9347a13a612f3e7a |
|
BLAKE2b-256 | bcb556390f8034eda713277ddb95f08ed8e24ce4c33d37cf6c0a6bf1b7ae2b03 |
File details
Details for the file yatracker-2023.10.1-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.10.1-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 874a4ddb547e1fe4431bd38d1ebb9818da13b0598f8d7383c302442dc91d8d36 |
|
MD5 | 3354f1a39da9ff0e0397b51bf94cf88c |
|
BLAKE2b-256 | 2f6c63784c4e46460fe15401a84a6cfc5b7a705fdd8724f5afb1cd84a94ab07f |