pyvider 2025-05-21
Large cleanup and simplification pass across the entire monorepo
74 files · 3,537+ · 36,818-

Component Simplification

5 files changed
  • env_variables.py `env_variables.py`: Massively condensed from ~509 lines to ~207 lines by removing docstrings, com...
  • file_info.py `file_info.py`: Reduced by ~216 lines, simplifying the file metadata data source implementation
  • http_api.py `http_api.py`: Reduced by ~623 lines, stripping the HTTP API data source down to essentials
  • file_content.py `file_content.py` (resource): Reduced by ~634 lines, simplifying the file content resource CRUD i...
  • numeric_functions.py `numeric_functions.py`: Minor simplification of function implementations
  • env_variables.py: Massively condensed from ~509 lines to ~207 lines by removing docstrings, compacting helper functions (safe_set, safe_str, safe_bool, safe_list made one-liners), modernizing type hints (Optional[str] to str | None), and reducing the schema definition and read logic to minimal form specify internal
    1 file
    • env_variables.py
  • file_info.py: Reduced by ~216 lines, simplifying the file metadata data source implementation decouple internal
    1 file
    • file_info.py
  • http_api.py: Reduced by ~623 lines, stripping the HTTP API data source down to essentials interface behavioral
    1 file
    • http_api.py
  • file_content.py (resource): Reduced by ~634 lines, simplifying the file content resource CRUD implementation decouple internal
    1 file
    • file_content.py
  • numeric_functions.py: Minor simplification of function implementations decouple internal
    1 file
    • numeric_functions.py

Telemetry Subsystem Rewrite

20 files changed
  • config.py Added new `telemetry/config.py` (126 lines) with centralized configuration management
  • core.py Added new `telemetry/core.py` (163 lines) as the telemetry initialization core
  • init.py Removed old `telemetry/init.py` initialization module
  • base.py Rewrote `telemetry/logger/base.py` with ~385 lines of changes, refactoring the logger foundation
  • config.py Removed `telemetry/logger/config.py` (separate logger config, now consolidated)
  • custom_processors.py Added `telemetry/logger/custom_processors.py` (136 lines) for structlog custom processors
  • emoji_matrix.py Updated `telemetry/logger/emoji_matrix.py` with revised emoji decorations
  • formatters.py Removed `telemetry/logger/formatters.py` and `telemetry/logger/proxy.py`
  • proxy.py Removed `telemetry/logger/formatters.py` and `telemetry/logger/proxy.py`
  • tracer Completely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...
  • __init__.py Completely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...
  • base.py Completely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...
  • decorators.py Completely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...
  • utils.py Updated `telemetry/utils.py` with minor utility changes
  • pyproject.toml Overhauled `pyproject.toml` dependencies (230 lines changed), significantly restructuring the dep...
  • cut_up_chuck.py Added `tests/cut_up_chuck.py` (64 lines) as a test helper
  • test_logging.py Rewrote `tests/test_logging.py` with 395 lines of changes for the new logger architecture
  • test_tracing.py Removed `tests/test_tracing.py` (190 lines) since tracing was removed
  • conftest.py Updated `tests/conftest.py` and `tests/__init__.py` for new test infrastructure
  • __init__.py Updated `tests/conftest.py` and `tests/__init__.py` for new test infrastructure
  • Added new telemetry/config.py (126 lines) with centralized configuration management baseline behavioral
    1 file
    • config.py
  • Added new telemetry/core.py (163 lines) as the telemetry initialization core instantiate behavioral
    1 file
    • core.py
  • Removed old telemetry/init.py initialization module instantiate architectural
    1 file
    • init.py
  • Rewrote telemetry/logger/base.py with ~385 lines of changes, refactoring the logger foundation decouple behavioral
    1 file
    • base.py
  • Removed telemetry/logger/config.py (separate logger config, now consolidated) baseline behavioral
    1 file
    • config.py
  • Added telemetry/logger/custom_processors.py (136 lines) for structlog custom processors instantiate behavioral
    1 file
    • custom_processors.py
  • Updated telemetry/logger/emoji_matrix.py with revised emoji decorations decouple behavioral
    1 file
    • emoji_matrix.py
  • Removed telemetry/logger/formatters.py and telemetry/logger/proxy.py decouple behavioral
    2 files
    • formatters.py
    • proxy.py
  • Completely removed telemetry/tracer/ directory including __init__.py, base.py, and decorators.py (248 lines of tracing code deleted) decouple behavioral
    4 files
    • tracer
    • __init__.py
    • base.py
    • decorators.py
  • Updated telemetry/utils.py with minor utility changes decouple behavioral
    1 file
    • utils.py
  • Overhauled pyproject.toml dependencies (230 lines changed), significantly restructuring the dependency tree baseline internal
    1 file
    • pyproject.toml
  • Added tests/cut_up_chuck.py (64 lines) as a test helper qualify internal
    1 file
    • cut_up_chuck.py
  • Rewrote tests/test_logging.py with 395 lines of changes for the new logger architecture qualify internal
    1 file
    • test_logging.py
  • Removed tests/test_tracing.py (190 lines) since tracing was removed qualify internal
    1 file
    • test_tracing.py
  • Updated tests/conftest.py and tests/__init__.py for new test infrastructure qualify internal
    2 files
    • conftest.py
    • __init__.py

Conversion Pipeline Updates

