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.2.tar.gz
(22.3 kB
view details)
Built Distribution
File details
Details for the file yatracker-2024.4.2.tar.gz
.
File metadata
- Download URL: yatracker-2024.4.2.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637167420f11346cf60cc6c66823d70dc832fca939a6e48aa7ae42e13aab9d95 |
|
MD5 | 5888f0470af87536c152efcd81f78001 |
|
BLAKE2b-256 | 95b908a247a3be046bdd4d9dfe2581d65c20963a232fc4ddf0aaccb0c5562791 |
File details
Details for the file yatracker-2024.4.2-py3-none-any.whl
.
File metadata
- Download URL: yatracker-2024.4.2-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 | fcbd606ee7b1b29368e48e0229985014c58a62e8655ba4582e373be5e8725054 |
|
MD5 | a1c4594fc67e19f41c6bc3763eceb969 |
|
BLAKE2b-256 | 2b289bf9c5f098f64d9de0240bec0a8812f1846d83a3a8605570c678fc1a30c8 |