stl: time logger
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.
Metadata
Release files for stltimelogger 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stltimelogger-0.0.4.tar.gz | 18.3 kB | Without provenance | Details for stltimelogger-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stltimelogger-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for stltimelogger-0.0.4-py3-none-any.whl |
Total release size: 41.9 kB
Release files / stltimelogger-0.0.4.tar.gz
| Download URL | stltimelogger-0.0.4.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e673ba3292d3258fcf1feb8a02824989a00d853a68c84819d9f4dbdc7362830b
|
|
BLAKE2b-256 checksum How to use checksums |
d326e1d11e0a514007d819120a04a8b64c5fa6135c141fc2611f201e0bfa7fbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / stltimelogger-0.0.4-py3-none-any.whl
| Download URL | stltimelogger-0.0.4-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baff332722ed345c3acb21c53bdde33cafc34c390a85a962e3098860233fca35
|
|
BLAKE2b-256 checksum How to use checksums |
e3bc705c41253fe11db9acc4f554ed86eba1882a1ab2207f40a45a118bc73a01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for stltimelogger 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.