A command-line utility to interact with BairesDev Time tracker
Project description
Time tracker
Load and show your hours in TimeTracker with just a command line.
Install
pip install timetracker-cli
Config file
Edit configuration file in ~/.timetracker/config.toml
[credentials]
username = 'Homer.Simpson'
password = 'do.it.for.her'
[options]
project = 'Springfield Nuclear Power Plant'
assignment = 'Nuclear Safety Inspection'
focal = 'Mr. Burns'
hours = 6
Load hours
tt load [OPTIONS]
or
tt load-csv [OPTIONS] CSV_FILE
Examples
- Load your today hours
$ tt load -t "I did something awesome today"
Success!
- Load hours from 3 days ago
$ tt load -t "I did something awesome" -d "3 days ago"
Success!
- Load 6.5 hours for last friday
$ tt load -t "I did something awesome" -d friday -h 6.5
Success!
- Load hours from a csv file
$ tt load-csv hours_to_load.csv
Success!
Show hours loaded
tt show [OPTIONS]
Examples
- Show your current month loaded hours
$ tt show
Start: 01/05/2019, End: 02/05/2019
+------------+-----------------------------------------------------------------+
| Date | Description |
+------------+-----------------------------------------------------------------+
| 01/05/2019 | BURNS-4765 I pressed a button in the board |
+------------+-----------------------------------------------------------------+
| 02/05/2019 | BURNS-4678 I slept all day long |
+------------+-----------------------------------------------------------------+
- Show your current month loaded hours with weekdays
$ tt show -w
Start: 01/05/2019, End: 02/05/2019
+---------+------------+-----------------------------------------------------------------+
| Weekday | Date | Description |
+---------+------------+-----------------------------------------------------------------+
| W | 01/05/2019 | BURNS-4765 I pressed a button in the board |
+---------+------------+-----------------------------------------------------------------+
| TH | 02/05/2019 | BURNS-4678 I slept all day long |
+---------+------------+-----------------------------------------------------------------+
- Show your loaded hours from a range of time
$ tt show -s "4 days ago" -e yesterday
Start: 28/04/2019, End: 01/05/2019
+------------+-----------------------------------------------------------------+
| Date | Description |
+------------+-----------------------------------------------------------------+
| 28/05/2019 | BURNS-4210 I slept all day long |
+------------+-----------------------------------------------------------------+
| 29/04/2019 BURNS-4283 I missed March |
+------------+-----------------------------------------------------------------+
| 30/04/2019 | BURNS-4763 I actually stayed at Moe's Tabern but |
+------------+-----------------------------------------------------------------+
| 01/05/2019 | BURNS-4765 I pressed a button in the board |
+------------+-----------------------------------------------------------------+
- Show your loaded hours from a single date. Several languages supported.
$ tt show -d martes
Start: 28/04/2019, End: 28/04/2019
+------------+-----------------------------------------------------------------+
| Date | Description |
+------------+-----------------------------------------------------------------+
| 28/05/2019 | BURNS-4210 I slept all day long |
+------------+-----------------------------------------------------------------+
$ tt show -w -d quarta-feira
Start: 29/04/2019, End: 29/04/2019
+------------+-----------------------------------------------------------------+
| Date | Description |
+------------+-----------------------------------------------------------------+
| 29/04/2019 BURNS-4283 I missed March |
+------------+-----------------------------------------------------------------+
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
timetracker-cli-1.3.0.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file timetracker-cli-1.3.0.tar.gz
.
File metadata
- Download URL: timetracker-cli-1.3.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a6138d16c6c8e9030022eb7808be3014fd4d8c3742172266b2a68e8aa69018 |
|
MD5 | 50cbd2c4791e00fb39036402debe2fd5 |
|
BLAKE2b-256 | ca92fdb8ad63badb1b426a08a16bffbe418a64712cc6f64dbb61f3700a5b47a0 |
File details
Details for the file timetracker_cli-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: timetracker_cli-1.3.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f61a3d6478c87a634722e2c0b1e7835d5adbf21bbda781a7e2675bf7c97fb3 |
|
MD5 | e8f050569172d0a3aa12e258518484f5 |
|
BLAKE2b-256 | 68fa542e4163956888b78937b055050d734696f345ec2159245cf9ec5a424864 |