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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file tiempo-tracker-0.1.1.tar.gz.

File metadata

  • Download URL: tiempo-tracker-0.1.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Darwin/20.3.0

File hashes

Hashes for tiempo-tracker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c839eff816fbc2f1157e4dbcc500cb0e99c13676e90a53b4847523224f3f0d80
MD5 84f2611d8e0be14aa5ea4f2a8a15ab93
BLAKE2b-256 3e66ea7700d5482a30e96b696648a71fdc1e567893bbcccdb16e0c1d7511d7cc

See more details on using hashes here.

File details

Details for the file tiempo_tracker-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tiempo_tracker-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Darwin/20.3.0

File hashes

Hashes for tiempo_tracker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 393cfc38f6cf5616f29ef4e6c935200d87d57b94aa9c3f2ccc05b628569b3b42
MD5 50f90ba8b5bff9a98118e79a1afae77d
BLAKE2b-256 9b8a980d8ba30dde28f5da228b4ad6e346981c08076edc298fffd0f4ae3a97fb

See more details on using hashes here.

Supported by

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