Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.
sco1-archivePublic archive

About

A collection of miscellaneous helpers

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

misc

PyPI - Python Version PyPI PyPI - License pre-commit.ci status

A collection of miscellaneous helpers.

The Help

sco1_misc.prompts

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)

csvdatetrim

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 as MM/DD/YYYY HH:MM:SS
  • The CSV file ends on the same date as the specified date filter

Input Parameters

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
  1. Output file is saved to the parent directory of --log-filepath
  2. Trimming will be aborted if --out-filename matches --log-filepath
  3. Any existing data will be discarded

Contributing

Development Environment

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 sync

A pre-commit configuration is also provided to create a pre-commit hook so linting errors aren't committed:

$ pre-commit install

About

A collection of miscellaneous helpers

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages

Generated from sco1/py-template