flash.core.serve.composition.Composition¶
- class flash.core.serve.composition.Composition(*, DEBUG=False, TESTING=False, **kwargs)[source]¶
Create a composition which define computations / endpoints to create & run.
Any number of components are accepted, which may have aribtrary connections between them. The final path through the component/connection DAG is determined by the root/terminal node position as specified by endpoint input/outputs keys.
If only ONE component is provided, there is no need to create an Endpoint object. The library will generate a fully connected input/ouput endpoint for the one component with the route name set by the name of the method the @expose decorator is applied to.
- Parameters
kwargs¶ (
Union[object,Endpoint]) – Assignment of human readable names toModelComponentandEndpointinstances. If more than oneModelComponentis passed, anEndpointis needed as well.
Warning
This is a Work In Progress interface!