pyvider-cty 2025-03-17
Major encoding layer restructuring: introduced serializer abstraction
21 files · 1,671+ · 481-

Encoding Layer Rewrite

1 file changed
  • dynamic.py Added `encoding/dynamic.py`: Refactored dynamic value encoding (later renamed back to `dynamic_va...
  • Added encoding/serializer.py: Base serializer abstraction instantiate internal
    1 file
    • serializer.py
  • Added encoding/registry.py: Serializer registration and lookup instantiate internal
    1 file
    • registry.py
  • Added encoding/protocols.py: Encoding protocol definitions interface internal
    1 file
    • protocols.py
  • Added encoding/exceptions.py: Encoding-specific exception types instantiate internal
    1 file
    • exceptions.py
  • Added encoding/json_serializer.py: New JSON serializer implementation instantiate internal
    1 file
    • json_serializer.py
  • Added encoding/dynamic.py: Refactored dynamic value encoding (later renamed back to dynamic_value.py) decouple internal
    1 file
    • dynamic.py
  • Removed old encoding/json.py, encoding/msgpack.py, encoding/protobuf.py implementations decouple internal
    3 files
    • json.py
    • msgpack.py
    • protobuf.py
  • Removed encoding/msgpack_encoding.py and encoding/json_encoding.py decouple internal
    2 files
    • msgpack_encoding.py
    • json_encoding.py

Types Directory Rename Cycle

3 files changed
  • __init__.py Renamed types/ to ctypes/ and back, updating imports throughout
  • __init__.py Renamed types/ to ctypes/ and back, updating imports throughout
  • __init__.py Renamed types/ to ctypes/ and back, updating imports throughout
  • Renamed types/ to ctypes/ namespace with updated imports across entire codebase decouple internal
    5 files
    • __init__.py
    • __init__.py
    • __init__.py
    • tuple.py
    • test_cty_type.py
  • Then renamed back from ctypes/ to types/ (resolved naming conflict) remediate internal
    5 files
    • __init__.py
    • __init__.py
    • __init__.py
    • tuple.py
    • test_cty_type.py
  • Updated all import references in ~40+ files across src and tests qualify internal
    6 files
    • __init__.py
    • __init__.py
    • __init__.py
    • tuple.py
    • base.py
    • test_cty_type.py

Type Package Init Improvements

1 file changed
  • __init__.py Reworked `__init__.py` for `types/collections/`, `types/primitives/`, `types/structural/`
  • Reworked __init__.py for types/collections/, types/primitives/, types/structural/ decouple internal
    1 file
    • __init__.py
  • Multiple iterations fixing export lists and import paths remediate internal
    1 file
    • __init__.py
3 files changed
  • dynamic.py Added `tests/test_dynamic.py` for dynamic value testing
  • __init__.py Added `tests/__init__.py`
  • __init__.py Updated test imports to use `pyvider.cty` public API
  • Removed src/pyvider/cty/type.py (consolidated into types package) baseline internal
    1 file
    • type.py
  • Added tests/test_dynamic.py for dynamic value testing qualify internal
    1 file
    • dynamic.py
  • Added tests/__init__.py qualify internal
    1 file
    • __init__.py
  • Fixed typo in test_collections_map.py comment specify errata
    1 file
    • test_collections_map.py
  • Updated test imports to use pyvider.cty public API qualify behavioral
    1 file
    • __init__.py
  • Added tuple type init improvements instantiate architectural
    3 files
    • dynamic.py
    • __init__.py
    • __init__.py