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
. - 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.8.7.tar.gz
(16.8 kB
view details)
Built Distribution
File details
Details for the file yatracker-2023.8.7.tar.gz
.
File metadata
- Download URL: yatracker-2023.8.7.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b240a96e4db43d8fcdb31097a72b421d73edde9ccbbc673bf229e3494a12631 |
|
MD5 | 392749821085d2dc9afb6f2c00914ff5 |
|
BLAKE2b-256 | df27d13eb2c5bc38eaf1e9754bb5a6e340a6f09f3ffbb2e6e6e71184afb0ac4b |
File details
Details for the file yatracker-2023.8.7-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2023.8.7-py3-none-any.whl
- Upload date:
- Size: 23.7 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 | 99713a855ae9b5f30487671a7975aa240a4d82a16c80a75a6de67110a05ef95b |
|
MD5 | 5e014eb512dd0c63387e0e73d3fb83a0 |
|
BLAKE2b-256 | beb2bf7cb65ce796e9936122e49096fc9463328ede38a42da5c9de965eab3636 |