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.pyAdded `encoding/msgpack_serializer.py` (1317 lines) replacing the old msgpack module
- Added
encoding/__init__.pywith 96 lines of serializer exports and factory functions instantiate internal1 file
__init__.py
- Rewrote
encoding/json_serializer.py(855 lines, expanded from previous version) with comprehensive JSON encoding support baseline internal1 file
json_serializer.py
- Added
encoding/msgpack_serializer.py(1317 lines) replacing the old msgpack module instantiate internal1 file
codec.py
- Added
encoding/utils.py(267 lines) with shared encoding utilities instantiate internal1 file
utils.py
- Removed old
encoding/msgpack.py(519 lines) decouple internal1 file
msgpack.py
Test Overhaul
1 file changed
codec.pyAdded `tests/encoding/test_msgpack_serializer.py` (391 lines)
- Removed all
x_test_*andxtest_*disabled test files (conversions, operations, refinement, encoding) qualify internal1 file
codec.py
- Added
tests/encoding/test_json_serializer.py(416 lines) qualify internal1 file
test_json_serializer.py
- Added
tests/encoding/test_msgpack_serializer.py(391 lines) qualify internal1 file
codec.py
- Added
tests/encoding/test_serializers_integration.py(701 lines) for cross-serializer testing qualify internal1 file
test_serializers_integration.py
CtyValue Enhancement
1 file changed
base.py46 lines of changes to `values/base.py` adding new value methods
- 46 lines of changes to
values/base.pyadding new value methods instantiate internal1 file
base.py
Example Scripts
4 files changed
example-01-hello-world.pySee points for detailsexample-02-object-schema-validation.pySee points for detailsexample-03-advanced-type-system.pySee points for detailsexample-04-serialization.pySee points for details
- Added
example-01-hello-world.py: Basic type creation instantiate internal1 file
example-01-hello-world.py
- Added
example-02-object-schema-validation.py: Schema validation demo interface internal1 file
example-02-object-schema-validation.py
- Added
example-03-advanced-type-system.py: Advanced type features instantiate internal1 file
example-03-advanced-type-system.py
- Added
example-04-serialization.py: Serialization workflows instantiate internal1 file
example-04-serialization.py