pyvider 2025-04-03
Moved data sources and function components back to `disabled/` directory
20 files · 710+ · 1,167-

Component Reorganization to disabled/

10 files changed
  • env_variables.py Moved `components/data_sources/env_variables.py` to `components/disabled/data_resources/env_varia...
  • env_variables.py Moved `components/data_sources/env_variables.py` to `components/disabled/data_resources/env_varia...
  • file_info.py Moved `components/data_sources/file_info.py` to `components/disabled/data_resources/file_info.py`
  • file_info.py Moved `components/data_sources/file_info.py` to `components/disabled/data_resources/file_info.py`
  • http_api.py Moved `components/data_sources/http_api.py` to `components/disabled/data_resources/http_api.py`
  • http_api.py Moved `components/data_sources/http_api.py` to `components/disabled/data_resources/http_api.py`
  • numeric_functions.py Moved `components/functions/numeric_functions.py` to `components/disabled/functions/numeric_funct...
  • numeric_functions.py Moved `components/functions/numeric_functions.py` to `components/disabled/functions/numeric_funct...
  • dynamic_config.py Moved `components/resources/dynamic_config.py` to `components/disabled/resources/dynamic_config.py`
  • dynamic_config.py Moved `components/resources/dynamic_config.py` to `components/disabled/resources/dynamic_config.py`
  • Moved components/data_sources/env_variables.py to components/disabled/data_resources/env_variables.py decouple internal
    2 files
    • env_variables.py
    • env_variables.py
  • Moved components/data_sources/file_info.py to components/disabled/data_resources/file_info.py decouple internal
    2 files
    • file_info.py
    • file_info.py
  • Moved components/data_sources/http_api.py to components/disabled/data_resources/http_api.py decouple internal
    2 files
    • http_api.py
    • http_api.py
  • Moved components/functions/numeric_functions.py to components/disabled/functions/numeric_functions.py decouple internal
    2 files
    • numeric_functions.py
    • numeric_functions.py
  • Moved components/resources/dynamic_config.py to components/disabled/resources/dynamic_config.py decouple internal
    2 files
    • dynamic_config.py
    • dynamic_config.py
  • Updated schema imports in data resources from pyvider.schema.pvfactory to pyvider.schema interface internal
    2 files
    • pyvider.schema.pvfactory
    • pyvider.schema
  • Removed unused CTY type imports and Schema, Block, StringKind, Attribute, AttributeType, SchemaType from http_api.py deprecate internal
    21 files
    • file_content.py
    • env.sh
    • database_connection_test.tf
    • key_value_store_test.tf
    • dynamic_config_test.tf
    • env_vars_test.tf
    • file_content_test.tf
    • file_info_test.tf
    • test_functions.tf
    • http_api_test.tf
    • test_all_components.sh
    • schema.py
    • terraform.py
    • adapters.py
    • base.py
    • dynamic_value_adapter.py
    • schema_types.py
    • base.py
    • base.py
    • base.py
    • test_tfprotov6_adapter_dynamic_value.py

Dynamic Value Adapter Expansion

1 file changed
  • dynamic_value_adapter.py Expanded `dynamic_value_adapter.py` from 124 to 247 lines with additional conversion helpers and ...
  • Expanded dynamic_value_adapter.py from 124 to 247 lines with additional conversion helpers and error handling remediate internal
    1 file
    • dynamic_value_adapter.py

Conversion Module Updates

4 files changed
  • schema.py Updated `conversion/schema.py` (48 lines of changes)
  • terraform.py Updated `conversion/terraform.py` (269 lines of changes) with further method refinements
  • types.py Updated `conversion/types.py` with schema type conversion improvements
  • adapters.py Updated `functions/adapters.py` with 38 lines of changes
  • Updated conversion/schema.py (48 lines of changes) interface internal
    1 file
    • schema.py
  • Updated conversion/terraform.py (269 lines of changes) with further method refinements baseline internal
    1 file
    • terraform.py
  • Updated conversion/types.py with schema type conversion improvements interface internal
    1 file
    • types.py
  • Updated functions/adapters.py with 38 lines of changes decouple internal
    1 file
    • adapters.py

Old Code Removal

3 files changed
  • terraform_codec.py Deleted `src/pyvider/utils/terraform_codec.py` (737 lines)
  • mock_message.proto Deleted `tests/utils/mock_message.proto` (6 lines) and `tests/utils/mock_message_pb2.py` (36 lines)
  • mock_message_pb2.py Deleted `tests/utils/mock_message.proto` (6 lines) and `tests/utils/mock_message_pb2.py` (36 lines)
  • Deleted src/pyvider/utils/terraform_codec.py (737 lines) decouple internal
    1 file
    • terraform_codec.py
  • Deleted tests/utils/mock_message.proto (6 lines) and tests/utils/mock_message_pb2.py (36 lines) qualify internal
    2 files
    • mock_message.proto
    • mock_message_pb2.py

Adapter Tests

1 file changed
  • test_tfprotov6_adapter_dynamic_value.py Added `tests/test_tfprotov6_adapter_dynamic_value.py` (161 lines) testing the new dynamic value a...
  • Added tests/test_tfprotov6_adapter_dynamic_value.py (161 lines) testing the new dynamic value adapter functions qualify internal
    1 file
    • test_tfprotov6_adapter_dynamic_value.py

Miscellaneous

4 files changed
  • database_connection.py Updated `components/disabled/resources/database_connection.py` import from `pyvider.hub.decorator...
  • key_value_store.py Updated `components/disabled/resources/key_value_store.py` with 8 lines of changes
  • file_content.py Updated `file_content.py` resource with 16 lines of changes
  • numeric_functions.py Whitespace normalization in `numeric_functions.py` (trailing whitespace cleanup)
  • Updated components/disabled/resources/database_connection.py import from pyvider.hub.decorators to pyvider.hub interface internal
    1 file
    • database_connection.py
  • Updated components/disabled/resources/key_value_store.py with 8 lines of changes decouple internal
    1 file
    • key_value_store.py
  • Updated file_content.py resource with 16 lines of changes decouple internal
    1 file
    • file_content.py
  • Whitespace normalization in numeric_functions.py (trailing whitespace cleanup) deprecate errata
    1 file
    • numeric_functions.py