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-2024.4.1.tar.gz
(22.2 kB
view details)
Built Distribution
File details
Details for the file yatracker-2024.4.1.tar.gz
.
File metadata
- Download URL: yatracker-2024.4.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2faef0af1c093d8bc3a530f04d5e5052c278826c7227b82e0b91354d5bec4f |
|
MD5 | 7aa009f9c484bf2988ffa198c5afc2eb |
|
BLAKE2b-256 | 015e639f823f112fdf0ac326ffbe78a098ef754d91dd7a908d6ab993039a84ed |
File details
Details for the file yatracker-2024.4.1-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2024.4.1-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de56841eb307658f184b9fc95658143c979731e2454c1261de3d2e21fd83af8 |
|
MD5 | dadca45d9a00ef5f7d58a088fef9936f |
|
BLAKE2b-256 | 9e6c7f7fd240f73172a9d74f8001169bab7d02b0ba8b32f0b8663839d56263f2 |