CLI tool to automate the submisison of tp timesheets
Project description
TP-Timesheet
Automated submission of TP timesheets. Version<1.0.0 carries out the submission only on the web form while Version>=1.0.0 also submits on the Clockify application.
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
Built Distribution
File details
Details for the file tp-timesheet-1.3.0.tar.gz
.
File metadata
- Download URL: tp-timesheet-1.3.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1764eddad7ed70d7696a04ec2ae81171b57142c46810201734160803fb14fc74 |
|
MD5 | 2f34838c91a6456e1e320d0c44f5613c |
|
BLAKE2b-256 | 8c18edfb271c772e5612fb9d723c2b3d31b7595edf95e9f2e9cb7d4e26d893dd |
File details
Details for the file tp_timesheet-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: tp_timesheet-1.3.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 123ae7c07923a14cf905f9d6cc2e27b603c442c57914d433d73b5e95c65adfb2 |
|
MD5 | 32f7a45a14f0f6160e1e10081a432de1 |
|
BLAKE2b-256 | b6a906fffd6dc97e15098f52a03f208dda07e540b22fe198d6bf0831322f623d |