Track vacation hours accrued.
Project description
timeoff ๐
Track your hours accrued and set goals and reminders to take a break!
$ timeoff list
| o ,---.,---.
|--- .,-.-.,---.,---.|__. |__.
| || | ||---'| || |
`---'`` ' '`---'`---'` `
Current schedule: SemiMonthly
4 hours on the 1st and 15th of the month
โญโโโโโโโโโโโโโฌโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโฎ
โ Start โ End โ Type โ Hours โ Remaining โ
โโโโโโโโโโโโโโผโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโค
โ โ โ Initial โ 100 โ 100 โ
โ 2023-05-12 โ - โ Vacation โ -8 โ 92 โ
โ 2023-05-15 โ - โ Accrued โ 4 โ 96 โ
โฐโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโฏ
Features
- Automaticaly updates PTO hours over time.
- Define schedules to set accrued PTO rates.
- View the remaining hours of PTO available to you.
Installation
To install timeoff
:
$ pip install timeoff
Usage
Documentation is in the works! Please run the -h
help flag in the meantime. The interactive prompts will guide you through further instructions.
$ timeoff -h
usage: timeoff [-h] {add,list,rm,settings} ...
Timeoff CLI
positional arguments:
{add,list,rm,settings}
sub-command help
add Add an absence
list List absences
rm Remove an absence
settings Manage settings
optional arguments:
-h, --help show this help message and exit
The data is stored in ~/.timeoff
.
Python API
You can also use this as a Python library.
Retrieve a list of all PTO hours remaining and absenses taken.
import timeoff
timeoff.get()
Return the number of hours of PTO remaining as of today.
timeoff.available_hours()
You can also pass in a future date to see how many hours you'll have accumulated by then.
from datetime import date
timeoff.available_hours(date(2023, 9, 4))
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
Built Distribution
File details
Details for the file timeoff-0.0.6_1.tar.gz
.
File metadata
- Download URL: timeoff-0.0.6_1.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5518a2071fd624acbf529544fdff5d58217c6fabce46eb8c4a7005eef9417a0 |
|
MD5 | 19eaf29818c951f82a3a9f5d42fa23e3 |
|
BLAKE2b-256 | bbc213e5f5193100b66b8959908ca70559f730624a6d83604b8e5fe9ad6b9194 |
File details
Details for the file timeoff-0.0.6-1-py3-none-any.whl
.
File metadata
- Download URL: timeoff-0.0.6-1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7addaa344d3e75bb1e0b5da80296aeb058f638b122b056a13fdd8ca3b8e14801 |
|
MD5 | 55da8d7aaf3c447b64f1dad4421dd273 |
|
BLAKE2b-256 | c032bde7fcf3378665c7926f57f9771607b799e4240cf45a1cc36a143a20d807 |