Various Python utility methods, printing, input handling, colouring text in Bash, and more
Project description
python-packages / GrdUtil
Collection of general Python functions.
Install locally
Install using pip
- $
pip install grdutil - In python files:
from GrdUtil import *
Install from files locally
- $
cd [path to this folder] - $
pip cache purge(may help if old packages are cached) - $
pip install .
Errors
- Colours not showing in printX functions, getting "←[92m" or similar codes at start of lines
- Make sure you're using a shell that can render colours, like Git Bash
- Enter $
export FORCE_COLOR=truein the shell and close, then open the shell
TODO
- fix init of FPO if file doesnt exist but path is valid
- fix pylance not recognizing this, temp fix by adding project to ctrl+, then extrapaths
- respect max width of terminal window
- asTable should have an option to not use labels, data as columns, not rows - use lists issue?
- logutil, missing JSON logging
- do something so colors show in MS cmd, powershell, etc.
- import, cannot use relative path like "..grdUtil.x" in grdService, or "..grdException.x" anywhere. Options? Always have to use self package?
- BaseService.baseRepository should be generic repo type, not locked to LocalJson, and be injectable
- delete WebUtil?
- convert DatetimeObject, FilePathObject to util functions
- json datetimes defaults to string, could be fixed? - seems not, despite hinting like "created: datetime", if the data is null, the type() is always NoneType. Alterative1: Can hack with using a default method on every model, but its slow and unreliable. Alternative2: wrap all datetimes and default-to-string values in object like { pythonType: "datetime", value: "2022-..." }. Requires a lot of refactoring from current...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grdutil-1.9.2.tar.gz.
File metadata
- Download URL: grdutil-1.9.2.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f13d38175d0c43227b845cd7092adc2b4c737c001a38f31d577476dbedaa348
|
|
| MD5 |
365554c0231204ece29aeccd5814f785
|
|
| BLAKE2b-256 |
152b5b26bf629d09887aa743bd66e1ef423b5d14227f8a5d720b780811262b01
|
Provenance
The following attestation bundles were made for grdutil-1.9.2.tar.gz:
Publisher:
publish.yml on gardehal/python-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
grdutil-1.9.2.tar.gz -
Subject digest:
1f13d38175d0c43227b845cd7092adc2b4c737c001a38f31d577476dbedaa348 - Sigstore transparency entry: 976156667
- Sigstore integration time:
-
Permalink:
gardehal/python-packages@c8682c86fe5ffab1192bfef838a14963cf4c2345 -
Branch / Tag:
refs/tags/v1.9.2 - Owner: https://github.com/gardehal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c8682c86fe5ffab1192bfef838a14963cf4c2345 -
Trigger Event:
release
-
Statement type:
File details
Details for the file grdutil-1.9.2-py3-none-any.whl.
File metadata
- Download URL: grdutil-1.9.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ab5edd39c36aa1919aa770d93041f8e73f097fa5308afb890ffa3478e2dc439
|
|
| MD5 |
ab1d64ed0008065bd53ffb31c04869b9
|
|
| BLAKE2b-256 |
292624702dd3a8eb06db83731210d8c8b0ef20d70f8097b8cc776f3842eef8c2
|
Provenance
The following attestation bundles were made for grdutil-1.9.2-py3-none-any.whl:
Publisher:
publish.yml on gardehal/python-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
grdutil-1.9.2-py3-none-any.whl -
Subject digest:
5ab5edd39c36aa1919aa770d93041f8e73f097fa5308afb890ffa3478e2dc439 - Sigstore transparency entry: 976156669
- Sigstore integration time:
-
Permalink:
gardehal/python-packages@c8682c86fe5ffab1192bfef838a14963cf4c2345 -
Branch / Tag:
refs/tags/v1.9.2 - Owner: https://github.com/gardehal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c8682c86fe5ffab1192bfef838a14963cf4c2345 -
Trigger Event:
release
-
Statement type: