pyvider 2025-03-25
Introduced a new `tfprotov6/conversion/` subpackage with five modules for value conversion
56 files · 2,088+ · 1,129-

Tfprotov6 Conversion Subpackage

6 files changed
  • __init__.py Added `conversion/__init__.py` (53 lines) with unified exports
  • cty_to_terraform.py Added `conversion/cty_to_terraform.py` (537 lines) for CTY-to-Terraform value encoding
  • dynamic_value.py Added `conversion/dynamic_value.py` (332 lines) for DynamicValue encode/decode operations
  • schema_types.py Added `conversion/schema_types.py` (412 lines) for schema type conversions
  • terraform_to_cty.py Added `conversion/terraform_to_cty.py` (178 lines) for Terraform-to-CTY value decoding
  • validation.py Added `conversion/validation.py` (147 lines) for type validation utilities
  • Added conversion/__init__.py (53 lines) with unified exports decouple internal
    1 file
    • __init__.py
  • Added conversion/cty_to_terraform.py (537 lines) for CTY-to-Terraform value encoding baseline internal
    1 file
    • cty_to_terraform.py
  • Added conversion/dynamic_value.py (332 lines) for DynamicValue encode/decode operations instantiate internal
    1 file
    • dynamic_value.py
  • Added conversion/schema_types.py (412 lines) for schema type conversions interface internal
    1 file
    • schema_types.py
  • Added conversion/terraform_to_cty.py (178 lines) for Terraform-to-CTY value decoding baseline internal
    1 file
    • terraform_to_cty.py
  • Added conversion/validation.py (147 lines) for type validation utilities instantiate internal
    1 file
    • validation.py

Old Conversion Modules Removed

3 files changed
  • dynamic_value_adapter.py Deleted `protocols/tfprotov6/dynamic_value_adapter.py` (274 lines)
  • schema_adapter.py Deleted `protocols/tfprotov6/schema_adapter.py` (311 lines)
  • type_conversion.py Deleted `protocols/tfprotov6/type_conversion.py` (278 lines)
  • Deleted protocols/tfprotov6/dynamic_value_adapter.py (274 lines) decouple internal
    1 file
    • dynamic_value_adapter.py
  • Deleted protocols/tfprotov6/schema_adapter.py (311 lines) decouple internal
    1 file
    • schema_adapter.py
  • Deleted protocols/tfprotov6/type_conversion.py (278 lines) decouple internal
    1 file
    • type_conversion.py

Handler Import Updates

1 file changed
  • conversion Updated all protocol handlers to import from `conversion/` subpackage instead of removed modules:
  • Updated all protocol handlers to import from conversion/ subpackage instead of removed modules: interface internal
    1 file
    • conversion

Modern Type Hints

4 files changed
  • 20250324-1934-the-type-conversion-shortening.diff Changes to 20250324-1934-the-type-conversion-shortening.diff
  • type_adapter.py Changes to type_adapter.py
  • type_conversion.py Changes to type_conversion.py
  • type_adapter.py Changes to type_adapter.py
  • Replaced Dict, List, Set with dict, list, set across: decouple internal
    4 files
    • 20250324-1934-the-type-conversion-shortening.diff
    • type_adapter.py
    • type_conversion.py
    • type_adapter.py
  • Removed @trace_span decorators from capability classes decouple internal
    4 files
    • 20250324-1934-the-type-conversion-shortening.diff
    • type_adapter.py
    • type_conversion.py
    • type_adapter.py
  • Changed from pyvider.hub.decorators import register_* to from pyvider.hub import register_* in components interface internal
    77 files
    • fake_cloud.py
    • fake_cloud_auth.py
    • env_variables.py
    • file_info.py
    • http_api.py
    • glom_functions.py
    • glom_impl.py
    • glom_wrapper.py
    • test_old_glom.py
    • database_connection.py
    • numeric_functions.py
    • string_manipulation.py
    • test_glom_functions.py
    • test_glom_integration.py
    • test_glom_wrapper.py
    • 20250324-1934-the-type-conversion-shortening.diff
    • zipcode.py
    • verify_zipcode.py
    • debug_schema.py
    • schema_converter.py
    • schema_showcase.py
    • terraform_state_schema_generator.py
    • database_connection_test.tf
    • key_value_store_test.tf
    • test_functions.tf
    • auth.py
    • base.py
    • __init__.py
    • capabilities.py
    • components.py
    • decorators.py
    • __init__.py
    • __init__.py
    • conversion_adapter.py
    • encoding_adapter.py
    • type_adapter.py
    • __init__.py
    • type_conversion.py
    • registry.py
    • conversion_adapter.py
    • encoding_adapter.py
    • type_adapter.py
    • service.py
    • __init__.py
    • cty_protobuf.py
    • dynamic_value_adapter.py
    • schema_adapter.py
    • __init__.py
    • cty_to_terraform.py
    • dynamic_value.py
    • schema_types.py
    • terraform_to_cty.py
    • validation.py
    • apply_resource_change.py
    • call_function.py
    • get_provider_schema.py
    • plan_resource_change.py
    • read_data_source.py
    • read_resource.py
    • upgrade_resource_state.py
    • validate_data_resource_config.py
    • validate_provider_config.py
    • validate_resource_config.py
    • base.py
    • provider.py
    • base.py
    • decorators.py
    • lifecycle.py
    • registry.py
    • attributes.py
    • definition.py
    • utils.py
    • debug.py
    • mock_function.py
    • test_schema_adapter_integration.py
    • test_schema_terraform_state.py
    • uv.lock

Function Components Restored

4 files changed
  • numeric_functions.py Moved `numeric_functions.py` back from `disabled/functions/` to `components/functions/`
  • functions Moved `numeric_functions.py` back from `disabled/functions/` to `components/functions/`
  • functions Moved `numeric_functions.py` back from `disabled/functions/` to `components/functions/`
  • string_manipulation.py Moved `string_manipulation.py` back from `disabled/functions/` to `components/functions/`
  • Moved numeric_functions.py back from disabled/functions/ to components/functions/ decouple internal
    3 files
    • numeric_functions.py
    • functions
    • functions
  • Moved string_manipulation.py back from disabled/functions/ to components/functions/ decouple internal
    3 files
    • string_manipulation.py
    • functions
    • functions
  • Enhanced string_manipulation.py join() function with defensive list type checks and per-item error handling remediate internal
    1 file
    • string_manipulation.py

File Content Resource

2 files changed
  • file_content.py Changes to file_content.py
  • mock_resource_file.py Changes to mock_resource_file.py
  • Expanded config extraction with multiple fallback strategies (dictionary, to_dict, dict, dynamic inspection, direct attribute access) harden internal
    2 files
    • file_content.py
    • mock_resource_file.py
  • Added detailed debug logging for config object inspection baseline behavioral
    2 files
    • file_content.py
    • mock_resource_file.py

Miscellaneous

4 files changed
  • .deepsource.toml Added `.deepsource.toml` configuration
  • pyproject.toml Updated `pyproject.toml`
  • base.py Updated `providers/base.py` and `providers/provider.py` with modernized type hints
  • provider.py Updated `providers/base.py` and `providers/provider.py` with modernized type hints
  • Added .deepsource.toml configuration baseline internal
    1 file
    • .deepsource.toml
  • Updated pyproject.toml baseline internal
    1 file
    • pyproject.toml
  • Updated providers/base.py and providers/provider.py with modernized type hints specify internal
    2 files
    • base.py
    • provider.py