Async client for Yandex Tracker API
Project description
YaTracker
Asyncio Yandex Tracker API client
API docs: https://tech.yandex.com/connect/tracker/api/about-docpage/
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.4.tar.gz
(11.0 kB
view details)
Built Distribution
File details
Details for the file yatracker-2023.8.4.tar.gz
.
File metadata
- Download URL: yatracker-2023.8.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec64a55a11df77af653ba3ff9ae1d7c35fa180a8c2735924e35993e62543136 |
|
MD5 | aec66a2ee2d1c8100f214c44d99c6ebf |
|
BLAKE2b-256 | a69fee06377810d9fd82fd2339fed9c114e14ed708debe8592d520e6979c03da |
File details
Details for the file yatracker-2023.8.4-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.8.4-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c9f58f26268f817e8d13144afa28c07d40fe4e0501f369f27e66641811a5ea |
|
MD5 | 919b02f03aaa56f0c98c3c9b4873b19e |
|
BLAKE2b-256 | cb59616cb6177650e725cc158db1b47df176130b5c79870f1e4de6ac021165e2 |