pyvider 2025-01-15
Massive codebase-wide import and style cleanup (185 files)
281 files · 3,244+ · 4,353-

grpcplugin Integration

281 files changed
  • cli.py Updated cli.py (+1/-2 lines)
  • config.py Updated config.py (+1/-3 lines)
  • core.py Updated core.py (+1/-1 lines)
  • exclusions.py Updated exclusions.py (+3/-4 lines)
  • logger.py Updated logger.py (+1/-1 lines)
  • utils.py Updated utils.py (+1/-1 lines)
  • .bfiles Added .bfiles (+1 lines)
  • __init__.py Updated __init__.py (+6/-5 lines)
  • __main__.py Updated __main__.py (+3/-3 lines)
  • base_types.py Updated base_types.py (+1/-1 lines)
  • auth.py Updated auth.py (+6/-4 lines)
  • cloud.py Updated cloud.py (+3/-3 lines)
  • injector.py Updated injector.py (+11/-13 lines)
  • protocols.py Added protocols.py (+1 lines)
  • services.py Updated services.py (+2/-1 lines)
  • __init__.py Updated __init__.py (+15/-11 lines)
  • foundation.py Removed foundation.py (-1 lines)
  • grpc.py Removed grpc.py (-4 lines)
  • provider.py Removed provider.py (-3 lines)
  • registry.py Removed registry.py (-2 lines)
  • resource.py Removed resource.py (-3 lines)
  • serialization.py Updated serialization.py (+1/-1 lines)
  • validation.py Updated validation.py (+2/-2 lines)
  • handler.py Updated handler.py (+6/-17 lines)
  • __init__.py Updated __init__.py (+6/-6 lines)
  • capabilities.py Updated capabilities.py (+5/-12 lines)
  • components.py Updated components.py (+6/-8 lines)
  • decorators.py Updated decorators.py (+4/-6 lines)
  • discovery.py Updated discovery.py (+3/-6 lines)
  • protocols.py Updated protocols.py (+3/-3 lines)
  • validators.py Updated validators.py (+2/-2 lines)
  • terraform_handshake.py Updated terraform_handshake.py (+5/-8 lines)
  • service.py Updated service.py (+5/-25 lines)
  • __init__.py Updated __init__.py (+4/-4 lines)
  • apply_resource_change.py Updated apply_resource_change.py (+4/-8 lines)
  • get_metadata.py Updated get_metadata.py (+4/-5 lines)
  • get_provider_schema.py Updated get_provider_schema.py (+4/-9 lines)
  • plan_resource_change.py Updated plan_resource_change.py (+4/-6 lines)
  • read_resource_handler.py Updated read_resource_handler.py (+3/-6 lines)
  • upgrade_resource_state.py Updated upgrade_resource_state.py (+5/-4 lines)
  • validate_provider_config.py Updated validate_provider_config.py (+3/-5 lines)
  • validate_resource_config.py Updated validate_resource_config.py (+3/-5 lines)
  • __init__.py Updated __init__.py (+33/-12 lines)
  • tfplugin6_pb2.py Removed tfplugin6_pb2.py (-3 lines)
  • tfplugin6_pb2_grpc.py Updated tfplugin6_pb2_grpc.py (+5/-6 lines)
  • __init__.py Updated __init__.py (+1/-1 lines)
  • base.py Updated base.py (+4/-4 lines)
  • config.py Updated config.py (+2/-5 lines)
  • provider.py Updated provider.py (+2/-3 lines)
  • base.py Updated base.py (+2/-4 lines)
  • decorators.py Updated decorators.py (+2/-2 lines)
  • exceptions.py Removed exceptions.py (-5 lines)
  • lifecycle.py Removed lifecycle.py (-2 lines)
  • protocol.py Added protocol.py (+1 lines)
  • registry.py Updated registry.py (+1/-2 lines)
  • types.py Updated types.py (+1/-1 lines)
  • __init__.py Added __init__.py (+23 lines)
  • client.py Added client.py (+352 lines)
  • README.md Added README.md (+16 lines)
  • grpcplugin.md Added grpcplugin.md (+21 lines)
  • .gitignore Updated .gitignore (+0/-0 lines)
  • README.md Updated README.md (+0/-0 lines)
  • basic Updated basic (+0/-0 lines)
  • go.mod Added go.mod (+23 lines)
  • go.sum Added go.sum (+60 lines)
  • main.go Updated main.go (+0/-0 lines)
  • greeter Updated greeter (+0/-0 lines)
  • greeter_impl.go Updated greeter_impl.go (+0/-0 lines)
  • greeter_interface.go Updated greeter_interface.go (+0/-0 lines)
  • README.md Updated README.md (+0/-0 lines)
  • buf.gen.yaml Updated buf.gen.yaml (+0/-0 lines)
  • buf.yaml Updated buf.yaml (+0/-0 lines)
  • counter Updated counter (+0/-0 lines)
  • counter-go-grpc Updated counter-go-grpc (+0/-0 lines)
  • go.mod Updated go.mod (+5/-6 lines)
  • go.sum Updated go.sum (+19/-13 lines)
  • kv_hi Added kv_hi (+1 lines)
  • main.go Updated main.go (+0/-0 lines)
  • main.go Updated main.go (+0/-0 lines)
  • kv.pb.go Updated kv.pb.go (+0/-0 lines)
  • kv.proto Updated kv.proto (+0/-0 lines)
  • kv_grpc.pb.go Updated kv_grpc.pb.go (+0/-0 lines)
  • grpc.go Updated grpc.go (+0/-0 lines)
  • interface.go Updated interface.go (+0/-0 lines)
  • .gitignore Updated .gitignore (+0/-0 lines)
  • buf.gen.yaml Updated buf.gen.yaml (+0/-0 lines)
  • buf.yaml Updated buf.yaml (+0/-0 lines)
  • build.sh Updated build.sh (+0/-0 lines)
  • main.go Updated main.go (+0/-0 lines)
  • comments.md Updated comments.md (+0/-0 lines)
  • grpcplugin.md Updated grpcplugin.md (+0/-0 lines)
  • handshake.md Updated handshake.md (+0/-0 lines)
  • llm-priming.md Added llm-priming.md (+5 lines)
  • env.sh Updated env.sh (+2/-2 lines)
  • gen_certs.sh Updated gen_certs.sh (+0/-0 lines)
  • go.mod Updated go.mod (+0/-0 lines)
  • go.sum Updated go.sum (+0/-0 lines)
  • kv-client Updated kv-client (+0/-0 lines)
  • kv-data-hello Added kv-data-hello (+1 lines)
  • kv-data-hi Added kv-data-hi (+1 lines)
  • kv-go-server Updated kv-go-server (+0/-0 lines)
  • main.go Updated main.go (+20/-64 lines)
  • main.go Added main.go (+232 lines)
  • kv.pb.go Updated kv.pb.go (+0/-0 lines)
  • kv.proto Updated kv.proto (+0/-0 lines)
  • kv_grpc.pb.go Updated kv_grpc.pb.go (+0/-0 lines)
  • kv_pb2.py Added kv_pb2.py (+45 lines)
  • kv_pb2_grpc.py Added kv_pb2_grpc.py (+139 lines)
  • certutil.go Updated certutil.go (+10/-8 lines)
  • grpc.go Updated grpc.go (+9/-26 lines)
  • interface.go Updated interface.go (+0/-0 lines)
  • utils.go Updated utils.go (+0/-0 lines)
  • test.sh Updated test.sh (+0/-0 lines)
  • test_basic.py Added test_basic.py (+72 lines)
  • test_kv_impl_1638.py Added test_kv_impl_1638.py (+186 lines)
  • test_kv_integration.py Added test_kv_integration.py (+160 lines)
  • exception.py Updated exception.py (+9/-9 lines)
  • handshake.py Added handshake.py (+211 lines)
  • protocol.py Updated protocol.py (+4/-5 lines)
  • pyproject.toml Added pyproject.toml (+13 lines)
  • security.py Added security.py (+284 lines)
  • server.py Updated server.py (+21/-25 lines)
  • test_server.py Updated test_server.py (+44/-48 lines)
  • compile_proto.sh Updated compile_proto.sh (+0/-0 lines)
  • conftest.py Updated conftest.py (+38/-42 lines)
  • create_test_certs.sh Updated create_test_certs.sh (+3/-3 lines)
  • dummy_server.py Added dummy_server.py (+1 lines)
  • example.proto Updated example.proto (+0/-0 lines)
  • example_pb2.py Updated example_pb2.py (+1/-1 lines)
  • example_pb2_grpc.py Updated example_pb2_grpc.py (+5/-6 lines)
  • example_server.py Updated example_server.py (+4/-3 lines)
  • mock_message.proto Updated mock_message.proto (+0/-0 lines)
  • mock_message_pb2.py Updated mock_message_pb2.py (+1/-1 lines)
  • mock_message_pb2_grpc.py Updated mock_message_pb2_grpc.py (+2/-3 lines)
  • run_server.py Updated run_server.py (+10/-9 lines)
  • run_tcp_server.py Updated run_tcp_server.py (+3/-2 lines)
  • run_unix_server.py Updated run_unix_server.py (+3/-2 lines)
  • test_client.py Updated test_client.py (+40/-168 lines)
  • test_client_grpc.py Updated test_client_grpc.py (+20/-29 lines)
  • test_handshake_magic_cookie.py Updated test_handshake_magic_cookie.py (+14/-13 lines)
  • test_handshake_negotiation.py Updated test_handshake_negotiation.py (+7/-5 lines)
  • test_handshake_responses.py Updated test_handshake_responses.py (+30/-31 lines)
  • test_security.py Updated test_security.py (+10/-15 lines)
  • test_transport_tcp.py Updated test_transport_tcp.py (+6/-6 lines)
  • test_transport_unix.py Updated test_transport_unix.py (+6/-5 lines)
  • x_test_minimal.py Added x_test_minimal.py (+50 lines)
  • __init__.py Added __init__.py (+9 lines)
  • base.py Added base.py (+21 lines)
  • tcp.py Added tcp.py (+119 lines)
  • unix.py Added unix.py (+129 lines)
  • utils.py Updated utils.py (+2/-3 lines)
  • schema.py Updated schema.py (+15/-16 lines)
  • __init__.py Updated __init__.py (+1/-1 lines)
  • attribute_path.py Updated attribute_path.py (+1/-5 lines)
  • attributes.py Updated attributes.py (+5/-3 lines)
  • base.py Updated base.py (+4/-2 lines)
  • decorators.py Removed decorators.py (-1 lines)
  • validation.py Updated validation.py (+1/-1 lines)
  • __init__.py Updated __init__.py (+42/-44 lines)
  • grpc_logging.py Updated grpc_logging.py (+5/-3 lines)
  • shutdown.py Updated shutdown.py (+5/-6 lines)
  • __init__.py Updated __init__.py (+4/-5 lines)
  • init.py Added init.py (+1 lines)
  • __init__.py Updated __init__.py (+1/-1 lines)
  • base.py Updated base.py (+2/-3 lines)
  • config.py Updated config.py (+1/-2 lines)
  • formatters.py Updated formatters.py (+2/-1 lines)
  • proxy.py Updated proxy.py (+1/-2 lines)
  • __init__.py Updated __init__.py (+5/-6 lines)
  • base.py Updated base.py (+2/-7 lines)
  • decorators.py Updated decorators.py (+8/-13 lines)
  • utils.py Updated utils.py (+1/-1 lines)
  • __init__.py Updated __init__.py (+7/-10 lines)
  • base.py Updated base.py (+1/-7 lines)
  • __init__.py Updated __init__.py (+2/-2 lines)
  • list.py Updated list.py (+2/-3 lines)
  • map.py Updated map.py (+7/-4 lines)
  • set.py Updated set.py (+6/-3 lines)
  • __init__.py Updated __init__.py (+1/-1 lines)
  • bool.py Updated bool.py (+3/-2 lines)
  • number.py Updated number.py (+3/-2 lines)
  • string.py Updated string.py (+2/-3 lines)
  • __init__.py Updated __init__.py (+1/-1 lines)
  • dynamic.py Updated dynamic.py (+2/-1 lines)
  • object.py Updated object.py (+3/-5 lines)
  • tuple.py Updated tuple.py (+1/-2 lines)
  • type.py Removed type.py (-10 lines)
  • crypto.py Updated crypto.py (+9/-9 lines)
  • dynamic_value.py Updated dynamic_value.py (+7/-6 lines)
  • __init__.py Removed __init__.py (-23 lines)
  • client.py Removed client.py (-309 lines)
  • README.md Removed README.md (-7 lines)
  • main.go Removed main.go (-177 lines)
  • kv_pb2.py Removed kv_pb2.py (-34 lines)
  • kv_pb2_grpc.py Removed kv_pb2_grpc.py (-99 lines)
  • .gitignore Removed .gitignore (-4 lines)
  • README.md Removed README.md (-66 lines)
  • buf.gen.yaml Removed buf.gen.yaml (-18 lines)
  • buf.yaml Removed buf.yaml (-4 lines)
  • build.sh Removed build.sh (-19 lines)
  • env.sh Removed env.sh (-5 lines)
  • main.go Removed main.go (-165 lines)
  • main.go Removed main.go (-175 lines)
  • kv_pb2.py Removed kv_pb2.py (-34 lines)
  • kv_pb2_grpc.py Removed kv_pb2_grpc.py (-99 lines)
  • kv.pb.go Removed kv.pb.go (-278 lines)
  • kv.proto Removed kv.proto (-26 lines)
  • kv_grpc.pb.go Removed kv_grpc.pb.go (-147 lines)
  • grpc.go Removed grpc.go (-74 lines)
  • interface.go Removed interface.go (-65 lines)
  • rpc.go Removed rpc.go (-45 lines)
  • test.sh Removed test.sh (-22 lines)
  • mtls.go Removed mtls.go (-76 lines)
  • .gitignore Removed .gitignore (-5 lines)
  • README.md Removed README.md (-30 lines)
  • main.go Removed main.go (-87 lines)
  • main.go Removed main.go (-65 lines)
  • handshake.py Removed handshake.py (-231 lines)
  • security.py Removed security.py (-281 lines)
  • test_minimal.py Removed test_minimal.py (-40 lines)
  • transport.py Removed transport.py (-260 lines)
  • .coveragerc Updated .coveragerc (+0/-0 lines)
  • fake_cloud.py Updated fake_cloud.py (+7/-7 lines)
  • fake_cloud_auth.py Updated fake_cloud_auth.py (+6/-4 lines)
  • dynamic_config.py Updated dynamic_config.py (+8/-8 lines)
  • file_content.py Updated file_content.py (+7/-19 lines)
  • test_file_content.py Updated test_file_content.py (+7/-13 lines)
  • conftest.py Removed conftest.py (-40 lines)
  • capabilities-vs-services.md Updated capabilities-vs-services.md (+15/-5 lines)
  • claude-2025-01-15-1633.md Added claude-2025-01-15-1633.md (+108 lines)
  • gource.md Added gource.md (+4 lines)
  • notes.md Updated notes.md (+3/-1 lines)
  • plugin-env-vars.md Added plugin-env-vars.md (+7 lines)
  • env.sh Updated env.sh (+2/-17 lines)
  • xtest_data_source_zipcode.py Updated xtest_data_source_zipcode.py (+6/-11 lines)
  • zipcode.py Updated zipcode.py (+14/-14 lines)
  • random_complex_object.py Updated random_complex_object.py (+1/-2 lines)
  • verify_zipcode.py Added verify_zipcode.py (+1 lines)
  • pyproject.toml Added pyproject.toml (+28 lines)
  • potential-examples.psseudocode.py Updated potential-examples.psseudocode.py (+1/-1 lines)
  • build_provider.py Updated build_provider.py (+2/-2 lines)
  • compile_proto.py Updated compile_proto.py (+1/-1 lines)
  • extract_go_defs.py Updated extract_go_defs.py (+4/-4 lines)
  • generate_structure.py Updated generate_structure.py (+1/-1 lines)
  • grpc_client_test.py Updated grpc_client_test.py (+4/-3 lines)
  • markdown_to_gherkin.py Updated markdown_to_gherkin.py (+3/-3 lines)
  • print_schema_from_descriptor.py Updated print_schema_from_descriptor.py (+3/-1 lines)
  • print_schema_no_nested_block.py Updated print_schema_no_nested_block.py (+2/-1 lines)
  • runtime-hook.py Updated runtime-hook.py (+3/-3 lines)
  • signoz_tester.py Updated signoz_tester.py (+4/-3 lines)
  • terraform-provider-pyvider Updated terraform-provider-pyvider (+1/-1 lines)
  • test-schema.py Updated test-schema.py (+4/-3 lines)
  • tracer_module.py Updated tracer_module.py (+3/-3 lines)
  • verify_zipcode_data_source.py Updated verify_zipcode_data_source.py (+7/-11 lines)
  • conftest.py Removed conftest.py (-1 lines)
  • token_optimizer.py Updated token_optimizer.py (+20/-20 lines)
  • greeter.py Updated greeter.py (+2/-3 lines)
  • loader.py Updated loader.py (+2/-1 lines)
  • proto_fixtures.py Added proto_fixtures.py (+2 lines)
  • mock_data_source.py Added mock_data_source.py (+1 lines)
  • mock_function.py Added mock_function.py (+1 lines)
  • mock_base.py Updated mock_base.py (+2/-1 lines)
  • mock_resource_file_content.py Updated mock_resource_file_content.py (+3/-3 lines)
  • mock_type.py Updated mock_type.py (+2/-1 lines)
  • mock_resource_file.py Added mock_resource_file.py (+1 lines)
  • make-docs.py Updated make-docs.py (+3/-3 lines)
  • x_test_minimal_reproduction.py Updated x_test_minimal_reproduction.py (+2/-2 lines)
  • test_discovery.py Removed test_discovery.py (-99 lines)
  • test_registry.py Updated test_registry.py (+1/-1 lines)
  • test_schema_attribute_path.py Updated test_schema_attribute_path.py (+2/-1 lines)
  • test_terraform_handshake.py Updated test_terraform_handshake.py (+21/-22 lines)
  • test_tftypes_collections_list.py Updated test_tftypes_collections_list.py (+3/-3 lines)
  • test_tftypes_collections_map.py Updated test_tftypes_collections_map.py (+3/-2 lines)
  • test_tftypes_collections_set.py Updated test_tftypes_collections_set.py (+3/-2 lines)
  • test_tftypes_structural_object.py Updated test_tftypes_structural_object.py (+3/-7 lines)
  • test_tftypes_structural_tuple.py Updated test_tftypes_structural_tuple.py (+2/-1 lines)
  • test_tftypes_types_simple.py Updated test_tftypes_types_simple.py (+4/-2 lines)
  • test_schema_validators.py Added test_schema_validators.py (+1 lines)
  • dummy_types.py Updated dummy_types.py (+12/-14 lines)
  • mock_message_pb2.py Updated mock_message_pb2.py (+1/-1 lines)
  • plugin_validators.py Added plugin_validators.py (+1 lines)
  • Moved src/pyvider_rpcplugin/ modules into src/pyvider/grpcplugin/ (client, server, security, handshake, protocol, exception, transport, utils) decouple internal
    32 files
    • __init__.py
    • client.py
    • README.md
    • main.go
    • kv_pb2.py
    • kv_pb2_grpc.py
    • .gitignore
    • README.md
    • buf.gen.yaml
    • buf.yaml
    • build.sh
    • env.sh
    • main.go
    • main.go
    • kv_pb2.py
    • kv_pb2_grpc.py
    • kv.pb.go
    • kv.proto
    • kv_grpc.pb.go
    • grpc.go
    • interface.go
    • rpc.go
    • test.sh
    • mtls.go
    • .gitignore
    • README.md
    • main.go
    • main.go
    • handshake.py
    • security.py
    • test_minimal.py
    • transport.py
  • Moved projects/grpcplugin/ test infrastructure into src/pyvider/grpcplugin/ qualify internal
    2 files
    • grpcplugin
    • grpcplugin

