Skip to main content

cli time logger

Project description

A cli time logger. Diligently make logs when you switch on/off the working mode and it will dutifully do the arithmetics.

usage

The time from the moment you do:

stl start lumberjacking

until the moment you do:

stl stop

will be added to the time logs. Once your logs start piling up, you can fulfil your working hours curiousity:

stl show --task lumberjacking
stl show --month october
stl show --span 15 oct 5 dec

Check stl show --help for all the options, there are a few of these. The data is stored in plaintext files in ~/.config/stl, safe to move around or version control.

installation

This is a standard Python 3 package without dependencies. You can install it through pip:

pip3 install stltimelogger

or, alternatively, you can clone this repo (safe to delete afterwards) and do:

python3 setup.py test
python3 setup.py install

To uninstall:

pip3 uninstall stltimelogger
rm -r ~/.config/stl

Of course, all of that could be happening within a virtualenv/venv.

docs

stl start makes a log that you start working. You can also add a task name if you want to see stats about that particular task later on.

stl stop makes a log that you have stopped working.

stl show (also stl status) shows you how far you are into your current task when called without additional arguments. The latter might be:

  • stl show --day DAY (also -d) where DAY can be anything like: 15 oct 2016, october 15, 15, 2016-10-15, today, yesterday, this, last.

  • stl show --week WEEK (also -w) where WEEK can be either this or last.

  • stl show --month MONTH (also -m) where MONTH can be anything like: oct, oct 2016, 2016 oct, october, 10, this, last.

  • stl show --year YEAR (also -y) where YEAR can be anything like: 2016, 16, this, last.

  • stl show --span SPAN (also -s) where SPAN can be anything like: 15 25 oct, 15 oct 2016 25 oct 2016, 15 25, 15. If you specify only one date, the second will be set to today; e.g. stl show -s 1 oct is the same as stl show -m oct. The interval is inclusive at both ends.

  • stl show --task TASK (also -t) where TASK is the name of a task you have prudently specified when you had been working on it.

stl add START STOP [TASK] allows you to cheat and add log entries for arbitrary time intervals in the past and future.

stl edit WHAT opens the right file in your $EDITOR. WHAT can be anything which is a valid stl show -m argument. As you might guess, logs are stored in month files.

similar projects

  • timeflow: also in Python but somewhat different approach.

  • taskwarrior: a great todo cli manager which includes time logging functionality as well.

licence

MIT. Do as you please and praise the snake gods.

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

stltimelogger-0.0.4.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

stltimelogger-0.0.4-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file stltimelogger-0.0.4.tar.gz.

File metadata

File hashes

Hashes for stltimelogger-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e673ba3292d3258fcf1feb8a02824989a00d853a68c84819d9f4dbdc7362830b
MD5 3c63b1ea4e6b1be37f23d7af09c35841
BLAKE2b-256 d326e1d11e0a514007d819120a04a8b64c5fa6135c141fc2611f201e0bfa7fbc

See more details on using hashes here.

File details

Details for the file stltimelogger-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for stltimelogger-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 baff332722ed345c3acb21c53bdde33cafc34c390a85a962e3098860233fca35
MD5 147b3e44b7300b647ffed0822c2e1d96
BLAKE2b-256 e3bc705c41253fe11db9acc4f554ed86eba1882a1ab2207f40a45a118bc73a01

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