Skip to main content

CLI time tracking software indented for use with JIRA

Project description

https://img.shields.io/badge/TODOs-420-729fcf.svg https://img.shields.io/badge/downloads-743M%2Fday-brightgreen.svg https://img.shields.io/badge/coverage-no-lightgrey.svg https://img.shields.io/badge/build-disappointed-blue.svg https://img.shields.io/badge/node.js-webscale-orange.svg https://img.shields.io/badge/available%20on-itunes-9377db.svg https://img.shields.io/badge/uptime-since%20lunch-78bdf2.svg https://img.shields.io/badge/kony-2012-ff69b4.svg

This is some time/task tracking software. It can talk (barely) to/at JIRA and Freshdesk. 🐑 PLEASELIKEANDSUBSCRIBE

Requirements

python 3.6

Installation

Install from pypi with pip. Like sudo python3 -m pip install impetuous or python3 -m pip install --user impetuous or something.

Clone the source code and install with python3 -m pip install --user -e .. If you want. You don’t have to. I’m not the police.

CLI Usage

The data is stored in a sqlite3 database at ~/.local/share/impetuous/data.sqlite. This can be overridden by setting IM_DB.

To start doing something, run im doing something. Once you’re not doing anything anymore, run it again but doing tell it what you’re doing; im doing. If you start doing something and you’re already doing a thing, it’ll try to stop the thing you’re doing before starting the new one. You can use -w to specify the date and/or time you’re starting the thing.

im show will list time entries. It uses --since and --until to filter on entries to show. By default, that range is today. Sometimes it’s nice to look at yesterday, so you can pass -y or --yesterday for that. You can provide -y multiple times to keep going back. These time range options should be given after im and before the action (such as doing or show).

--yesterday works by moving back the dates (given and default) for --since and --until and --when for im doing.

Many actions can do dry runs with --dry-run.

When all else fails, use im edit to open a YAML representation of your time entries in EDITOR. Like im show, this only shows entries filtered by --yesterday, --since, and --until.

im post will post your time entries to an external service you have configured. The responses are saved in the database, so impetuous will remember the result and won’t double-post if you run im post again.

Examples

Here’s a thing.

Usage Demo

Configuration and JIRA and Freshdesk

Edit the configuration by running im config-edit, which just opens the configuration file in ~/.config/impetuous/config.ini in EDITOR. This is an example config.ini:

[jira]
api = jira
server = https://funkymonkey.atlassian.net
basic_auth = admin:hunter2
pattern = ((?:FOO-\d+)|(?:BAR-\d+))

[freshdesk]
api = freshdesk
server = https://funkymonkey.freshdesk.com
api_key = xxxxxxxxxxxxxxxxxxxx
pattern = freshdesk (\d+)
name = sheepdesk
abbr = 🐑

Each section defines an external service for logging time against. The api determines how we can talk to it. You can add multiple sections and call them whatever you want.

By default, the name and abbreviated name are taken from the section name, but you can set them as shown in the “freshdesk” section above.

Encoding Config Passwords

You can use im encode to get impetuous to encode your passwords in the configuration file. Then it decodes them when it uses them. It supports a few different encodings. You can encode it multiple times. I don’t know why you want to use this. But it’s there now.

Development

Versioning

This project does not follow semantic versioning yet as it doesn’t have anything considered to have a public API. The version numbers are entirely arbitrary and meaningless, just like everything else in life.

Tests

Oh man, I don’t know. Just run python3 -m pytest and hope for the best I suppose.

Internationalization / Localization

Maybe?

  1. python3 setup.py extract_messages

  2. python3 setup.py update_catalog -l fr

  3. Modify the translation file ending in .po … if you want

  4. python3 setup.py compile_catalog

  5. Run with LANGUAGE=fr

You actually only need to do step 4 and 5 to run the program with localization if you don’t want to make modifications.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

impetuous-1.0.9-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file impetuous-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: impetuous-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for impetuous-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3d979db16eac07067941de2ff8b6b436ad6c62b87120db811c2bc0722668ecb8
MD5 0b3c36f1cc831eb36954079dca25ecdc
BLAKE2b-256 58de42f9cbd769351dfbd8cdcd36d4556dbbd3fbae6122377ae6c9950065c012

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