Skip to main content

Time to submit while mobile working

Project description

Time to submit while mobile working ヽ(´▽`)/

Python application

Setup (currently)

docker tryout one-liner

 docker run -it --rm python:3.9-slim-buster python3 -m pip install timrr && python3 -m timrr calc

locally

python3 -m pip install poetry
poetry install
poetry shell
poetry run python3 timrr.py

Use the tool

 python3 -m timrr calc --start-time 8:15 --end-time 18:00 --break-time 1.0
| Description           | Result   |
|-----------------------+----------|
| Start time            | 08:15:00 |
| End time              | 18:00:00 |
| Duration at work      | 9:45:00  |
| Included break time   | 1.0      |
| Hours worked          | 8.75     |
| 1 day of mobile work  | 7.4      |
| Add extra mobile work | 1.35     |
 python3 -m timrr calc
| Description           | Result   |
|-----------------------+----------|
| Start time            | 09:00:00 |
| End time              | 17:30:00 |
| Duration at work      | 8:30:00  |
| Included break time   | 1.0      |
| Hours worked          | 7.5      |
| 1 day of mobile work  | 7.4      |
| Add extra mobile work | 0.1      |
 python3 -m timrr calc --help
Usage: timrr.py calc [OPTIONS]

Options:
  -s, --start-time TEXT
  -e, --end-time TEXT
  -b, --break-time TEXT
  -ch, --contract-hours-per-day TEXT
  --local-config / --no-local-config
  --help                          Show this message and exit.

configure defaults

 python3 -m timrr configure
Provide a default start time of work: 8:00
Provide a default end time of work: 17:30
Provide a default break time: 1,25
Provide a default for work hours per day: 7.4
Configuration completed! (config file location: /home/tempusr/.timrr)
Usage: timrr.py configure [OPTIONS]

Options:
  --start-time TEXT              [required]
  --end-time TEXT                [required]
  --break-time TEXT              [required]
  --contract-hours-per-day TEXT  [required]
  --help                         Show this message and exit.

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

timrr-1.0.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

timrr-1.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file timrr-1.0.1.tar.gz.

File metadata

  • Download URL: timrr-1.0.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure

File hashes

Hashes for timrr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ae1dba7ae0cb5fd7411067374777505b9f1d1fa44d7fb5708fa53dcefce774ec
MD5 050a446ca64bb2efa53572649fa7da63
BLAKE2b-256 807384c9bc796dc7a9844fb22f5cf74ff741a93329c90e7c512878b06786e5bc

See more details on using hashes here.

File details

Details for the file timrr-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: timrr-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure

File hashes

Hashes for timrr-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 415e75623b17dfda28457f838d3dc62efc71458673d8d6d0da67286172f32ba7
MD5 01c14b6cfd37f9fbe63eed7f7c1860e6
BLAKE2b-256 4b86eef734cba4b5656d46ccc45e8c7a9d6e17900a09ef5807b6954d98460ab0

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