Ebonite Runtime¶
Runtime module is responsible for code that runs inside containers.
Here are runtime abstractions:
Interface
- an object with some exposed methods. Builtin implementation:ModelInterface
which is created dynamically withmodel_interface()
.InterfaceLoader
- loadsInterface
instance. Builtin implementation:ModelLoader
Server
- gets an instance ofInterface
and exposes it’s methods via some protocol. Builtin implementations:FlaskServer
andAIOHTTPServer
- all expose methods as http POST endpoints.
Also, these helper functions are available:
run_model_server()
- createModelInterface
from model and runs debugServer
.