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
python3.9 -m 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.1.tar.gz
(9.9 kB
view details)
Built Distribution
File details
Details for the file yatracker-2023.8.1.tar.gz
.
File metadata
- Download URL: yatracker-2023.8.1.tar.gz
- Upload date:
- Size: 9.9 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 | 10ed7da655ce0a1051826a2f786b1468b14f9c8945e1505ef5b66f24be6d7154 |
|
MD5 | ba43c1bc4ff7115e4b30999fe80ee6e9 |
|
BLAKE2b-256 | a1d9f32799bf29071aa939213761e602ab7fe4e50395a5e9ce46f277686669d0 |
File details
Details for the file yatracker-2023.8.1-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.8.1-py3-none-any.whl
- Upload date:
- Size: 11.9 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 | 3fc7aef6e3314f995b0a6c3ebfa77ed175739341b3c01ee59e8a0744b8d9d760 |
|
MD5 | 7f2b891cb1999aa87d215a2f898d1b7f |
|
BLAKE2b-256 | b91c26eb37069bbf35f740bf10aedb473fd8ae49e2ebacc99aa82d9e83e7f047 |