Async client for Yandex Tracker API
Project description
YaTracker
Asyncio Yandex Tracker API client
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
. - 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.8.6.tar.gz
(15.5 kB
view details)
Built Distribution
File details
Details for the file yatracker-2023.8.6.tar.gz
.
File metadata
- Download URL: yatracker-2023.8.6.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28f2d52b5139d149a8279a1b1bc2524d82a051c7b94121c3982314ff0429bb9 |
|
MD5 | 48a5fb885dbfdc153d1968f4bc621bb1 |
|
BLAKE2b-256 | 776287238dc04c3ca17c4ec8e27b40bac4e5b00e936de216b167316b61a51961 |
File details
Details for the file yatracker-2023.8.6-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.8.6-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc28547ab86ebb4397e1915d21e028a52f5acb5f6c3e5cf351d72f5c062f091f |
|
MD5 | c84685de691935f617f8fc964a665e5b |
|
BLAKE2b-256 | ab77d1a8d81f304c8e81a53f123034a05c756a9f6cf703939229464b24a3749e |