Skip to main content

CLI tool to automate the submisison of tp timesheets

Project description

TP-Timesheet

Build Status PyPI version PyPI license

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


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.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

tp_timesheet-2.1.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file tp-timesheet-2.1.1.tar.gz.

File metadata

  • Download URL: tp-timesheet-2.1.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for tp-timesheet-2.1.1.tar.gz
Algorithm Hash digest
SHA256 aa59a9854c015607eaf474a84e63badb886b1b8c0e977e3a3b9cfc913f9e9c68
MD5 a73ea6de66ef36d0b32b1883af8eb315
BLAKE2b-256 bd868be3d257ad13fb5fbef99ce44ad3e7b2f677d9c60f6828bde85c36e343a5

See more details on using hashes here.

File details

Details for the file tp_timesheet-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: tp_timesheet-2.1.1-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.4

File hashes

Hashes for tp_timesheet-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1f3862e272295310ef4b7d3c5ce538d0f1edf30c61b28014b5a1e358660d46b
MD5 ac82f60ff15316d51a91c56acb9576ff
BLAKE2b-256 7ee91249c03f0cb939deaec99ce5ecf8a91dadbe9135ad5ea186493abe038d9c

See more details on using hashes here.

Supported by

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