pyvider-cty
2025-03-29
Major simplification pass: removed capsule type system and serializer
59 files · 3,983+ · 6,275-
Capsule Type Removal
3 files changed
capsule.pyRemoved `capsule.py`, `types/capsule.py` (283 lines), `encoding/capsule_serializer.py` (711 lines)capsule.pyRemoved `capsule.py`, `types/capsule.py` (283 lines), `encoding/capsule_serializer.py` (711 lines)__init__.pyRemoved capsule exports from `types/__init__.py`
- Removed
capsule.py,types/capsule.py(283 lines),encoding/capsule_serializer.py(711 lines) decouple internal2 files
capsule.pycapsule.py
- Removed all capsule tests (5 test files)
qualify
internal
3 files
capsule.pycapsule.py__init__.py
- Removed capsule exports from
types/__init__.pydecouple internal1 file
__init__.py
CtyObject Simplification
2 files changed
object.py`structural/object.py`: 674 lines of changes (net reduction ~425 lines initially, then additions)base.pyAdded `CtyValue` import and changed `validate()` to return `CtyValue`
structural/object.py: 674 lines of changes (net reduction ~425 lines initially, then additions) decouple internal1 file
object.py
- Added
CtyValueimport and changedvalidate()to returnCtyValueinterface behavioral1 file
base.py
- Multiple iterations simplifying then re-adding object features
decouple
internal
2 files
object.pybase.py
- Added
ctypeClassVar field instantiate internal2 files
object.pybase.py
Collection Improvements
3 files changed
list.py`list.py`: 165 lines of changes streamlining validationmap.py`map.py`: 678 lines of significant restructuringset.py`set.py`: 22 lines of adjustments
Primitive Type Updates
4 files changed
bool.py`bool.py`: 93 lines of changesnumber.py`number.py`: 86 lines of improvementsstring.py`string.py`: 64 lines of updatesdynamic.py`dynamic.py`: 25 lines of enhancements
Serializer Reductions
1 file changed
codec.py`msgpack_serializer.py`: Removed 175 lines (capsule support)
json_serializer.py: Removed 124 lines (capsule support) instantiate internal1 file
json_serializer.py
msgpack_serializer.py: Removed 175 lines (capsule support) instantiate internal1 file
codec.py
Test Reorganization
6 files changed
test_cty_collections_list.pySimplified list tests: reduced `test_cty_collections_list.py` (333 lines removed), `test_cty_coll...test_cty_collections_list_improve.pySimplified list tests: reduced `test_cty_collections_list.py` (333 lines removed), `test_cty_coll...test_cty_list_nested.pyRenamed `test_list_with_nested_types.py` to `test_cty_list_nested.py`test_cty_list_comparison.pyAdded `test_cty_list_comparison.py` (86 lines), `test_cty_list_operations.py` (253 lines)test_cty_list_operations.pyAdded `test_cty_list_comparison.py` (86 lines), `test_cty_list_operations.py` (253 lines)test_object_init.pyUpdated object tests: `test_object_validation.py` (393 lines changed), `test_object_init.py` adju...
- Removed dynamic structural test (
xtest_cty_structural_dynamic.py) qualify internal1 file
xtest_cty_structural_dynamic.py
- Simplified list tests: reduced
test_cty_collections_list.py(333 lines removed),test_cty_collections_list_improve.py(371 lines removed) qualify internal2 files
test_cty_collections_list.pytest_cty_collections_list_improve.py
- Renamed
test_list_with_nested_types.pytotest_cty_list_nested.pydecouple internal1 file
test_cty_list_nested.py
- Added
test_cty_list_comparison.py(86 lines),test_cty_list_operations.py(253 lines) instantiate internal2 files
test_cty_list_comparison.pytest_cty_list_operations.py
- Updated object tests:
test_object_validation.py(393 lines changed),test_object_init.pyadjustments qualify internal1 file
test_object_init.py
Other
2 files changed
base.py`values/base.py`: 126 lines of changesenv.shAdded `env.sh` (20 lines) for development environment setup