Timesheet Helper is a collection of Python scripts designed to process text-based timesheets copied from Microsoft Word. The scripts can remove time spans, calculate the duration of time spans, and format the timesheet for either email or timesheet entry purposes.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have Python installed on your machine. The scripts are written in Python 3.
# Check Python version
python --version
Clone the repository to your local machine.
# Clone the repository
git clone https://github.com/Christopher-C-Robinson/Timesheet_Helper.git
- Copy your bulleted timesheet from Microsoft Word.
- Paste it within the
timesheet.py
script. - Run the
timesheet.py
script.
# Run the script
python timesheet.py
This script defines a function remove_timespans
that removes time spans from the text.
This script defines a function replace_with_duration
that replaces time spans in the text with their corresponding durations.
This script imports functions from the other two scripts and processes a text-based timesheet.
This script fetches information about a specific test case from Azure DevOps using the Azure DevOps API.
-
Ensure you have the required environment variables set in a
.env
file:API_VERSION
ORGANIZATION
PERSONAL_ACCESS_TOKEN
-
Run the script:
python azureDevopsAPI.py
This script extracts the names of all failed test cases from multiple XML files and copies the formatted list to the clipboard.
- Ensure you have the required directories and file paths set in the script.
- Run the script:
python extract_failed_tests_from_xml.py
If you would like to contribute to the Timesheet Helper project, please feel free to fork the repository, create a feature branch, and submit a pull request.