Skip to content

Latest commit

History

History
17 lines (12 loc) · 603 Bytes

File metadata and controls

17 lines (12 loc) · 603 Bytes

solution-runtime (python)

Generic Python runtime for codefly solutions. Twin of solution-runtime-go: registration (host + gateway, heartbeat), CORS, Module Federation asset serving, the capability handshake, the manifest, and a bearer-forwarding gateway client.

fromsolution_runtimeimportGateway, Solutiondefhandler(gw: Gateway) ->dict:
resp=gw.unary("/pkg.Service/Method", Request(), Response)
return {...}
Solution(id="my-solution", title="My Solution").handle("/thing", handler).serve()

The gateway URL, the caller's bearer, and the wire protocol are hidden.