Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

misc

PyPI - Python Version PyPI PyPI - License pre-commit.ci status Code style: black Open in Visual Studio Code

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 Poetry 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:

$ poetry install

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

$ pre-commit install

Metadata

Release files for sco1-misc 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sco1-misc 0.1.1
File Size Uploaded
sco1-misc-0.1.1.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sco1-misc 0.1.1
File Interpreter ABI Platform
sco1_misc-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / sco1-misc-0.1.1.tar.gz

Download URL sco1-misc-0.1.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
21bbbefce57b28b7b513548584a937e200837a32233d653de92dd04fc27571f4
BLAKE2b-256 checksum
How to use checksums
e259a85059dd2acab627ee1af76b2f304daee37a0e76905ea3174766dc6b0eec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Windows/10

Release files / sco1_misc-0.1.1-py3-none-any.whl

Download URL sco1_misc-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00a6396f7688b88ee0841eec077794743ea23048dab581af67106a56f5a1a6bc
BLAKE2b-256 checksum
How to use checksums
f2fc425047841fe1f0c26e69b2cf26a371e924280041996f89ad3492505dde81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Windows/10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page