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.py Deleted `components/disabled/functions/numeric_functions.py` (444 lines) and `string_manipulation...
  • string_manipulation.py Deleted `components/disabled/functions/numeric_functions.py` (444 lines) and `string_manipulation...
  • numeric_functions.py Added `components/functions/numeric_functions.py` (324 lines) - simplified version with streamlin...
  • string_manipulation.py Added `components/functions/string_manipulation.py` (188 lines) - simplified version with reduced...
  • Deleted components/disabled/functions/numeric_functions.py (444 lines) and string_manipulation.py (373 lines) decouple internal
    2 files
    • numeric_functions.py
    • string_manipulation.py
  • Added components/functions/numeric_functions.py (324 lines) - simplified version with streamlined function implementations baseline internal
    1 file
    • numeric_functions.py
  • Added components/functions/string_manipulation.py (188 lines) - simplified version with reduced helper functions baseline internal
    1 file
    • string_manipulation.py

Decorator Modules

2 files changed
  • decorators.py Added `src/pyvider/functions/decorators.py` (57 lines) for function registration decorators
  • decorators.py Added `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 internal
    1 file
    • decorators.py
  • Added src/pyvider/data_sources/decorators.py (15 lines) for data source registration decorators instantiate internal
    1 file
    • decorators.py

Protocol Conversion Additions

4 files changed
  • dynamic_value.py Added `protocols/tfprotov6/adapters/dynamic_value.py` (126 lines) replacing the old adapter
  • function_adapter.py Added `protocols/tfprotov6/adapters/function_adapter.py` (80 lines) for function-to-protobuf conv...
  • function.py Added `protocols/tfprotov6/conversion/function.py` (110 lines) for function schema conversion
  • dynamic_value_adapter.py Deleted `protocols/tfprotov6/adapters/dynamic_value_adapter.py` (219 lines)
  • Added protocols/tfprotov6/adapters/dynamic_value.py (126 lines) replacing the old adapter interface internal
    1 file
    • dynamic_value.py
  • Added protocols/tfprotov6/adapters/function_adapter.py (80 lines) for function-to-protobuf conversion instantiate internal
    1 file
    • function_adapter.py
  • Added protocols/tfprotov6/conversion/function.py (110 lines) for function schema conversion interface internal
    1 file
    • function.py
  • Deleted protocols/tfprotov6/adapters/dynamic_value_adapter.py (219 lines) decouple internal
    1 file
    • dynamic_value_adapter.py

Conversion System

4 files changed
  • terraform.py Significantly reworked `conversion/terraform.py` (401 lines removed, net simplification)
  • types.py Reworked `conversion/types.py` (256 lines of changes)
  • __init__.py Updated `conversion/__init__.py` and `conversion/base.py` with cleaner exports
  • base.py Updated `conversion/__init__.py` and `conversion/base.py` with cleaner exports
  • Significantly reworked conversion/terraform.py (401 lines removed, net simplification) baseline internal
    1 file
    • terraform.py
  • Reworked conversion/types.py (256 lines of changes) decouple internal
    1 file
    • types.py
  • Updated conversion/__init__.py and conversion/base.py with cleaner exports decouple internal
    2 files
    • __init__.py
    • base.py

Functions Framework

2 files changed
  • base.py Rewrote `functions/base.py` (547 lines of changes) with simplified function definition handling
  • adapters.py Reworked `functions/adapters.py` (291 lines of changes) with simplified adapter logic
  • Rewrote functions/base.py (547 lines of changes) with simplified function definition handling decouple internal
    1 file
    • base.py
  • Reworked functions/adapters.py (291 lines of changes) with simplified adapter logic interface internal
    1 file
    • adapters.py

Resource System

7 files changed
  • base.py Expanded `resources/base.py` (272 lines of changes) with enhanced resource lifecycle management
  • context.py Updated `resources/context.py`, `resources/types.py`, `resources/decorators.py`
  • types.py Updated `resources/context.py`, `resources/types.py`, `resources/decorators.py`
  • decorators.py Updated `resources/context.py`, `resources/types.py`, `resources/decorators.py`
  • __init__.py Added new exports in `resources/__init__.py`
  • exceptions.py Added `resources/exceptions.py` (2 lines) and `resources/protocol.py` (2 lines)
  • protocol.py Added `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 internal
    1 file
    • base.py
  • Updated resources/context.py, resources/types.py, resources/decorators.py decouple internal
    3 files
    • context.py
    • types.py
    • decorators.py
  • Added new exports in resources/__init__.py instantiate internal
    1 file
    • __init__.py
  • Added resources/exceptions.py (2 lines) and resources/protocol.py (2 lines) interface internal
    2 files
    • exceptions.py
    • protocol.py

Protocol Handlers

5 files changed
  • get_functions.py Significantly expanded `get_functions.py` (128 lines of changes)
  • read_resource.py Expanded `read_resource.py` (280 lines of changes)
  • validate_resource_config.py Updated `validate_resource_config.py` (68 lines of changes)
  • schema_types.py Updated `conversion/schema_types.py` (185 lines of changes)
  • terraform_to_cty.py Expanded `conversion/terraform_to_cty.py` (460 lines of changes)
  • Significantly expanded get_functions.py (128 lines of changes) decouple internal
    1 file
    • get_functions.py
  • Expanded read_resource.py (280 lines of changes) decouple internal
    1 file
    • read_resource.py
  • Updated validate_resource_config.py (68 lines of changes) decouple internal
    1 file
    • validate_resource_config.py
  • Updated conversion/schema_types.py (185 lines of changes) decouple internal
    1 file
    • schema_types.py
  • Expanded conversion/terraform_to_cty.py (460 lines of changes) decouple internal
    1 file
    • terraform_to_cty.py

Hub Module

2 files changed
  • __init__.py Updated `hub/__init__.py` (26 lines) and `hub/decorators.py` (120 lines of changes)
  • decorators.py Updated `hub/__init__.py` (26 lines) and `hub/decorators.py` (120 lines of changes)
  • Updated hub/__init__.py (26 lines) and hub/decorators.py (120 lines of changes) decouple internal
    2 files
    • __init__.py
    • decorators.py

File Content Resource

1 file changed
  • file_content.py Reworked `components/resources/file_content.py` (967 lines of balanced changes)
  • Reworked components/resources/file_content.py (967 lines of balanced changes) decouple internal
    1 file
    • file_content.py