pyvider 2025-02-12
Split the rpcplugin client into a subpackage (`client/`) with separate `base
56 files · 1,471+ · 1,365-

Client Subpackage

56 files changed
  • __init__.py Updated __init__.py (+1/-3 lines)
  • test_client_grpc.py Updated test_client_grpc.py (+2/-2 lines)
  • __init__.py Added __init__.py (+25 lines)
  • base.py Updated base.py (+31/-21 lines)
  • connection.py Removed connection.py (-1 lines)
  • types.py Added types.py (+24 lines)
  • config.py Added config.py (+12 lines)
  • __init__.py Updated __init__.py (+4/-4 lines)
  • generators.py Updated generators.py (+6/-6 lines)
  • types.py Updated types.py (+20/-5 lines)
  • 2025-02-22-1624-claude.md Added 2025-02-22-1624-claude.md (+222 lines)
  • docs:2025-02-12-1655-ugh.md Added docs:2025-02-12-1655-ugh.md (+131 lines)
  • errors-missing-server-2025-02-12.txt Added errors-missing-server-2025-02-12.txt (+91 lines)
  • env.sh Updated env.sh (+1/-1 lines)
  • kv_protocol.py Updated kv_protocol.py (+30/-9 lines)
  • py_kv_server.py Updated py_kv_server.py (+9/-7 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • interceptor.py Updated interceptor.py (+12/-2 lines)
  • reflection.py Added reflection.py (+28 lines)
  • handler.py Added handler.py (+12 lines)
  • handshake.py Updated handshake.py (+53/-31 lines)
  • protocol.py Updated protocol.py (+15/-22 lines)
  • server.py Updated server.py (+65/-17 lines)
  • conftest.py Updated conftest.py (+20/-73 lines)
  • test_certificate_chains.py Updated test_certificate_chains.py (+1/-1 lines)
  • test_certificate_loading.py Updated test_certificate_loading.py (+3/-11 lines)
  • test_crypto.py Updated test_crypto.py (+1/-1 lines)
  • test_crypto_generators.py Updated test_crypto_generators.py (+4/-4 lines)
  • crypto.py Removed crypto.py (-13 lines)
  • transport.py Added transport.py (+78 lines)
  • test_handshake_magic_cookie.py Updated test_handshake_magic_cookie.py (+88/-35 lines)
  • test_handshake_negotiation.py Updated test_handshake_negotiation.py (+12/-3 lines)
  • test_handshake_responses.py Updated test_handshake_responses.py (+38/-8 lines)
  • test_minimal_server_client.py Updated test_minimal_server_client.py (+16/-1 lines)
  • run_server.py Removed run_server.py (-53 lines)
  • run_tcp_server.py Removed run_tcp_server.py (-70 lines)
  • run_unix_server.py Removed run_unix_server.py (-69 lines)
  • test_server.py Updated test_server.py (+73/-76 lines)
  • test_server_coverage.py Updated test_server_coverage.py (+28/-16 lines)
  • test_server_coverage_extra.py Updated test_server_coverage_extra.py (+17/-18 lines)
  • test_transport_unix_2.py Removed test_transport_unix_2.py (-318 lines)
  • test_connection.py Updated test_connection.py (+1/-1 lines)
  • test_transport_unix_2.py Updated test_transport_unix_2.py (+180/-154 lines)
  • test_transport_unix_3.py Updated test_transport_unix_3.py (+2/-2 lines)
  • __init__.py Updated __init__.py (+2/-2 lines)
  • base.py Updated base.py (+1/-3 lines)
  • tcp.py Updated tcp.py (+2/-4 lines)
  • types.py Added types.py (+27 lines)
  • unix.py Updated unix.py (+7/-4 lines)
  • types.py Added types.py (+25 lines)
  • requirements.txt Updated requirements.txt (+48/-4 lines)
  • __main__.py Added __main__.py (+1 lines)
  • capabilities.py Updated capabilities.py (+2/-3 lines)
  • __init__.py Removed __init__.py (-5 lines)
  • terraform_handshake.py Removed terraform_handshake.py (-69 lines)
  • test_terraform_handshake.py Removed test_terraform_handshake.py (-213 lines)
  • Moved src/pyvider/rpcplugin/client.py to src/pyvider/rpcplugin/client/base.py decouple internal
    1 file
    • base.py
  • Added client/__init__.py exporting all client types, ClientConnection, and RPCPluginClient instantiate internal
    1 file
    • __init__.py
  • Added client/types.py with type aliases: ClientT, SecureRpcClientT, GrpcChannelType, TransportType, RpcConfigType, GrpcCredentialsType instantiate internal
    1 file
    • types.py
2 files changed
  • grpc.aio.Channel Updated grpc.aio.Channel
  • types.py Updated types.py
  • Added src/pyvider/rpcplugin/types.py (23 lines) with ServerT and HandlerT type definitions instantiate internal
    1 file
    • types.py
  • RPCPluginClient now extends SecureRpcClientT protocol class interface internal
    2 files
    • test_certificate_credentials.py
    • test_certificate_properties.py
  • Transport fields typed with TransportT instead of bare Transport decouple internal
    19 files
    • broke-server.py
    • test_server_two.py
    • test_transport_unix_minimal.py
    • certificate.py
    • example.proto
    • example_pb2.py
    • example_pb2_grpc.py
    • example_server.py
    • mock_message.proto
    • mock_message_pb2.py
    • mock_message_pb2_grpc.py
    • mock_server.py
    • test_connection.py
    • test_certificate_lifecycle.py
    • test_certificate_mtls.py
    • test_certificate_verify.py
    • __init__.py
    • handshake.py
    • test_server_destructor_cleanup.py
  • Channel fields typed with GrpcChannelType instead of grpc.aio.Channel interface internal
    1 file
    • grpc.aio.Channel

Transport Rename

9 files changed
  • transport.py Changes to transport.py
  • test_transport_tcp.py Changes to test_transport_tcp.py
  • test_transport_unix_2.py Changes to test_transport_unix_2.py
  • test_transport_unix_3.py Changes to test_transport_unix_3.py
  • __init__.py Changes to __init__.py
  • base.py Changes to base.py
  • tcp.py Changes to tcp.py
  • types.py Changes to types.py
  • unix.py Changes to unix.py
  • Renamed Transport base class to RPCPluginTransport in transport imports decouple internal
    9 files
    • transport.py
    • test_transport_tcp.py
    • test_transport_unix_2.py
    • test_transport_unix_3.py
    • __init__.py
    • base.py
    • tcp.py
    • types.py
    • unix.py

Provider Integration

3 files changed
  • grpc.aio Updated grpc.aio
  • base.py Updated base.py
  • rpcplugin.types Updated rpcplugin.types
  • Updated providers/base.py to import ServerT, HandlerT from rpcplugin.types and RPCPluginServer interface internal
    2 files
    • base.py
    • rpcplugin.types
  • Removed direct grpc.aio import from base provider interface internal
    1 file
    • grpc.aio