Shortcuts

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 to ModelComponent and Endpoint instances. If more than one ModelComponent is passed, an Endpoint is needed as well.

Warning

  • This is a Work In Progress interface!

Read the Docs v: 0.7.0
Versions
latest
stable
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
docs-fix_typing
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.