This project has been archived by its maintainers, and is no longer receiving any updates.
misc
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 asMM/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 |
- 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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sco1-misc-0.1.1.tar.gz | 5.6 kB | Without provenance | Details for sco1-misc-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sco1_misc-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for sco1_misc-0.1.1-py3-none-any.whl |
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
|
Security for sco1-misc 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.