Codebase Cleanup

7 files changed
  • base.py Changes to base.py
  • base.py Changes to base.py
  • base.py Changes to base.py
  • base.py Changes to base.py
  • base.py Changes to base.py
  • base.py Changes to base.py
  • base.py Changes to base.py
  • Updated imports across 185 files for consistency decouple internal
    7 files
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
  • Cleaned up whitespace, unused imports, and style issues across all source files deprecate errata
    7 files
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
  • Updated all component files, scripts, tests, and examples qualify internal
    7 files
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py
    • base.py

Exceptions Module

1 file changed
  • __init__.py Updated __init__.py
  • Reorganized src/pyvider/exceptions/__init__.py with cleaner exports decouple internal
    1 file
    • __init__.py
11 files changed
  • __init__.py Changes to __init__.py
  • init.py Changes to init.py
  • __init__.py Changes to __init__.py
  • base.py Changes to base.py
  • config.py Changes to config.py
  • formatters.py Changes to formatters.py
  • proxy.py Changes to proxy.py
  • __init__.py Changes to __init__.py
  • base.py Changes to base.py
  • decorators.py Changes to decorators.py
  • utils.py Changes to utils.py
  • Updated telemetry init, logger, tracer modules with minor fixes remediate architectural
    11 files
    • __init__.py
    • init.py
    • __init__.py
    • base.py
    • config.py
    • formatters.py
    • proxy.py
    • __init__.py
    • base.py
    • decorators.py
    • utils.py