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
Metadata
Release files for tempocli 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tempocli-0.2.4.tar.gz | 12.5 kB | Without provenance | Details for tempocli-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tempocli-0.2.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for tempocli-0.2.4-py2.py3-none-any.whl |
Total release size: 20.5 kB
Release files / tempocli-0.2.4.tar.gz
| Download URL | tempocli-0.2.4.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27deb87f6ff30fc41506e6401d96298ef799145528ed61d9dd9dfcaba83b83b6
|
|
BLAKE2b-256 checksum How to use checksums |
923d7fdc8768a0157bc2bbf7768677813d74e4643f0bf3c43238ca1a7bfc05f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / tempocli-0.2.4-py2.py3-none-any.whl
| Download URL | tempocli-0.2.4-py2.py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e4719481b4cfaecbe0acbd05f958a63e259f06552ad4e9734512a7b3844dbad8
|
|
BLAKE2b-256 checksum How to use checksums |
cab56377785d88e7c3c965f766a7a60651bce03abb06646ce8ff8ddd515e99c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for tempocli 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.