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 implementationhttp_api.py`http_api.py`: Reduced by ~623 lines, stripping the HTTP API data source down to essentialsfile_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_listmade one-liners), modernizing type hints (Optional[str]tostr | None), and reducing the schema definition and read logic to minimal form specify internal1 file
env_variables.py
file_info.py: Reduced by ~216 lines, simplifying the file metadata data source implementation decouple internal1 file
file_info.py
http_api.py: Reduced by ~623 lines, stripping the HTTP API data source down to essentials interface behavioral1 file
http_api.py
file_content.py(resource): Reduced by ~634 lines, simplifying the file content resource CRUD implementation decouple internal1 file
file_content.py
numeric_functions.py: Minor simplification of function implementations decouple internal1 file
numeric_functions.py
Telemetry Subsystem Rewrite
20 files changed
config.pyAdded new `telemetry/config.py` (126 lines) with centralized configuration managementcore.pyAdded new `telemetry/core.py` (163 lines) as the telemetry initialization coreinit.pyRemoved old `telemetry/init.py` initialization modulebase.pyRewrote `telemetry/logger/base.py` with ~385 lines of changes, refactoring the logger foundationconfig.pyRemoved `telemetry/logger/config.py` (separate logger config, now consolidated)custom_processors.pyAdded `telemetry/logger/custom_processors.py` (136 lines) for structlog custom processorsemoji_matrix.pyUpdated `telemetry/logger/emoji_matrix.py` with revised emoji decorationsformatters.pyRemoved `telemetry/logger/formatters.py` and `telemetry/logger/proxy.py`proxy.pyRemoved `telemetry/logger/formatters.py` and `telemetry/logger/proxy.py`tracerCompletely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...__init__.pyCompletely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...base.pyCompletely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...decorators.pyCompletely removed `telemetry/tracer/` directory including `__init__.py`, `base.py`, and `decorat...utils.pyUpdated `telemetry/utils.py` with minor utility changespyproject.tomlOverhauled `pyproject.toml` dependencies (230 lines changed), significantly restructuring the dep...cut_up_chuck.pyAdded `tests/cut_up_chuck.py` (64 lines) as a test helpertest_logging.pyRewrote `tests/test_logging.py` with 395 lines of changes for the new logger architecturetest_tracing.pyRemoved `tests/test_tracing.py` (190 lines) since tracing was removedconftest.pyUpdated `tests/conftest.py` and `tests/__init__.py` for new test infrastructure__init__.pyUpdated `tests/conftest.py` and `tests/__init__.py` for new test infrastructure
- Added new
telemetry/config.py(126 lines) with centralized configuration management baseline behavioral1 file
config.py
- Added new
telemetry/core.py(163 lines) as the telemetry initialization core instantiate behavioral1 file
core.py
- Removed old
telemetry/init.pyinitialization module instantiate architectural1 file
init.py
- Rewrote
telemetry/logger/base.pywith ~385 lines of changes, refactoring the logger foundation decouple behavioral1 file
base.py
- Removed
telemetry/logger/config.py(separate logger config, now consolidated) baseline behavioral1 file
config.py
- Added
telemetry/logger/custom_processors.py(136 lines) for structlog custom processors instantiate behavioral1 file
custom_processors.py
- Updated
telemetry/logger/emoji_matrix.pywith revised emoji decorations decouple behavioral1 file
emoji_matrix.py
- Removed
telemetry/logger/formatters.pyandtelemetry/logger/proxy.pydecouple behavioral2 files
formatters.pyproxy.py
- Completely removed
telemetry/tracer/directory including__init__.py,base.py, anddecorators.py(248 lines of tracing code deleted) decouple behavioral4 files
tracer__init__.pybase.pydecorators.py
- Updated
telemetry/utils.pywith minor utility changes decouple behavioral1 file
utils.py
- Overhauled
pyproject.tomldependencies (230 lines changed), significantly restructuring the dependency tree baseline internal1 file
pyproject.toml
- Added
tests/cut_up_chuck.py(64 lines) as a test helper qualify internal1 file
cut_up_chuck.py
- Rewrote
tests/test_logging.pywith 395 lines of changes for the new logger architecture qualify internal1 file
test_logging.py
- Removed
tests/test_tracing.py(190 lines) since tracing was removed qualify internal1 file
test_tracing.py
- Updated
tests/conftest.pyandtests/__init__.pyfor new test infrastructure qualify internal2 files
conftest.py__init__.py
Conversion Pipeline Updates
5 files changed
__init__.pyUpdated `pyvider/conversion/__init__.py` with ~56 lines of import changes reflecting the new modu...wire_format.pyUpdated `pyvider/protocols/adapters/wire_format.py` with ~326 lines of wire format adapter changesfunction_adapter.pyUpdated function adapter imports in `pyvider/protocols/tfprotov6/adapters/function_adapter.py`validate_provider_config.pyUpdated `pyvider/protocols/tfprotov6/handlers/validate_provider_config.py`wire.pyUpdated `pyvider-core/src/pyvider/core/conversion/wire.py` with ~497 lines of wire format convert...
- Updated
pyvider/conversion/__init__.pywith ~56 lines of import changes reflecting the new module structure interface architectural1 file
__init__.py
- Updated
pyvider/protocols/adapters/wire_format.pywith ~326 lines of wire format adapter changes interface errata1 file
wire_format.py
- Updated function adapter imports in
pyvider/protocols/tfprotov6/adapters/function_adapter.pyinterface internal1 file
function_adapter.py
- Updated
pyvider/protocols/tfprotov6/handlers/validate_provider_config.pydecouple internal1 file
validate_provider_config.py
- Updated
pyvider-core/src/pyvider/core/conversion/wire.pywith ~497 lines of wire format converter changes decouple errata1 file
wire.py
Cleanup and Artifact Removal
13 files changed
2025-05-12Removed all debug logs from `logs/2025-05-12/` (file_content, file_info, integrated, numeric_func...binRemoved Go RPC binary artifacts from `pyvider-rpcplugin/examples/kvproto/go-rpc/bin/` (~36MB of c...go-cty-raw-structure.jsonRemoved Go compatibility test files from pyvider-cty (`go-cty-raw-structure.json`, `go-cty-type-s...go-cty-type-structure.jsonRemoved Go compatibility test files from pyvider-cty (`go-cty-raw-structure.json`, `go-cty-type-s...DockerfileRemoved `pyvider-rpcplugin/Dockerfile` and `pyvider-rpcplugin/go.mod`go.modRemoved `pyvider-rpcplugin/Dockerfile` and `pyvider-rpcplugin/go.mod`file_content_test.tfRemoved example Terraform configs (`drift_detection/file_content_test.tf`, `examples/no/test.tf`)test.tfRemoved example Terraform configs (`drift_detection/file_content_test.tf`, `examples/no/test.tf`)extract.shRemoved `pyvider-telemetry/extract.sh` (1281-line log extraction script)disabledMoved some Terraform test configs to `disabled/` directoryREADME.mdAdded `pyvider-schema/README.md` with basic documentationenv.shUpdated various `env.sh` scripts and `pyproject.toml` dependency configurationspyproject.tomlUpdated 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 internal1 file
2025-05-12
- Removed
.python-versionfiles from all sub-packages (pyvider-core, pyvider-cty, pyvider-rpcplugin, pyvider-schema, pyvider-telemetry, pyvider) interface behavioral9 files
provider.tftest.tfdynamic_config_test.tf__main__.pydynamic_value.pycomponents.pyfunction_adapter.pyvalidate_provider_config.pyuv.lock
- Removed Go RPC binary artifacts from
pyvider-rpcplugin/examples/kvproto/go-rpc/bin/(~36MB of compiled Go binaries) interface internal1 file
bin
- Removed Go compatibility test files from pyvider-cty (
go-cty-raw-structure.json,go-cty-type-structure.json) qualify internal2 files
go-cty-raw-structure.jsongo-cty-type-structure.json
- Removed
pyvider-rpcplugin/Dockerfileandpyvider-rpcplugin/go.modbaseline internal2 files
Dockerfilego.mod
- Removed example Terraform configs (
drift_detection/file_content_test.tf,examples/no/test.tf) qualify internal2 files
file_content_test.tftest.tf
- Removed
pyvider-telemetry/extract.sh(1281-line log extraction script) decouple behavioral1 file
extract.sh
- Moved some Terraform test configs to
disabled/directory qualify internal1 file
disabled
- Added
pyvider-schema/README.mdwith basic documentation specify errata1 file
README.md
- Updated various
env.shscripts andpyproject.tomldependency configurations baseline internal2 files
env.shpyproject.toml
Hub and Function Updates
4 files changed
components.pyUpdated `hub/components.py` with component registry adjustmentsadapters.pyUpdated `functions/adapters.py` and `functions/decorators.py`decorators.pyUpdated `functions/adapters.py` and `functions/decorators.py`__main__.pyUpdated `pyvider/__main__.py` entry point