gcf-python 0.2.0__py3-none-any.whl → 0.3.0__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.
- gcf/generic.py +4 -0
- {gcf_python-0.2.0.dist-info → gcf_python-0.3.0.dist-info}/METADATA +1 -1
- {gcf_python-0.2.0.dist-info → gcf_python-0.3.0.dist-info}/RECORD +6 -6
- {gcf_python-0.2.0.dist-info → gcf_python-0.3.0.dist-info}/WHEEL +0 -0
- {gcf_python-0.2.0.dist-info → gcf_python-0.3.0.dist-info}/entry_points.txt +0 -0
- {gcf_python-0.2.0.dist-info → gcf_python-0.3.0.dist-info}/licenses/LICENSE +0 -0
gcf/generic.py
CHANGED
|
@@ -59,6 +59,10 @@ def _encode_array(items: list, name: str, lines: list[str], depth: int) -> None:
|
|
|
59
59
|
|
|
60
60
|
if _is_uniform_dict_list(items):
|
|
61
61
|
_encode_tabular(items, name, lines, depth)
|
|
62
|
+
elif all(not isinstance(item, (dict, list)) for item in items):
|
|
63
|
+
# Primitive array: inline as comma-separated values.
|
|
64
|
+
vals = ",".join(_format_value(item) for item in items)
|
|
65
|
+
lines.append(f"{prefix}{name}[{len(items)}]: {vals}")
|
|
62
66
|
else:
|
|
63
67
|
lines.append(f"{prefix}## {name} [{len(items)}]")
|
|
64
68
|
for i, item in enumerate(items):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gcf-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Python implementation of GCF (Graph Compact Format): token-optimized wire format for LLM tool responses
|
|
5
5
|
Project-URL: Homepage, https://github.com/blackwell-systems/gcf-python
|
|
6
6
|
Project-URL: Documentation, https://blackwell-systems.github.io/gcf/
|
|
@@ -4,11 +4,11 @@ gcf/constants.py,sha256=cmZ8YJSOB0im_eyfN8v4UvrLpBC6Fuf4cfcKZGbutxY,638
|
|
|
4
4
|
gcf/decode.py,sha256=48G6XmBilGYl0-c_Xy7MX0iTwOxGW9bn3wC4UyNApc4,5465
|
|
5
5
|
gcf/delta.py,sha256=xU0ujtSq1iF7yU8yk_WNQKh8iove-WUV_nKSuvW1XVk,1656
|
|
6
6
|
gcf/encode.py,sha256=Oljb1r5b7SHmng1XYvcvuJMpaRfJVJ81VOyocPf_kAs,2915
|
|
7
|
-
gcf/generic.py,sha256=
|
|
7
|
+
gcf/generic.py,sha256=Nf1Ii0pYS0dgZ4o2ghl-3Qhnms-kCKY2D3q-3-oGpe8,5454
|
|
8
8
|
gcf/session.py,sha256=4_ARRL06Tg2CI8D2eyi0V5nFphFAFMfOKBXYnAbI6Nk,4690
|
|
9
9
|
gcf/types.py,sha256=AWm-LQoSqLHAYtEjcAxWQZqJ4JXqNreLUKO2mJFgNMA,1465
|
|
10
|
-
gcf_python-0.
|
|
11
|
-
gcf_python-0.
|
|
12
|
-
gcf_python-0.
|
|
13
|
-
gcf_python-0.
|
|
14
|
-
gcf_python-0.
|
|
10
|
+
gcf_python-0.3.0.dist-info/METADATA,sha256=-EBHKi9DP35REiBPf40__SJ_8QPxk41uRPCiCil-ZRM,7929
|
|
11
|
+
gcf_python-0.3.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
12
|
+
gcf_python-0.3.0.dist-info/entry_points.txt,sha256=aFT6gqlkh8iGfM8cblE-LUMxHH08_v71IIoZtDdRIVA,37
|
|
13
|
+
gcf_python-0.3.0.dist-info/licenses/LICENSE,sha256=txSvg3E4LugiB7MOOTci6WKd6wMOrOJTvaITeFJ2SgU,1074
|
|
14
|
+
gcf_python-0.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|