Skip to main content

Various Python utility methods, printing, input handling, colouring text in Bash, and more

Project description

python-packages / GrdUtil

Collection of general Python functions.

Publish to PyPI GitHub Release MIT License

Install locally

PyPi project

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=true in 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grdutil-1.9.2.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grdutil-1.9.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for grdutil-1.9.2.tar.gz
Algorithm Hash digest
SHA256 1f13d38175d0c43227b845cd7092adc2b4c737c001a38f31d577476dbedaa348
MD5 365554c0231204ece29aeccd5814f785
BLAKE2b-256 152b5b26bf629d09887aa743bd66e1ef423b5d14227f8a5d720b780811262b01

See more details on using hashes here.

Provenance

The following attestation bundles were made for grdutil-1.9.2.tar.gz:

Publisher: publish.yml on gardehal/python-packages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for grdutil-1.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ab5edd39c36aa1919aa770d93041f8e73f097fa5308afb890ffa3478e2dc439
MD5 ab1d64ed0008065bd53ffb31c04869b9
BLAKE2b-256 292624702dd3a8eb06db83731210d8c8b0ef20d70f8097b8cc776f3842eef8c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for grdutil-1.9.2-py3-none-any.whl:

Publisher: publish.yml on gardehal/python-packages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page