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__.pyUpdated __init__.py (+1/-3 lines)test_client_grpc.pyUpdated test_client_grpc.py (+2/-2 lines)__init__.pyAdded __init__.py (+25 lines)base.pyUpdated base.py (+31/-21 lines)connection.pyRemoved connection.py (-1 lines)types.pyAdded types.py (+24 lines)config.pyAdded config.py (+12 lines)__init__.pyUpdated __init__.py (+4/-4 lines)generators.pyUpdated generators.py (+6/-6 lines)types.pyUpdated types.py (+20/-5 lines)2025-02-22-1624-claude.mdAdded 2025-02-22-1624-claude.md (+222 lines)docs:2025-02-12-1655-ugh.mdAdded docs:2025-02-12-1655-ugh.md (+131 lines)errors-missing-server-2025-02-12.txtAdded errors-missing-server-2025-02-12.txt (+91 lines)env.shUpdated env.sh (+1/-1 lines)kv_protocol.pyUpdated kv_protocol.py (+30/-9 lines)py_kv_server.pyUpdated py_kv_server.py (+9/-7 lines)__init__.pyUpdated __init__.py (+0/-0 lines)interceptor.pyUpdated interceptor.py (+12/-2 lines)reflection.pyAdded reflection.py (+28 lines)handler.pyAdded handler.py (+12 lines)handshake.pyUpdated handshake.py (+53/-31 lines)protocol.pyUpdated protocol.py (+15/-22 lines)server.pyUpdated server.py (+65/-17 lines)conftest.pyUpdated conftest.py (+20/-73 lines)test_certificate_chains.pyUpdated test_certificate_chains.py (+1/-1 lines)test_certificate_loading.pyUpdated test_certificate_loading.py (+3/-11 lines)test_crypto.pyUpdated test_crypto.py (+1/-1 lines)test_crypto_generators.pyUpdated test_crypto_generators.py (+4/-4 lines)crypto.pyRemoved crypto.py (-13 lines)transport.pyAdded transport.py (+78 lines)test_handshake_magic_cookie.pyUpdated test_handshake_magic_cookie.py (+88/-35 lines)test_handshake_negotiation.pyUpdated test_handshake_negotiation.py (+12/-3 lines)test_handshake_responses.pyUpdated test_handshake_responses.py (+38/-8 lines)test_minimal_server_client.pyUpdated test_minimal_server_client.py (+16/-1 lines)run_server.pyRemoved run_server.py (-53 lines)run_tcp_server.pyRemoved run_tcp_server.py (-70 lines)run_unix_server.pyRemoved run_unix_server.py (-69 lines)test_server.pyUpdated test_server.py (+73/-76 lines)test_server_coverage.pyUpdated test_server_coverage.py (+28/-16 lines)test_server_coverage_extra.pyUpdated test_server_coverage_extra.py (+17/-18 lines)test_transport_unix_2.pyRemoved test_transport_unix_2.py (-318 lines)test_connection.pyUpdated test_connection.py (+1/-1 lines)test_transport_unix_2.pyUpdated test_transport_unix_2.py (+180/-154 lines)test_transport_unix_3.pyUpdated test_transport_unix_3.py (+2/-2 lines)__init__.pyUpdated __init__.py (+2/-2 lines)base.pyUpdated base.py (+1/-3 lines)tcp.pyUpdated tcp.py (+2/-4 lines)types.pyAdded types.py (+27 lines)unix.pyUpdated unix.py (+7/-4 lines)types.pyAdded types.py (+25 lines)requirements.txtUpdated requirements.txt (+48/-4 lines)__main__.pyAdded __main__.py (+1 lines)capabilities.pyUpdated capabilities.py (+2/-3 lines)__init__.pyRemoved __init__.py (-5 lines)terraform_handshake.pyRemoved terraform_handshake.py (-69 lines)test_terraform_handshake.pyRemoved test_terraform_handshake.py (-213 lines)
- Moved
src/pyvider/rpcplugin/client.pytosrc/pyvider/rpcplugin/client/base.pydecouple internal1 file
base.py
- Added
client/__init__.pyexporting all client types,ClientConnection, andRPCPluginClientinstantiate internal1 file
__init__.py
- Added
client/types.pywith type aliases:ClientT,SecureRpcClientT,GrpcChannelType,TransportType,RpcConfigType,GrpcCredentialsTypeinstantiate internal1 file
types.py
Type System
2 files changed
grpc.aio.ChannelUpdated grpc.aio.Channeltypes.pyUpdated types.py
- Added
src/pyvider/rpcplugin/types.py(23 lines) withServerTandHandlerTtype definitions instantiate internal1 file
types.py
RPCPluginClientnow extendsSecureRpcClientTprotocol class interface internal2 files
test_certificate_credentials.pytest_certificate_properties.py
- Transport fields typed with
TransportTinstead of bareTransportdecouple internal19 files
broke-server.pytest_server_two.pytest_transport_unix_minimal.pycertificate.pyexample.protoexample_pb2.pyexample_pb2_grpc.pyexample_server.pymock_message.protomock_message_pb2.pymock_message_pb2_grpc.pymock_server.pytest_connection.pytest_certificate_lifecycle.pytest_certificate_mtls.pytest_certificate_verify.py__init__.pyhandshake.pytest_server_destructor_cleanup.py
- Channel fields typed with
GrpcChannelTypeinstead ofgrpc.aio.Channelinterface internal1 file
grpc.aio.Channel
Transport Rename
9 files changed
transport.pyChanges to transport.pytest_transport_tcp.pyChanges to test_transport_tcp.pytest_transport_unix_2.pyChanges to test_transport_unix_2.pytest_transport_unix_3.pyChanges to test_transport_unix_3.py__init__.pyChanges to __init__.pybase.pyChanges to base.pytcp.pyChanges to tcp.pytypes.pyChanges to types.pyunix.pyChanges to unix.py
Provider Integration
3 files changed
grpc.aioUpdated grpc.aiobase.pyUpdated base.pyrpcplugin.typesUpdated rpcplugin.types