swh.vulns.grpc_server module#

A simple tool to start the swh-vulns gRPC server in Rust.

exception swh.vulns.grpc_server.ExecutableNotFound[source]#

Bases: OSError

swh.vulns.grpc_server.find_free_port()[source]#
swh.vulns.grpc_server.build_rust_grpc_server_cmdline(**config)[source]#
swh.vulns.grpc_server.spawn_rust_grpc_server(**config)[source]#

Returns the process and the port it is listening on

swh.vulns.grpc_server.spawn_naive_grpc_server(**config) Tuple[Process, int][source]#

Returns the process and the port it is listening on

swh.vulns.grpc_server.stop_grpc_server(server: Popen | Process, timeout: int = 15)[source]#