pyvider-cty 2025-03-25
Replaced the old encoding system with new serializer architecture
30 files · 3,947+ · 7,963-

New Serializer Architecture

1 file changed
  • codec.py Added `encoding/msgpack_serializer.py` (1317 lines) replacing the old msgpack module
  • Added encoding/__init__.py with 96 lines of serializer exports and factory functions instantiate internal
    1 file
    • __init__.py
  • Rewrote encoding/json_serializer.py (855 lines, expanded from previous version) with comprehensive JSON encoding support baseline internal
    1 file
    • json_serializer.py
  • Added encoding/msgpack_serializer.py (1317 lines) replacing the old msgpack module instantiate internal
    1 file
    • codec.py
  • Added encoding/utils.py (267 lines) with shared encoding utilities instantiate internal
    1 file
    • utils.py
  • Removed old encoding/msgpack.py (519 lines) decouple internal
    1 file
    • msgpack.py

Test Overhaul

1 file changed
  • codec.py Added `tests/encoding/test_msgpack_serializer.py` (391 lines)
  • Removed all x_test_* and xtest_* disabled test files (conversions, operations, refinement, encoding) qualify internal
    1 file
    • codec.py
  • Added tests/encoding/test_json_serializer.py (416 lines) qualify internal
    1 file
    • test_json_serializer.py
  • Added tests/encoding/test_msgpack_serializer.py (391 lines) qualify internal
    1 file
    • codec.py
  • Added tests/encoding/test_serializers_integration.py (701 lines) for cross-serializer testing qualify internal
    1 file
    • test_serializers_integration.py

CtyValue Enhancement

1 file changed
  • base.py 46 lines of changes to `values/base.py` adding new value methods
  • 46 lines of changes to values/base.py adding new value methods instantiate internal
    1 file
    • base.py

Example Scripts

4 files changed
  • example-01-hello-world.py See points for details
  • example-02-object-schema-validation.py See points for details
  • example-03-advanced-type-system.py See points for details
  • example-04-serialization.py See points for details
  • Added example-01-hello-world.py: Basic type creation instantiate internal
    1 file
    • example-01-hello-world.py
  • Added example-02-object-schema-validation.py: Schema validation demo interface internal
    1 file
    • example-02-object-schema-validation.py
  • Added example-03-advanced-type-system.py: Advanced type features instantiate internal
    1 file
    • example-03-advanced-type-system.py
  • Added example-04-serialization.py: Serialization workflows instantiate internal
    1 file
    • example-04-serialization.py