Skip to main content

Time monitoring

The time-monitoring package provides useful tools to monitor your time. It can be used to improve productivity, or to generate invoice.

Installation

Requirements: The package is based on python and shell.

We provide an installation through the pipy package repository, hence you can use pip to download it.

$ pip install time-monitoring

If you are working with conda environments, make sure that your pip command is linked to conda by typing $ which pip and making sure that the output displays conda installation path.

Once you have intall the package, you should initialize buffer files with the following command

$ setup_time_report

Buffers files are kept in the folder time-monitoring of your home directory. This is specified by the BUFFER_PATH variable in the file src/time_monitor/config.py. If you want to modify this location, you should download the code source, modify those variables and build the package (e.g. by running $ python setup.py install).

There is few variables that are fixed for you, that you might want to change if you were to use this package to it full potential. In particular, there is macros defines in the file sys.prefix / latex / invoice / constants.tex where sys.prefix is the prefix of your python installation that can be check in python by importing the sys module and printing the value of sys.prefix.

Future

Shell commands

This package provides the following shell executables.

Basic commands

  • The begin command
$ begin <activity> -m --message "<optional message>"

This command indicates that you have begun a new activity specified by <activity>, e.g. <activity>=work. You may add a message such as "fixing issue 31".
If you use this command while another activity was already declared, it will assume you just stop the precedent activity.

  • The message command
$ message "<message>" "<first optional message>" [...] "<final optional message>"

This command allows you to add a message without modifying the activity you are currently pursuing. For example, if you have already declare being in your spare time and decide to read the press and would like to monitor this, you can add the message "reading the press".

  • The stop command
$ stop

When you stop an activity and do not begin a new one, run this command.

  • The report command
$ report

This command saves all activities recorded since last report in order to generate a new report. This is useful to generate statistics or invoices.
Reports are numbered according the the format <YYYY><MM><NB> where <YYYY> and <MM> denominates the current year and month and <NB> is counting the number of reports generated so far in the month.
Past activity reports are kept in a data folder specified by the variable DATA_PATH of the time_monitoring/config.py file.

Advanced commands

  • The activity command
$ activity

This command opens the buffer file that records your current activity. It is useful to check make sure you have declared it correctly and eventually correct it.

  • The stats command
$ stats -r --report <report number>

This command sums up current period activities, or the activities saved in the report <report number>.

  • The invoice command
$ invoice -a --activity <activity> -r --report <report number> -p --price <hourly rate> -c --change <change rate> -i --invoice <invoice number>

This command is useful to generate invoices. You can bill at a given <hourly rate> price for a given <activity> regarding houred reported in the report <report number>. The generated pdf file will be located in the latex folder of this code source.

Metadata

Release files for time-monitoring 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for time-monitoring 0.0.1
File Size Uploaded
time-monitoring-0.0.1.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for time-monitoring 0.0.1
File Interpreter ABI Platform
time_monitoring-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / time-monitoring-0.0.1.tar.gz

Download URL time-monitoring-0.0.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0df4e51232405fc3324b475679c3c9a01f396ece3dd906a78172a2c69e8bc79b
BLAKE2b-256 checksum
How to use checksums
57d721e0bad649cc250b420abf6c13ab1b027669005690262e0eebf3aa93f5ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

Release files / time_monitoring-0.0.1-py3-none-any.whl

Download URL time_monitoring-0.0.1-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
514de9ffdf47dd42844893b1cf1c8be9d2fd9b0922d4cde27bdff7852cfd98be
BLAKE2b-256 checksum
How to use checksums
b2d5e1495e589cffce79b10ae56ffe716e1b656c04e06839ae5cb6d0e9baa0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page