CLI tool to automate the submisison of tp timesheets
Project description
TP-Timesheet
Automated submission of TP timesheets.
- Version 0.x.x is web form only
- Version 1.x.x is web + Clockify
- Version 2.x.x is Clockify only
Installation
Install
This tool is published on pypi so from any terminal with python3 installed run:
pip install tp-timesheet
Note: some outdated OS's still require pip3 instead of pip. If you get an error Unknown command: pip
then try the following:
pip3 install tp-timesheet
Upgrade
pip install --upgrade tp-timesheet
Uninstall
pip uninstall tp-timesheet
Usage
Run the tool with the help option to find out additional usage information
tp-timesheet --help
Common cli options
# submit live hours (default) for today
tp-timesheet --start today
# submit live hours (default) for next 5 days
tp-timesheet --start today --count 5
# submit for Mon 3/10/22 to Thursday 6/10/22 with a task of Out Of Office (OOO)
tp-timesheet --start '3/10/22' --count 5 -t OOO
# Schedule the form to submit automatically on weekdays
tp-timesheet --automate weekdays
# append '--verbose' to any command to get more log messages about what is going on
# append '--dry-run' to any command to avoid clicking submit. Good for testing
Development
Install the dev environment and run tool locally:
pip install -e .[dev]
tp-timesheet --help
note: if zsh is used, install the dev environment with:
pip install -e ".[dev]"
Contributing
To run checks prior to committing
black --check --diff tp_timesheet # See what formatting changes need to be made
black tp_timesheet # Run formatter
pylint tp_timesheet # Run linter
pytest # Run testing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tp-timesheet-2.1.0.tar.gz
(12.3 kB
view details)
Built Distribution
File details
Details for the file tp-timesheet-2.1.0.tar.gz
.
File metadata
- Download URL: tp-timesheet-2.1.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ba1cf2448526100c888dd237cd6ef52c41e0848f427233d04dba707405ee99 |
|
MD5 | d1551d2adcc870d30fa6e3fcf25a3344 |
|
BLAKE2b-256 | 28214d5bb0c6f88ed69d7c9c9ccfe3d06ef8c168a93c2161575c55364c404d12 |
File details
Details for the file tp_timesheet-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: tp_timesheet-2.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71dd0972149dd14dd7c865078756f05ec23d70ad6292232ab11f9ac1bdacf75c |
|
MD5 | 458306045050b04314a6caf33234088a |
|
BLAKE2b-256 | 8dee823601a9ca2cb2b35d62a3f09448c2f7aa2fda5a078e0dae6d2d443d174c |