pyvider
2025-04-06
Major restructuring across the entire codebase: rewrote function components (deleted old...
35 files · 2,842+ · 3,174-
Function Components Rewrite
4 files changed
numeric_functions.pyDeleted `components/disabled/functions/numeric_functions.py` (444 lines) and `string_manipulation...string_manipulation.pyDeleted `components/disabled/functions/numeric_functions.py` (444 lines) and `string_manipulation...numeric_functions.pyAdded `components/functions/numeric_functions.py` (324 lines) - simplified version with streamlin...string_manipulation.pyAdded `components/functions/string_manipulation.py` (188 lines) - simplified version with reduced...
- Deleted
components/disabled/functions/numeric_functions.py(444 lines) andstring_manipulation.py(373 lines) decouple internal2 files
numeric_functions.pystring_manipulation.py
- Added
components/functions/numeric_functions.py(324 lines) - simplified version with streamlined function implementations baseline internal1 file
numeric_functions.py
- Added
components/functions/string_manipulation.py(188 lines) - simplified version with reduced helper functions baseline internal1 file
string_manipulation.py
Decorator Modules
2 files changed
decorators.pyAdded `src/pyvider/functions/decorators.py` (57 lines) for function registration decoratorsdecorators.pyAdded `src/pyvider/data_sources/decorators.py` (15 lines) for data source registration decorators
- Added
src/pyvider/functions/decorators.py(57 lines) for function registration decorators instantiate internal1 file
decorators.py
- Added
src/pyvider/data_sources/decorators.py(15 lines) for data source registration decorators instantiate internal1 file
decorators.py
Protocol Conversion Additions
4 files changed
dynamic_value.pyAdded `protocols/tfprotov6/adapters/dynamic_value.py` (126 lines) replacing the old adapterfunction_adapter.pyAdded `protocols/tfprotov6/adapters/function_adapter.py` (80 lines) for function-to-protobuf conv...function.pyAdded `protocols/tfprotov6/conversion/function.py` (110 lines) for function schema conversiondynamic_value_adapter.pyDeleted `protocols/tfprotov6/adapters/dynamic_value_adapter.py` (219 lines)
- Added
protocols/tfprotov6/adapters/dynamic_value.py(126 lines) replacing the old adapter interface internal1 file
dynamic_value.py
- Added
protocols/tfprotov6/adapters/function_adapter.py(80 lines) for function-to-protobuf conversion instantiate internal1 file
function_adapter.py
- Added
protocols/tfprotov6/conversion/function.py(110 lines) for function schema conversion interface internal1 file
function.py
- Deleted
protocols/tfprotov6/adapters/dynamic_value_adapter.py(219 lines) decouple internal1 file
dynamic_value_adapter.py
Conversion System
4 files changed
terraform.pySignificantly reworked `conversion/terraform.py` (401 lines removed, net simplification)types.pyReworked `conversion/types.py` (256 lines of changes)__init__.pyUpdated `conversion/__init__.py` and `conversion/base.py` with cleaner exportsbase.pyUpdated `conversion/__init__.py` and `conversion/base.py` with cleaner exports
- Significantly reworked
conversion/terraform.py(401 lines removed, net simplification) baseline internal1 file
terraform.py
- Reworked
conversion/types.py(256 lines of changes) decouple internal1 file
types.py
- Updated
conversion/__init__.pyandconversion/base.pywith cleaner exports decouple internal2 files
__init__.pybase.py
Functions Framework
2 files changed
base.pyRewrote `functions/base.py` (547 lines of changes) with simplified function definition handlingadapters.pyReworked `functions/adapters.py` (291 lines of changes) with simplified adapter logic
Resource System
7 files changed
base.pyExpanded `resources/base.py` (272 lines of changes) with enhanced resource lifecycle managementcontext.pyUpdated `resources/context.py`, `resources/types.py`, `resources/decorators.py`types.pyUpdated `resources/context.py`, `resources/types.py`, `resources/decorators.py`decorators.pyUpdated `resources/context.py`, `resources/types.py`, `resources/decorators.py`__init__.pyAdded new exports in `resources/__init__.py`exceptions.pyAdded `resources/exceptions.py` (2 lines) and `resources/protocol.py` (2 lines)protocol.pyAdded `resources/exceptions.py` (2 lines) and `resources/protocol.py` (2 lines)
- Expanded
resources/base.py(272 lines of changes) with enhanced resource lifecycle management decouple internal1 file
base.py
- Updated
resources/context.py,resources/types.py,resources/decorators.pydecouple internal3 files
context.pytypes.pydecorators.py
- Added new exports in
resources/__init__.pyinstantiate internal1 file
__init__.py
- Added
resources/exceptions.py(2 lines) andresources/protocol.py(2 lines) interface internal2 files
exceptions.pyprotocol.py
Protocol Handlers
5 files changed
get_functions.pySignificantly expanded `get_functions.py` (128 lines of changes)read_resource.pyExpanded `read_resource.py` (280 lines of changes)validate_resource_config.pyUpdated `validate_resource_config.py` (68 lines of changes)schema_types.pyUpdated `conversion/schema_types.py` (185 lines of changes)terraform_to_cty.pyExpanded `conversion/terraform_to_cty.py` (460 lines of changes)
- Significantly expanded
get_functions.py(128 lines of changes) decouple internal1 file
get_functions.py
- Expanded
read_resource.py(280 lines of changes) decouple internal1 file
read_resource.py
- Updated
validate_resource_config.py(68 lines of changes) decouple internal1 file
validate_resource_config.py
- Updated
conversion/schema_types.py(185 lines of changes) decouple internal1 file
schema_types.py
- Expanded
conversion/terraform_to_cty.py(460 lines of changes) decouple internal1 file
terraform_to_cty.py
Hub Module
2 files changed
__init__.pyUpdated `hub/__init__.py` (26 lines) and `hub/decorators.py` (120 lines of changes)decorators.pyUpdated `hub/__init__.py` (26 lines) and `hub/decorators.py` (120 lines of changes)
File Content Resource
1 file changed
file_content.pyReworked `components/resources/file_content.py` (967 lines of balanced changes)