pyvider
2025-05-25
Massive restructuring and cleanup day with 7 commits touching 126 files
126 files · 6,498+ · 1,960-
Package Infrastructure Across All Sub-Packages
22 files changed
LICENSEAdded `pyvider-core/LICENSE` (Apache 2.0), `pyvider-core/__init__.py`, `pyvider-core/src/__init__...__init__.pyAdded `pyvider-core/LICENSE` (Apache 2.0), `pyvider-core/__init__.py`, `pyvider-core/src/__init__...__init__.pyAdded `pyvider-core/LICENSE` (Apache 2.0), `pyvider-core/__init__.py`, `pyvider-core/src/__init__...__init__.pyAdded `pyvider-core/LICENSE` (Apache 2.0), `pyvider-core/__init__.py`, `pyvider-core/src/__init__...__init__.pyAdded `pyvider-core/LICENSE` (Apache 2.0), `pyvider-core/__init__.py`, `pyvider-core/src/__init__....pyre_configurationAdded `pyvider-cty/.pyre_configuration`, `pyvider-cty/.python-version`, `pyvider-cty/Dockerfile`,....python-versionAdded `pyvider-cty/.pyre_configuration`, `pyvider-cty/.python-version`, `pyvider-cty/Dockerfile`,...DockerfileAdded `pyvider-cty/.pyre_configuration`, `pyvider-cty/.python-version`, `pyvider-cty/Dockerfile`,...LICENSE.mdAdded `pyvider-cty/.pyre_configuration`, `pyvider-cty/.python-version`, `pyvider-cty/Dockerfile`,...pyvider-rpcpluginAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...__init__.pyAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...config.yamlAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...ci.ymlAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...__init__.pyAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...examplesAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...scriptsAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...testsAdded `pyvider-rpcplugin/` infrastructure: `.benchmarks/__init__.py`, `.coveragerc`, `.gemini/con...pyvider-schemaAdded `pyvider-schema/` infrastructure: `.pyre_configuration`, `.python-version`, `Dockerfile`, `...LICENSE.mdAdded `pyvider-schema/` infrastructure: `.pyre_configuration`, `.python-version`, `Dockerfile`, `....python-versionAdded `pyvider-telemetry/.python-version`*.log.txtUpdated `.gitignore` to exclude `*.log.txt` and `bin/` directoriesbinUpdated `.gitignore` to exclude `*.log.txt` and `bin/` directories
- Added
pyvider-core/LICENSE(Apache 2.0),pyvider-core/__init__.py,pyvider-core/src/__init__.py,pyvider-core/tests/__init__.py,pyvider-core/src/pyvider/core/services/__init__.pyqualify internal5 files
LICENSE__init__.py__init__.py__init__.py__init__.py
- Added
pyvider-cty/.pyre_configuration,pyvider-cty/.python-version,pyvider-cty/Dockerfile,pyvider-cty/LICENSE.mdbaseline internal4 files
.pyre_configuration.python-versionDockerfileLICENSE.md
- Added
pyvider-rpcplugin/infrastructure:.benchmarks/__init__.py,.coveragerc,.gemini/config.yaml,.github/workflows/ci.yml,.pyre_configuration,.python-version,.watchmanconfig,Dockerfile,LICENSE,__init__.py, and__init__.pyfiles throughoutexamples/,scripts/,tests/directories streamline internal9 files
pyvider-rpcplugin__init__.pyconfig.yamlci.yml__init__.py__init__.pyexamplesscriptstests
- Added
pyvider-schema/infrastructure:.pyre_configuration,.python-version,Dockerfile,LICENSE.md,__init__.pyfiles throughout the package interface internal3 files
pyvider-schemaLICENSE.md__init__.py
- Added
pyvider-telemetry/.python-versionbaseline behavioral1 file
.python-version
- Updated
.gitignoreto exclude*.log.txtandbin/directories decouple behavioral2 files
*.log.txtbin
Pyvider-core Conversion System Rewrite
6 files changed
base.pyNew `pyvider-core/src/pyvider/core/conversion/base.py` (63 lines): Defines `WireFormatType` enum ...__init__.pyRewrote `conversion/__init__.py` from 69 verbose lines to 21 clean lines with relative imports fr...api.pyRewrote `conversion/api.py` from 143 lines to 46 lines: `marshal()` and `unmarshal()` now use `op...context.pyRewrote `conversion/context.py` from 130 lines to 43 lines: Replaced the `SerializationContext` s...wire.pyUpdated `conversion/wire.py` with ~98 lines of changes to the Terraform wire format converter__init__.pySimplified `exceptions/__init__.py` from 25 lines to a cleaner re-export structure
- New
pyvider-core/src/pyvider/core/conversion/base.py(63 lines): DefinesWireFormatTypeenum (STANDARD, JSON, MSGPACK, TERRAFORM), abstractWireFormatbase class withmarshal/unmarshalabstract methods, andWireFormatRegistrywith decorator-based registration pattern baseline internal1 file
base.py
- Rewrote
conversion/__init__.pyfrom 69 verbose lines to 21 clean lines with relative imports from.base,.context,.apiinterface behavioral1 file
__init__.py
- Rewrote
conversion/api.pyfrom 143 lines to 46 lines:marshal()andunmarshal()now useoperation_context()context manager, simplified error handling by removing customWireFormatErrorwrapping, modernized type hints toX | Nonespecify behavioral1 file
api.py
- Rewrote
conversion/context.pyfrom 130 lines to 43 lines: Replaced theSerializationContextsingleton class with a simplecontextvars.ContextVar-based approach, removing the attrs-based class and operation stack in favor ofContextVartoken-based context management withset_current_operation()function harden internal1 file
context.py
- Updated
conversion/wire.pywith ~98 lines of changes to the Terraform wire format converter baseline errata1 file
wire.py
- Simplified
exceptions/__init__.pyfrom 25 lines to a cleaner re-export structure interface internal1 file
__init__.py
Pyvider-cty Changes
9 files changed
__init__.pySimplified `cty/__init__.py` by removing ~128 lines of explicit imports, moving to a leaner publi...__init__.pyUpdated `cty/conversion/__init__.py` with ~80 lines of import changesjson.pyUpdated `cty/conversion/formats/json.py` with ~34 lines of JSON format changesgo-cty-raw-structure.jsonAdded Go compatibility test data files (`go-cty-raw-structure.json`, `go-cty-type-structure.json`)go-cty-type-structure.jsonAdded Go compatibility test data files (`go-cty-raw-structure.json`, `go-cty-type-structure.json`)test_json_encoder.pyAdded `tests/conversion/test_json_encoder.py` (455 lines) with comprehensive JSON encoding testsexamplesAdded documentation: Claude priming docs, example scripts in `docs/examples/`, `docs/TODO.md`, `d...TODO.mdAdded documentation: Claude priming docs, example scripts in `docs/examples/`, `docs/TODO.md`, `d...test_claude_attempt_1.pyAdded documentation: Claude priming docs, example scripts in `docs/examples/`, `docs/TODO.md`, `d...
- Simplified
cty/__init__.pyby removing ~128 lines of explicit imports, moving to a leaner public API interface behavioral1 file
__init__.py
- Updated
cty/conversion/__init__.pywith ~80 lines of import changes interface internal1 file
__init__.py
- Updated
cty/conversion/formats/json.pywith ~34 lines of JSON format changes decouple errata1 file
json.py
- Added Go compatibility test data files (
go-cty-raw-structure.json,go-cty-type-structure.json) qualify internal2 files
go-cty-raw-structure.jsongo-cty-type-structure.json
- Added
tests/conversion/test_json_encoder.py(455 lines) with comprehensive JSON encoding tests qualify internal1 file
test_json_encoder.py
- Added documentation: Claude priming docs, example scripts in
docs/examples/,docs/TODO.md,docs/test_claude_attempt_1.pyspecify internal3 files
examplesTODO.mdtest_claude_attempt_1.py
Pyvider-rpcplugin Test Infrastructure
13 files changed
__init__.pyAdded `__init__.py` files to all test directories (`tests/client/`, `tests/protocol/`, `tests/pro...clientAdded `__init__.py` files to all test directories (`tests/client/`, `tests/protocol/`, `tests/pro...protocolAdded `__init__.py` files to all test directories (`tests/client/`, `tests/protocol/`, `tests/pro...grpctestAdded `__init__.py` files to all test directories (`tests/client/`, `tests/protocol/`, `tests/pro...tcpAdded `__init__.py` files to all test directories (`tests/client/`, `tests/protocol/`, `tests/pro...unixAdded `__init__.py` files to all test directories (`tests/client/`, `tests/protocol/`, `tests/pro...base.pyUpdated `client/base.py` (~29 lines) and `crypto/certificate.py` (~68 lines) with continued fixes...certificate.pyUpdated `client/base.py` (~29 lines) and `crypto/certificate.py` (~68 lines) with continued fixes...test_client_lifecycle.pyExpanded `tests/client/test_client_lifecycle.py` with ~112 additional lines of lifecycle teststest_connection.pySimplified `tests/client/test_connection.py` by removing ~111 linespyproject.tomlUpdated `pyproject.toml` with 3 new dependency entriesenv.shUpdated `env.sh` with minor script fixestest_grpctest.pyMinor fix in `tests/protocol/grpctest/test_grpctest.py`
- Added
__init__.pyfiles to all test directories (tests/client/,tests/protocol/,tests/protocol/grpctest/,tests/transport/tcp/,tests/transport/unix/) qualify internal6 files
__init__.pyclientprotocolgrpctesttcpunix
- Updated
client/base.py(~29 lines) andcrypto/certificate.py(~68 lines) with continued fixes from the previous day remediate internal2 files
base.pycertificate.py
- Expanded
tests/client/test_client_lifecycle.pywith ~112 additional lines of lifecycle tests qualify internal1 file
test_client_lifecycle.py
- Simplified
tests/client/test_connection.pyby removing ~111 lines qualify internal1 file
test_connection.py
- Updated
pyproject.tomlwith 3 new dependency entries baseline internal1 file
pyproject.toml
- Updated
env.shwith minor script fixes remediate internal1 file
env.sh
- Minor fix in
tests/protocol/grpctest/test_grpctest.pyqualify internal1 file
test_grpctest.py
Pyvider-schema Simplification
3 files changed
__init__.pySimplified `schema/__init__.py` by removing ~148 lines of explicit importsproto.pySimplified `schema/conversion/proto.py` by removing ~278 lines of protobuf conversion codeREADME.mdAdded `README.md` documentation
Pyvider-telemetry Overhaul
16 files changed
pyproject.tomlUpdated `pyproject.toml` with ~55 lines of dependency changes__init__.pyUpdated `src/__init__.py` and `src/pyvider/__init__.py` with package metadata__init__.pyUpdated `src/__init__.py` and `src/pyvider/__init__.py` with package metadata__init__.pyRewrote `telemetry/__init__.py` with ~30 lines of import changesconfig.pyRewrote `telemetry/config.py` with ~54 lines of configuration changescore.pyExpanded `telemetry/core.py` by ~251 lines with enhanced initialization logic__init__.pyUpdated `telemetry/logger/__init__.py`, `logger/base.py` (+190 lines), `logger/custom_processors....base.pyUpdated `telemetry/logger/__init__.py`, `logger/base.py` (+190 lines), `logger/custom_processors....custom_processors.pyUpdated `telemetry/logger/__init__.py`, `logger/base.py` (+190 lines), `logger/custom_processors....emoji_matrix.pyUpdated `telemetry/logger/__init__.py`, `logger/base.py` (+190 lines), `logger/custom_processors....utils.pyUpdated `telemetry/logger/__init__.py`, `logger/base.py` (+190 lines), `logger/custom_processors....__init__.pyUpdated `tests/__init__.py`, `tests/conftest.py` (~167 lines restructured), `tests/cut_up_chuck.p...conftest.pyUpdated `tests/__init__.py`, `tests/conftest.py` (~167 lines restructured), `tests/cut_up_chuck.p...cut_up_chuck.pyUpdated `tests/__init__.py`, `tests/conftest.py` (~167 lines restructured), `tests/cut_up_chuck.p...test_logging.pyUpdated `tests/__init__.py`, `tests/conftest.py` (~167 lines restructured), `tests/cut_up_chuck.p...test_logging.py.bakAdded `tests/test_logging.py.bak` as backup of previous test version
- Updated
pyproject.tomlwith ~55 lines of dependency changes baseline internal1 file
pyproject.toml
- Updated
src/__init__.pyandsrc/pyvider/__init__.pywith package metadata baseline internal2 files
__init__.py__init__.py
- Rewrote
telemetry/__init__.pywith ~30 lines of import changes interface behavioral1 file
__init__.py
- Rewrote
telemetry/config.pywith ~54 lines of configuration changes baseline behavioral1 file
config.py
- Expanded
telemetry/core.pyby ~251 lines with enhanced initialization logic decouple behavioral1 file
core.py
- Updated
telemetry/logger/__init__.py,logger/base.py(+190 lines),logger/custom_processors.py(~157 lines rewritten),logger/emoji_matrix.py,telemetry/utils.pydecouple architectural5 files
__init__.pybase.pycustom_processors.pyemoji_matrix.pyutils.py
- Updated
tests/__init__.py,tests/conftest.py(~167 lines restructured),tests/cut_up_chuck.py(+201 lines expanded),tests/test_logging.py(~609 lines rewritten) qualify architectural4 files
__init__.pyconftest.pycut_up_chuck.pytest_logging.py
- Added
tests/test_logging.py.bakas backup of previous test version qualify internal1 file
test_logging.py.bak