Skip to main content

Log your work time to tempo from the command line.

Project description

Log Time to Tempo

PyPI - Version PyPI - Python Version


Log your time to tempo on a self-hosted Jira instance from the convenience of your command line.

Requirements

This tool is developed against

  • Jira Server v9.4.17
  • Tempo Timesheets 17.2.0 plugin

Any deviation from that setup might lead to issues. Feel free to provide PRs to support other configurations.

Installation

pip install log-time-to-tempo

Getting Started

To initialize authentication and local caches of projects and issues, run

lt init

If you want to enable shell completion (which makes picking issues much easier), run

lt --install-completion

Usage

# log full workday to default issue
lt log
# log 2h to default issue
lt log 2h
# log 2h to specific issue
lt log 2h TSI-1

Configuration

The lt config command allows to change the default behavior, either system wide (--system) or in the local directory and subdirectories.

Here are a couple of usage examples:

# Set custom jira instance for all projects (i.e. system-wide)
lt config --system JIRA_INSTANCE https://jira.my-server.com

# Set default issue for worklogs created from current directory (and subdirectories)
lt config LT_LOG_ISSUE TSI-7

# Start all your worklogs at 10am (instead of the default 9am)
lt config --system LT_LOG_FROM_TIME 10

# Remove all custom configuration
lt config --unset

Changes

latest - 2024-XX-XX

  • authorize with JIRA instance using personal access token
    • prompt for token and persist using keyring package
  • create and list worklogs via tempo's REST API
  • list projects and issues using jira API
  • cache projects and issues for faster responses and shell completion

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

log-time-to-tempo-0.0.1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

log_time_to_tempo-0.0.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file log-time-to-tempo-0.0.1.tar.gz.

File metadata

  • Download URL: log-time-to-tempo-0.0.1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for log-time-to-tempo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 07b9f0fb8e3009799a85c8879c30a5903edcadd9370f2b5af57dfac3b21de663
MD5 789c695b0928cef57c377b93aca10805
BLAKE2b-256 5be793b5564239b17b1e6becb8d6a5dc7d8ae2d7511fb5befa8579948d4a224c

See more details on using hashes here.

File details

Details for the file log_time_to_tempo-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for log_time_to_tempo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c22499037d00825da92dfc98c5a968b67956a526e5d69b06e151a784b313e2a
MD5 44ed09c92d5bfc0ad578b59bc6904290
BLAKE2b-256 4967545371143f145b6e24d87e682c5aa7ab65c0674db8f391f88b8257844d9e

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