5 files changed
  • __init__.py Updated `pyvider/conversion/__init__.py` with ~56 lines of import changes reflecting the new modu...
  • wire_format.py Updated `pyvider/protocols/adapters/wire_format.py` with ~326 lines of wire format adapter changes
  • function_adapter.py Updated function adapter imports in `pyvider/protocols/tfprotov6/adapters/function_adapter.py`
  • validate_provider_config.py Updated `pyvider/protocols/tfprotov6/handlers/validate_provider_config.py`
  • wire.py Updated `pyvider-core/src/pyvider/core/conversion/wire.py` with ~497 lines of wire format convert...
  • Updated pyvider/conversion/__init__.py with ~56 lines of import changes reflecting the new module structure interface architectural
    1 file
    • __init__.py
  • Updated pyvider/protocols/adapters/wire_format.py with ~326 lines of wire format adapter changes interface errata
    1 file
    • wire_format.py
  • Updated function adapter imports in pyvider/protocols/tfprotov6/adapters/function_adapter.py interface internal
    1 file
    • function_adapter.py
  • Updated pyvider/protocols/tfprotov6/handlers/validate_provider_config.py decouple internal
    1 file
    • validate_provider_config.py
  • Updated pyvider-core/src/pyvider/core/conversion/wire.py with ~497 lines of wire format converter changes decouple errata
    1 file
    • wire.py

Cleanup and Artifact Removal

13 files changed
  • 2025-05-12 Removed all debug logs from `logs/2025-05-12/` (file_content, file_info, integrated, numeric_func...
  • bin Removed Go RPC binary artifacts from `pyvider-rpcplugin/examples/kvproto/go-rpc/bin/` (~36MB of c...
  • go-cty-raw-structure.json Removed Go compatibility test files from pyvider-cty (`go-cty-raw-structure.json`, `go-cty-type-s...
  • go-cty-type-structure.json Removed Go compatibility test files from pyvider-cty (`go-cty-raw-structure.json`, `go-cty-type-s...
  • Dockerfile Removed `pyvider-rpcplugin/Dockerfile` and `pyvider-rpcplugin/go.mod`
  • go.mod Removed `pyvider-rpcplugin/Dockerfile` and `pyvider-rpcplugin/go.mod`
  • file_content_test.tf Removed example Terraform configs (`drift_detection/file_content_test.tf`, `examples/no/test.tf`)
  • test.tf Removed example Terraform configs (`drift_detection/file_content_test.tf`, `examples/no/test.tf`)
  • extract.sh Removed `pyvider-telemetry/extract.sh` (1281-line log extraction script)
  • disabled Moved some Terraform test configs to `disabled/` directory
  • README.md Added `pyvider-schema/README.md` with basic documentation
  • env.sh Updated various `env.sh` scripts and `pyproject.toml` dependency configurations
  • pyproject.toml Updated various `env.sh` scripts and `pyproject.toml` dependency configurations
  • Removed all debug logs from logs/2025-05-12/ (file_content, file_info, integrated, numeric_functions stderr/stdout logs, OTEL screenshot) decouple internal
    1 file
    • 2025-05-12
  • Removed .python-version files from all sub-packages (pyvider-core, pyvider-cty, pyvider-rpcplugin, pyvider-schema, pyvider-telemetry, pyvider) interface behavioral
    9 files
    • provider.tf
    • test.tf
    • dynamic_config_test.tf
    • __main__.py
    • dynamic_value.py
    • components.py
    • function_adapter.py
    • validate_provider_config.py
    • uv.lock
  • Removed Go RPC binary artifacts from pyvider-rpcplugin/examples/kvproto/go-rpc/bin/ (~36MB of compiled Go binaries) interface internal
    1 file
    • bin
  • Removed Go compatibility test files from pyvider-cty (go-cty-raw-structure.json, go-cty-type-structure.json) qualify internal
    2 files
    • go-cty-raw-structure.json
    • go-cty-type-structure.json
  • Removed pyvider-rpcplugin/Dockerfile and pyvider-rpcplugin/go.mod baseline internal
    2 files
    • Dockerfile
    • go.mod
  • Removed example Terraform configs (drift_detection/file_content_test.tf, examples/no/test.tf) qualify internal
    2 files
    • file_content_test.tf
    • test.tf
  • Removed pyvider-telemetry/extract.sh (1281-line log extraction script) decouple behavioral
    1 file
    • extract.sh
  • Moved some Terraform test configs to disabled/ directory qualify internal
    1 file
    • disabled
  • Added pyvider-schema/README.md with basic documentation specify errata
    1 file
    • README.md
  • Updated various env.sh scripts and pyproject.toml dependency configurations baseline internal
    2 files
    • env.sh
    • pyproject.toml

Hub and Function Updates

4 files changed
  • components.py Updated `hub/components.py` with component registry adjustments
  • adapters.py Updated `functions/adapters.py` and `functions/decorators.py`
  • decorators.py Updated `functions/adapters.py` and `functions/decorators.py`
  • __main__.py Updated `pyvider/__main__.py` entry point
  • Updated hub/components.py with component registry adjustments decouple internal
    1 file
    • components.py
  • Updated functions/adapters.py and functions/decorators.py decouple internal
    2 files
    • adapters.py
    • decorators.py
  • Updated pyvider/__main__.py entry point decouple internal
    1 file
    • __main__.py