Elastic Event Components is an open source software library to build flexible components using function flow graphs.
Elastic Event Components is an open source software library to build flexible component using
function flow graphs. The graph nodes represent any operations, while
the graph edges represent the function parameters that build
the flow between nodes. Elastic Event Components also includes flow visualization.
https://gitlab.com/elastic-event-components/e2c
The following link explain how to install a version of E2C that enables you to write applications in various languages.
See Installing E2C for instructions
on how to build from source.
$ python
>>> import e2c
>>> config = (
... '.run -- action',
... 'action.render -- render',
... ' render.out -- .out',
... 'action.log -- log',
... ' log.store -- .out')
>>> def action(data: str, render, log):
... render(data)
... log('Render done!')
>>> sess = e2c.Session[str, str](config)
>>> sess.actor('action', action)
>>> sess.actor('render', lambda dat, out: out(dat))
>>> sess.actor('log', lambda dat, store: store(dat))
>>> sess.run_continues('Hello E2C!', print)
Hello e2c!
Render done!