Command line interface for interacting with Tempo.
Project description
TempoCLI
Command line interface for interacting with Tempo.
Introduction
Ease repetitive Tempo tasks by using templates to fill in recurring items without having to use web interface. Templates are yaml formatted files that are semi-flexible in allowing what can be created.
The author_account_id
can be obtained by going to your profile in
JIRA and copying the ID from the URL.
----
author_account_id: foo
issues:
# Will use current date if one can't be determined.
- issue: INT-8
time_spent: 30m
start_time: "9:30AM"
# Can specify day of week easily.
- issue: INT-10
time_spent: 1h
start_time: Monday at 9AM
# Full on datetime with override.
- issue: INT-11
time_spent: 90s
start_time: "2018-08-05 11:00:00"
author_account_id: bar
# Pass in extras that aren't exposed in DSL.
# https://tempo-io.github.io/tempo-api-docs/#worklogs
- issue: INT-11
time_spent: 1h
start_time: 8am
extras:
remainingEstimateSeconds: 300
Installation
$ pip install tempocli
Running
$ tempocli --config <config> create --template <template>
Configuration
By default, ~/.tempocli.yml
is the path used for the configuration
file but that can be changed with the --config
option during
invocation. The configuration file should look like this:
---
token: <token>
It is also possible to specify the token using the TEMPOCLI_TOKEN
environment variable.
Docker
DockerHub
$ docker run \
--rm \
--tty \
--interactive \
--volume ~/.tempocli.yml:/home/tempocli/.tempocli.yml:ro \
--volume /some/dir/with/templates:/templates:ro \
awiddersheim/tempocli \
create --template /templates/template.yml
Building Locally
$ docker build --tag tempocli --target prod .
Development
$ pip install --editable .
$ tempocli --help
Testing
# Install development packages (preferably in a virtualenv)
$ pip install --editable .[dev]
# Run tests
$ pytest
# Run tests for available Python interpreters
$ tox
# Linting
$ flake8
# Can also lint in tox as well
$ tox -e flake8
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
File details
Details for the file tempocli-0.2.4.dev32.tar.gz
.
File metadata
- Download URL: tempocli-0.2.4.dev32.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7b2d108efaf68dda5fa8786975b5dca58a3591a6fbe57a00666a4816395462 |
|
MD5 | 283741793a23a05860f781ad64f6ddfe |
|
BLAKE2b-256 | b7fad59ddcba0ea4f3043c2cdafb2ced1cbb03dc4788261ab0c01f8efeb81411 |
File details
Details for the file tempocli-0.2.4.dev32-py2.py3-none-any.whl
.
File metadata
- Download URL: tempocli-0.2.4.dev32-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e4265b773a5b518e428fffdfd27f78b7d40fd2e051b3912dd464369b3455fc |
|
MD5 | 20557496b7efde1f3deb8bdf67844249 |
|
BLAKE2b-256 | 533d6eb53bce85275fb1a7b2e0a8444b7fdfb497cc4064a6f011ac1e9793c987 |