Python bindings for Tempo (https://apidocs.tempo.io/)
Project description
tempo-api-python-client
Python bindings for Tempo Rest API.
This is a Tempo API client library to simplify the interaction with Tempo timesheets. The implementation supports Tempo API v3 and v4.
Pip release is available: https://pypi.org/project/tempo-api-python-client/
Tempo Rest API documentation can be found at https://apidocs.tempo.io/
Installation
Install current release by pip
pip install tempo-api-python-client
Getting Started
You need an API token for communicating with tempo REST APIs.
For v3 use
from tempoapiclient import client_v3
tempo = client_v3.Tempo(
auth_token="<your_tempo_api_key>",
)
worklogs = tempo.get_worklogs(
dateFrom="2019-11-10",
dateTo="2019-11-11"
)
for i in worklogs:
print(i)
For v4 use
from tempoapiclient import client_v4
tempo = client_v4.Tempo(
auth_token="<your_tempo_api_key>",
)
worklogs = tempo.get_worklogs(
dateFrom="2019-11-10",
dateTo="2019-11-11"
)
for i in worklogs:
print(i)
There are also functions to retrieve user
and team
-specific worklogs.
Code Format
-
Flake8:
flake8 --max-line-length=120 tempoapiclient/*
-
Pylint:
pylint --max-line-length=120 tempoapiclient
Contributing
Contribution is welcome. See CONTRIBUTING.md for more details.
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
Built Distribution
Hashes for tempo-api-python-client-0.7.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8578ffa4d5a0487f7c73f8d054e74c4d54fb3649dceb3e845c6d0c2c5b22d86 |
|
MD5 | 1999ddc698c08dcbb00e94ef337ca8d4 |
|
BLAKE2b-256 | f528f47b39a1dc23a7846c51ba752f61c8ca46135b7112d95b74c66028ac6b08 |
Hashes for tempo_api_python_client-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d6d82c61bbf12e85178c903391dc36d19e52397a13ac36993519ca62192d40 |
|
MD5 | ac0c9bea942c4c7a2ec5215712132c49 |
|
BLAKE2b-256 | 28c839a68c9366fe151dd6c5c70e9ac3e98b8ce7e1f8f2df1f108afb414d441c |