GrdUtil 1.9.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.4
2
+ Name: GrdUtil
3
+ Version: 1.9.2
4
+ Summary: Various Python utility methods, printing, input handling, colouring text in Bash, and more
5
+ Author: Gardehal
6
+ License: MIT
7
+ Project-URL: Homepage, https://pypi.org/project/grdutil
8
+ Project-URL: Repository, https://github.com/gardehal/python-packages
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: furl==2.1.3
13
+ Requires-Dist: Requests==2.32.5
14
+ Requires-Dist: setuptools==75.6.0
15
+ Requires-Dist: validators==0.34.0
16
+ Dynamic: license-file
17
+
18
+ # python-packages / GrdUtil
19
+
20
+ Collection of general Python functions.
21
+
22
+ [![Publish to PyPI](https://github.com/gardehal/python-packages/actions/workflows/publish.yml/badge.svg)](https://github.com/gardehal/python-packages/actions/workflows/publish.yml)
23
+ [![GitHub Release](https://img.shields.io/github/release/gardehal/python-packages.svg)]()
24
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/gardehal/python-packages/blob/main/LICENSE)
25
+
26
+
27
+ ## Install locally
28
+
29
+ [PyPi project](https://pypi.org/project/grdutil/)
30
+
31
+ Install using pip
32
+ - $ `pip install grdutil`
33
+ - In python files: `from GrdUtil import *`
34
+
35
+ Install from files locally
36
+ - $ `cd [path to this folder]`
37
+ - $ `pip cache purge` (may help if old packages are cached)
38
+ - $ `pip install .`
39
+
40
+ ## Errors
41
+
42
+ - Colours not showing in printX functions, getting "←[92m" or similar codes at start of lines
43
+ - Make sure you're using a shell that can render colours, like Git Bash
44
+ - Enter $ `export FORCE_COLOR=true` in the shell and close, then open the shell
45
+
46
+ ## TODO
47
+
48
+ - fix init of FPO if file doesnt exist but path is valid
49
+ - fix pylance not recognizing this, temp fix by adding project to ctrl+, then extrapaths
50
+ - respect max width of terminal window
51
+ - asTable should have an option to not use labels, data as columns, not rows - use lists issue?
52
+ - logutil, missing JSON logging
53
+ - do something so colors show in MS cmd, powershell, etc.
54
+ - import, cannot use relative path like "..grdUtil.x" in grdService, or "..grdException.x" anywhere. Options? Always have to use self package?
55
+ - BaseService.baseRepository should be generic repo type, not locked to LocalJson, and be injectable
56
+ - delete WebUtil?
57
+ - convert DatetimeObject, FilePathObject to util functions
58
+ - 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...
@@ -0,0 +1,5 @@
1
+ grdutil-1.9.2.dist-info/licenses/LICENSE,sha256=vH9AHltxZTGGaOE1T86_npbQlJOicWirdoqaKTLuKMs,1070
2
+ grdutil-1.9.2.dist-info/METADATA,sha256=jujIDy5WWqb8oIq7d-M61M31Jstkc8LojcfC-PbaBP4,2701
3
+ grdutil-1.9.2.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
4
+ grdutil-1.9.2.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ grdutil-1.9.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021-2026 Gardehal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+