A collection of miscellaneous helpers.
Helper wrappers for Tkinter's selection dialogs
prompt_for_file(title: str, start_dir: pathlib.Path, multiple: bool, filetypes: list[tuple[str, str]])prompt_for_dir(title: str, start_dir: pathlib.Path)
A CLI tool for date windowing CSV log files
NOTE: The following assumptions are made about the input CSV file:
- The CSV file contains a column named
"Time", with timestamps formatted asMM/DD/YYYY HH:MM:SS - The CSV file ends on the same date as the specified date filter
| Parameter | Description | Type | Default |
|---|---|---|---|
--log-filepath |
Path to log file to trim. | Path|None |
GUI Prompt |
--test_date |
Trim date selection, as YYYY-MM-DD. |
str |
Today's date |
--out-filename |
Output filename.1,2,3 | str|None |
<in_filename>_<test_date>.csv |
- Output file is saved to the parent directory of
--log-filepath - Trimming will be aborted if
--out-filenamematches--log-filepath - Any existing data will be discarded
This project uses uv to manage dependencies. With your fork cloned to your local machine, you can install the project and its dependencies to create a development environment using:
$ uv syncA pre-commit configuration is also provided to create a pre-commit hook so linting errors aren't committed:
$ pre-commit install