gcf-python 0.1.1__tar.gz → 0.1.2__tar.gz

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.
Files changed (24) hide show
  1. {gcf_python-0.1.1 → gcf_python-0.1.2}/CHANGELOG.md +5 -0
  2. {gcf_python-0.1.1 → gcf_python-0.1.2}/PKG-INFO +1 -1
  3. {gcf_python-0.1.1 → gcf_python-0.1.2}/pyproject.toml +1 -1
  4. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/__init__.py +1 -1
  5. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/generic.py +3 -2
  6. {gcf_python-0.1.1 → gcf_python-0.1.2}/.github/workflows/ci.yml +0 -0
  7. {gcf_python-0.1.1 → gcf_python-0.1.2}/.github/workflows/publish.yml +0 -0
  8. {gcf_python-0.1.1 → gcf_python-0.1.2}/.gitignore +0 -0
  9. {gcf_python-0.1.1 → gcf_python-0.1.2}/LICENSE +0 -0
  10. {gcf_python-0.1.1 → gcf_python-0.1.2}/README.md +0 -0
  11. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/cli.py +0 -0
  12. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/constants.py +0 -0
  13. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/decode.py +0 -0
  14. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/delta.py +0 -0
  15. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/encode.py +0 -0
  16. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/session.py +0 -0
  17. {gcf_python-0.1.1 → gcf_python-0.1.2}/src/gcf/types.py +0 -0
  18. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/__init__.py +0 -0
  19. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/test_decode.py +0 -0
  20. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/test_delta.py +0 -0
  21. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/test_encode.py +0 -0
  22. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/test_generic.py +0 -0
  23. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/test_roundtrip.py +0 -0
  24. {gcf_python-0.1.1 → gcf_python-0.1.2}/tests/test_session.py +0 -0
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.2 (2026-06-04)
4
+
5
+ - Fix: escape `"` inside quoted strings in `encode_generic`
6
+ - Fix: quote empty strings as `""` per spec
7
+
3
8
  ## v0.1.1 (2026-06-03)
4
9
 
5
10
  - `encode_generic`: encode arbitrary Python values into GCF tabular format
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gcf-python
3
- Version: 0.1.1
3
+ Version: 0.1.2
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,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "gcf-python"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Python implementation of GCF (Graph Compact Format): token-optimized wire format for LLM tool responses"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -59,4 +59,4 @@ __all__ = [
59
59
  "encode_with_session",
60
60
  ]
61
61
 
62
- __version__ = "0.1.1"
62
+ __version__ = "0.1.2"
@@ -140,8 +140,9 @@ def _format_value(value: Any) -> str:
140
140
  if isinstance(value, (int, float)):
141
141
  return str(value)
142
142
  s = str(value)
143
- if "|" in s or "\n" in s:
144
- return f'"{s}"'
143
+ if "|" in s or "\n" in s or s == "":
144
+ escaped = s.replace("\\", "\\\\").replace('"', '\\"')
145
+ return f'"{escaped}"'
145
146
  return s
146
147
 
147
148
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes