Skip to main content

Time monitoring with shell commands,

Project description

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.

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

time-monitoring-0.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

time_monitoring-0.0.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file time-monitoring-0.0.1.tar.gz.

File metadata

  • Download URL: time-monitoring-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for time-monitoring-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0df4e51232405fc3324b475679c3c9a01f396ece3dd906a78172a2c69e8bc79b
MD5 c7b477a72f588ca03c7441392c4633bd
BLAKE2b-256 57d721e0bad649cc250b420abf6c13ab1b027669005690262e0eebf3aa93f5ec

See more details on using hashes here.

File details

Details for the file time_monitoring-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: time_monitoring-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for time_monitoring-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 514de9ffdf47dd42844893b1cf1c8be9d2fd9b0922d4cde27bdff7852cfd98be
MD5 cb1f3426f0622065a3cd6c753a4a02be
BLAKE2b-256 b2d5e1495e589cffce79b10ae56ffe716e1b656c04e06839ae5cb6d0e9baa0f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page