Python bindings for Tempo REST API v4 — sync (Client_v4) and async (AsyncClient_v4).
PyPI: https://pypi.org/project/tempo-api-python-client/
- Python >= 3.12
- uv for development
uv add tempo-api-python-clientYou need a Tempo API token from your Tempo/Jira instance.
from tempoapi import Client_v4
with Client_v4(auth_token="<your_tempo_api_key>") as tempo:
worklogs = tempo.get_worklogs(dateFrom="2019-11-10", dateTo="2019-11-11")import asyncio
from tempoapi import AsyncClient_v4
async def main() -> None:
async with AsyncClient_v4(auth_token="<your_tempo_api_key>") as tempo:
worklogs = await tempo.get_worklogs(
dateFrom="2019-11-10",
dateTo="2019-11-11",
)
for worklog in worklogs:
print(worklog)
asyncio.run(main())uv sync --extra dev
uv run ruff check .
uv run pytestApache License 2.0