Skip to main content

Easy to use CLI time tracker written in Python

Project description

Maintainability

Introduction

Track time you’ve spent on different tasks. Then see how much time you’ve spent on each.

Continuation of time_management script idea.

Development

Built with Python, Poetry, SQLAlchemy for managing database, SQLite as database.

Testing: Pytest

Run package without building: poetry run python -m time_tracker [options] in the project directory

Example: poetry run python -m time_tracker -a Task1

Run tests: poetry run pytest

Installation

From source

run make build and then make package-install in the package directory.

PIP

run pip install tiempo-tracker

When you run app for the first time it will create a database. You’ll see a message:

Database not found. Creating new one

Also app will show path where database is stored.

Usage

tiempo-tracker can be invoked by trt command in the terminal. Available options:

-h, --help            show this help message and exit
-s START, --start START
                        Start task by providing its name
-f, --finish          Finish current task. Task also can be finished
                        by starting a different task
-a ADD, --add ADD     Add new task
-r REMOVE, --remove REMOVE
                        Remove the task
-l, --list            List of all tasks
-st STATS, --stats STATS
                        Stats about tasks

Start with adding new task:

trt -a task1

Then track the task:

trt -s task1

To finish the task either start a new one (add new task first if it doesn’t exist yet):

trt -s task2

or finish task

trt -f

Show all added tasks:

trt -l

If particular task is in progress there will be (in progress) status near this task. Example:

Project_work
Exercising (in progress)
Flask_API_project
Some_task

Remove task if it’s no longer needed:

trt -r task1

See how much time you’ve spent on each task during the day:

trt -st

Time will be presented in two formats: hr:min and as a decimal number. The latter is convenient for further storage in spreadsheets.

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

tiempo-tracker-0.1.1.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

tiempo_tracker-0.1.1-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

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