Command line interface for interacting with Tempo.
Project description
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 $ pip install --upgrade 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
$ docker pull awiddersheim/tempocli $ docker run --rm -tty --interactive awiddersheim/tempocli
Development
$ pip install -e . $ tempocli --help
Testing
# Install development packages (preferably in a virtualenv) $ pip install -e .[dev] # Run tests $ pytest # Run tests for available Python interpreters $ tox # Linting $ 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.2.dev7.tar.gz
.
File metadata
- Download URL: tempocli-0.2.2.dev7.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0c6c0fdf4ba60ee704395136ecc707a1869bc5aacc370e19b0a13558a124ace |
|
MD5 | 8b8113f4902310e89a9bf1869dda0638 |
|
BLAKE2b-256 | 8a4c672331a46776a908d623fccbe8637021d72607588d09ae013e264b63eefa |
File details
Details for the file tempocli-0.2.2.dev7-py2.py3-none-any.whl
.
File metadata
- Download URL: tempocli-0.2.2.dev7-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acafc3446268deda82b41774ca8e93d9a83939163fb0f9c4da12c827939a680d |
|
MD5 | e5aa66b33083b324ec8fb2ddbfaf8e00 |
|
BLAKE2b-256 | 222e50bd8192c78b5e959da5188a20da936373afcc8d4b5045225432ff09dc70 |