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__.pyAdded `conversion/__init__.py` (53 lines) with unified exportscty_to_terraform.pyAdded `conversion/cty_to_terraform.py` (537 lines) for CTY-to-Terraform value encodingdynamic_value.pyAdded `conversion/dynamic_value.py` (332 lines) for DynamicValue encode/decode operationsschema_types.pyAdded `conversion/schema_types.py` (412 lines) for schema type conversionsterraform_to_cty.pyAdded `conversion/terraform_to_cty.py` (178 lines) for Terraform-to-CTY value decodingvalidation.pyAdded `conversion/validation.py` (147 lines) for type validation utilities
- Added
conversion/__init__.py(53 lines) with unified exports decouple internal1 file
__init__.py
- Added
conversion/cty_to_terraform.py(537 lines) for CTY-to-Terraform value encoding baseline internal1 file
cty_to_terraform.py
- Added
conversion/dynamic_value.py(332 lines) for DynamicValue encode/decode operations instantiate internal1 file
dynamic_value.py
- Added
conversion/schema_types.py(412 lines) for schema type conversions interface internal1 file
schema_types.py
- Added
conversion/terraform_to_cty.py(178 lines) for Terraform-to-CTY value decoding baseline internal1 file
terraform_to_cty.py
- Added
conversion/validation.py(147 lines) for type validation utilities instantiate internal1 file
validation.py
Old Conversion Modules Removed
3 files changed
dynamic_value_adapter.pyDeleted `protocols/tfprotov6/dynamic_value_adapter.py` (274 lines)schema_adapter.pyDeleted `protocols/tfprotov6/schema_adapter.py` (311 lines)type_conversion.pyDeleted `protocols/tfprotov6/type_conversion.py` (278 lines)
- Deleted
protocols/tfprotov6/dynamic_value_adapter.py(274 lines) decouple internal1 file
dynamic_value_adapter.py
- Deleted
protocols/tfprotov6/schema_adapter.py(311 lines) decouple internal1 file
schema_adapter.py
- Deleted
protocols/tfprotov6/type_conversion.py(278 lines) decouple internal1 file
type_conversion.py
Handler Import Updates
1 file changed
conversionUpdated all protocol handlers to import from `conversion/` subpackage instead of removed modules:
Modern Type Hints
4 files changed
20250324-1934-the-type-conversion-shortening.diffChanges to 20250324-1934-the-type-conversion-shortening.difftype_adapter.pyChanges to type_adapter.pytype_conversion.pyChanges to type_conversion.pytype_adapter.pyChanges to type_adapter.py
- Replaced
Dict,List,Setwithdict,list,setacross: decouple internal4 files
20250324-1934-the-type-conversion-shortening.difftype_adapter.pytype_conversion.pytype_adapter.py
- Removed
@trace_spandecorators from capability classes decouple internal4 files
20250324-1934-the-type-conversion-shortening.difftype_adapter.pytype_conversion.pytype_adapter.py
- Changed
from pyvider.hub.decorators import register_*tofrom pyvider.hub import register_*in components interface internal77 files
fake_cloud.pyfake_cloud_auth.pyenv_variables.pyfile_info.pyhttp_api.pyglom_functions.pyglom_impl.pyglom_wrapper.pytest_old_glom.pydatabase_connection.pynumeric_functions.pystring_manipulation.pytest_glom_functions.pytest_glom_integration.pytest_glom_wrapper.py20250324-1934-the-type-conversion-shortening.diffzipcode.pyverify_zipcode.pydebug_schema.pyschema_converter.pyschema_showcase.pyterraform_state_schema_generator.pydatabase_connection_test.tfkey_value_store_test.tftest_functions.tfauth.pybase.py__init__.pycapabilities.pycomponents.pydecorators.py__init__.py__init__.pyconversion_adapter.pyencoding_adapter.pytype_adapter.py__init__.pytype_conversion.pyregistry.pyconversion_adapter.pyencoding_adapter.pytype_adapter.pyservice.py__init__.pycty_protobuf.pydynamic_value_adapter.pyschema_adapter.py__init__.pycty_to_terraform.pydynamic_value.pyschema_types.pyterraform_to_cty.pyvalidation.pyapply_resource_change.pycall_function.pyget_provider_schema.pyplan_resource_change.pyread_data_source.pyread_resource.pyupgrade_resource_state.pyvalidate_data_resource_config.pyvalidate_provider_config.pyvalidate_resource_config.pybase.pyprovider.pybase.pydecorators.pylifecycle.pyregistry.pyattributes.pydefinition.pyutils.pydebug.pymock_function.pytest_schema_adapter_integration.pytest_schema_terraform_state.pyuv.lock
Function Components Restored
4 files changed
numeric_functions.pyMoved `numeric_functions.py` back from `disabled/functions/` to `components/functions/`functionsMoved `numeric_functions.py` back from `disabled/functions/` to `components/functions/`functionsMoved `numeric_functions.py` back from `disabled/functions/` to `components/functions/`string_manipulation.pyMoved `string_manipulation.py` back from `disabled/functions/` to `components/functions/`
- Moved
numeric_functions.pyback fromdisabled/functions/tocomponents/functions/decouple internal3 files
numeric_functions.pyfunctionsfunctions
- Moved
string_manipulation.pyback fromdisabled/functions/tocomponents/functions/decouple internal3 files
string_manipulation.pyfunctionsfunctions
- Enhanced
string_manipulation.pyjoin()function with defensive list type checks and per-item error handling remediate internal1 file
string_manipulation.py
File Content Resource
2 files changed
file_content.pyChanges to file_content.pymock_resource_file.pyChanges 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.pymock_resource_file.py
- Added detailed debug logging for config object inspection
baseline
behavioral
2 files
file_content.pymock_resource_file.py
Miscellaneous
4 files changed
.deepsource.tomlAdded `.deepsource.toml` configurationpyproject.tomlUpdated `pyproject.toml`base.pyUpdated `providers/base.py` and `providers/provider.py` with modernized type hintsprovider.pyUpdated `providers/base.py` and `providers/provider.py` with modernized type hints