pyvider 2025-01-08
Refined the pyvider_rpcplugin package with server improvements
37 files · 4,929+ · 116-

rpcplugin Server

36 files changed
  • __init__.py Added __init__.py (+23 lines)
  • client.py Added client.py (+253 lines)
  • coverage.json Added coverage.json (+1 lines)
  • grpcplugin.md Added grpcplugin.md (+788 lines)
  • exception.py Added exception.py (+21 lines)
  • handshake.py Added handshake.py (+174 lines)
  • protocol.py Added protocol.py (+33 lines)
  • security.py Added security.py (+178 lines)
  • server.py Added server.py (+207 lines)
  • compile_mock_message.sh Added compile_mock_message.sh (+7 lines)
  • conftest.py Added conftest.py (+188 lines)
  • create_test_certs.sh Added create_test_certs.sh (+174 lines)
  • dummy_server.py Added dummy_server.py (+35 lines)
  • mock_message.proto Added mock_message.proto (+6 lines)
  • mock_message_pb2.py Added mock_message_pb2.py (+36 lines)
  • mock_message_pb2_grpc.py Added mock_message_pb2_grpc.py (+24 lines)
  • run_server.py Added run_server.py (+52 lines)
  • test_client.py Added test_client.py (+311 lines)
  • test_handshake.py Added test_handshake.py (+127 lines)
  • test_security.py Added test_security.py (+342 lines)
  • test_server.py Added test_server.py (+244 lines)
  • test_transport_tcp.py Added test_transport_tcp.py (+181 lines)
  • test_transport_unix.py Added test_transport_unix.py (+198 lines)
  • x_test_transport_2.py Added x_test_transport_2.py (+106 lines)
  • transport.py Added transport.py (+143 lines)
  • utils.py Added utils.py (+19 lines)
  • .gitignore Added .gitignore (+2 lines)
  • another-schema-example.md Added another-schema-example.md (+34 lines)
  • grpc-info.txt Updated grpc-info.txt (+4/-12 lines)
  • grpcplugin.md Added grpcplugin.md (+788 lines)
  • core.py Updated core.py (+1/-1 lines)
  • __init__.py Updated __init__.py (+45/-98 lines)
  • formatters.py Updated formatters.py (+5/-1 lines)
  • base.py Added base.py (+4 lines)
  • crypto.py Added crypto.py (+150 lines)
  • x_test_minimal_reproduction.py Added x_test_minimal_reproduction.py (+21 lines)
  • Major refactor of src/pyvider_rpcplugin/server.py (323 lines changed) with improved lifecycle management and graceful shutdown decouple internal
    1 file
    • server.py

rpcplugin Security

1 file changed
  • security.py Updated security.py
  • Updated src/pyvider_rpcplugin/security.py (47 lines changed) with improved mTLS handling harden internal
    1 file
    • security.py

rpcplugin Client

1 file changed
  • client.py Updated client.py
  • Refined src/pyvider_rpcplugin/client.py (52 lines changed) with better subprocess management decouple internal
    1 file
    • client.py

rpcplugin Protocol

1 file changed
  • terraform_handshake.py Updated terraform_handshake.py (+4/-4 lines)
  • Updated handshake.py (30 lines changed), protocol.py, exception.py, transport.py interface internal
    6 files
    • terraform_handshake.py
    • exception.py
    • handshake.py
    • protocol.py
    • test_handshake.py
    • transport.py

Test: Plugin System

3 files changed
  • run_server.py Updated run_server.py
  • test_server.py Updated test_server.py
  • test_client_start_stop.py Updated test_client_start_stop.py
  • Added src/pyvider_rpcplugin/tests/run_server.py and test_server.py for server testing qualify internal
    2 files
    • run_server.py
    • test_server.py
  • Removed test_client_start_stop.py (115 lines) - replaced with focused tests qualify internal
    1 file
    • test_client_start_stop.py