omdev 0.0.0.dev187__py3-none-any.whl → 0.0.0.dev188__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.
- omdev/tools/json/rendering.py +3 -3
- {omdev-0.0.0.dev187.dist-info → omdev-0.0.0.dev188.dist-info}/METADATA +2 -2
- {omdev-0.0.0.dev187.dist-info → omdev-0.0.0.dev188.dist-info}/RECORD +7 -7
- {omdev-0.0.0.dev187.dist-info → omdev-0.0.0.dev188.dist-info}/LICENSE +0 -0
- {omdev-0.0.0.dev187.dist-info → omdev-0.0.0.dev188.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev187.dist-info → omdev-0.0.0.dev188.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev187.dist-info → omdev-0.0.0.dev188.dist-info}/top_level.txt +0 -0
omdev/tools/json/rendering.py
CHANGED
@@ -3,10 +3,10 @@ import json
|
|
3
3
|
import typing as ta
|
4
4
|
|
5
5
|
from omlish import lang
|
6
|
-
from omlish import term
|
7
6
|
from omlish.formats.json.render import JsonRenderer
|
8
7
|
from omlish.formats.json.stream.parse import JsonStreamParserEvent
|
9
8
|
from omlish.formats.json.stream.render import StreamJsonRenderer
|
9
|
+
from omlish.term import codes as tc
|
10
10
|
|
11
11
|
|
12
12
|
##
|
@@ -43,9 +43,9 @@ class Renderer(lang.Abstract):
|
|
43
43
|
|
44
44
|
def term_color(o: ta.Any, state: JsonRenderer.State) -> tuple[str, str]:
|
45
45
|
if state is JsonRenderer.State.KEY:
|
46
|
-
return
|
46
|
+
return tc.SGR(tc.SGRs.FG.BRIGHT_BLUE), tc.SGR(tc.SGRs.RESET)
|
47
47
|
elif isinstance(o, str):
|
48
|
-
return
|
48
|
+
return tc.SGR(tc.SGRs.FG.GREEN), tc.SGR(tc.SGRs.RESET)
|
49
49
|
else:
|
50
50
|
return '', ''
|
51
51
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: omdev
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev188
|
4
4
|
Summary: omdev
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,7 +12,7 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Operating System :: POSIX
|
13
13
|
Requires-Python: >=3.12
|
14
14
|
License-File: LICENSE
|
15
|
-
Requires-Dist: omlish==0.0.0.
|
15
|
+
Requires-Dist: omlish==0.0.0.dev188
|
16
16
|
Provides-Extra: all
|
17
17
|
Requires-Dist: black~=24.10; extra == "all"
|
18
18
|
Requires-Dist: pycparser~=2.22; extra == "all"
|
@@ -177,13 +177,13 @@ omdev/tools/json/formats.py,sha256=XHabWAQnAQ9uNS7fHu3mdgxoptWw00RVLq08uadD6kk,1
|
|
177
177
|
omdev/tools/json/io.py,sha256=sfj2hJS9Hy3aUR8a_lLzOrYcmL9fSKyvOHiofdUASsI,1427
|
178
178
|
omdev/tools/json/parsing.py,sha256=YOeTRY6Gd89EfcHvqXO5PRWJ3IgRCpNnI54Lb_N3v2k,2183
|
179
179
|
omdev/tools/json/processing.py,sha256=iFm5VqaxJ97WHaun2ed7NEjMxhFeJqf28bLNfoDJft0,1209
|
180
|
-
omdev/tools/json/rendering.py,sha256=
|
180
|
+
omdev/tools/json/rendering.py,sha256=tMcjOW5edfozcMSTxxvF7WVTsbYLoe9bCKFh50qyaGw,2236
|
181
181
|
omdev/tools/pawk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
182
182
|
omdev/tools/pawk/__main__.py,sha256=VCqeRVnqT1RPEoIrqHFSu4PXVMg4YEgF4qCQm90-eRI,66
|
183
183
|
omdev/tools/pawk/pawk.py,sha256=Eckymn22GfychCQcQi96BFqRo_LmiJ-EPhC8TTUJdB4,11446
|
184
|
-
omdev-0.0.0.
|
185
|
-
omdev-0.0.0.
|
186
|
-
omdev-0.0.0.
|
187
|
-
omdev-0.0.0.
|
188
|
-
omdev-0.0.0.
|
189
|
-
omdev-0.0.0.
|
184
|
+
omdev-0.0.0.dev188.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
185
|
+
omdev-0.0.0.dev188.dist-info/METADATA,sha256=cjKh_dFXi5T7txrXI8xzK1sTpgYVo3kY1dxENbUnhsE,1760
|
186
|
+
omdev-0.0.0.dev188.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
187
|
+
omdev-0.0.0.dev188.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
|
188
|
+
omdev-0.0.0.dev188.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
|
189
|
+
omdev-0.0.0.dev188.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|