Skip to main content

Command line interface for interacting with Tempo.

Project description

Command line interface for interacting with Tempo.

Build PyPI version Supported Python versions

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.

----
author: 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 author override.
  - issue: INT-11
    time_spent: 90s
    start_time: "2018-08-05 11:00:00"
    author: 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:

---
url: https://api.tempo.io/2/
token: <token>

It is also possible to specify the token using the TEMPOCLI_TOKEN environment variable.

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

tempocli-0.1.5.dev2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

tempocli-0.1.5.dev2-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tempocli-0.1.5.dev2.tar.gz.

File metadata

  • Download URL: tempocli-0.1.5.dev2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for tempocli-0.1.5.dev2.tar.gz
Algorithm Hash digest
SHA256 a178f3b19a492ee3543c74286f3445645299641b283ae152f918a83b43a849b9
MD5 04dac6f701017c89e096beaf8522a56a
BLAKE2b-256 927a32df241b76665f734536cc8fab84ed4e5dd1121808652e85c41633a82c3d

See more details on using hashes here.

File details

Details for the file tempocli-0.1.5.dev2-py2.py3-none-any.whl.

File metadata

  • Download URL: tempocli-0.1.5.dev2-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for tempocli-0.1.5.dev2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa686a98ec24d406124dae69aa3c8dabe1377fba62c5cef430d39b87765480f5
MD5 063cbc996c441cf1cc2c78b0e36c9425
BLAKE2b-256 74af58cd8bbd50bd661518baa20e71c479ce23ee788165ce92f4bd80ac24ea19

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page