pyvider-cty 2025-03-16
Added the `CtyDynamicValue` encoding class for Terraform dynamic value
7 files · 343+ · 334-

New: Dynamic Value Encoding (`src/pyvider/cty/encoding/dynamic_value.py`)

3 files changed
  • dynamic.py New `CtyDynamicValue` class for encoding/decoding Terraform dynamic values
  • codec.py Handles msgpack-based serialization with type metadata
  • __init__.py Exported `CtyDynamicValue` from package `__init__.py`
  • New CtyDynamicValue class for encoding/decoding Terraform dynamic values baseline internal
    1 file
    • dynamic.py
  • Handles msgpack-based serialization with type metadata decouple internal
    1 file
    • codec.py
  • Multiple iterations refining import paths and class naming (from DynamicValue to CtyDynamicValue) interface internal
    1 file
    • dynamic.py
  • Added TransformationError exception to exceptions.py instantiate internal
    1 file
    • exceptions.py
  • Exported CtyDynamicValue from package __init__.py baseline internal
    1 file
    • __init__.py

New: Terraform Value Encoding (`src/pyvider/cty/encoding/terraform_value.py`)

1 file changed
  • __init__.py Changed
  • 164-line module for Terraform-specific value representation baseline internal
    1 file
    • terraform_value.py
  • Handles conversion between Terraform wire format and internal cty types baseline errata
    1 file
    • terraform_value.py

CtyValue Base Enhancement

1 file changed
  • base.py Added ~30 lines of new functionality to `values/base.py`

Protobuf Encoding Simplification

1 file changed
  • dynamic.py Significantly reduced `protobuf.py` from large implementation to delegating to dynamic_value
  • Significantly reduced protobuf.py from large implementation to delegating to dynamic_value decouple internal
    1 file
    • dynamic.py
  • Removed redundant encoding logic decouple internal
    1 file
    • dynamic.py
2 files changed
  • convert-01.py See points for details
  • convert-01.py See points for details
  • Moved convert-01.py from project root to tests/convert-01.py qualify internal
    2 files
    • convert-01.py
    • convert-01.py