ECN>> e2c>> 返回
项目作者: elastic-event-components

项目描述 :
Elastic Event Components is an open source software library to build flexible components using function flow graphs.
高级语言: Python
项目地址: git://github.com/elastic-event-components/e2c.git
创建时间: 2017-09-16T17:16:27Z
项目社区:https://github.com/elastic-event-components/e2c

开源协议:Apache License 2.0

下载






E2C - Elastic Event Components

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.

NEWS: E2C has moved to GitLab

https://gitlab.com/elastic-event-components/e2c

Installation

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.

Try your first E2C program

  1. $ python
  1. >>> import e2c
  2. >>> config = (
  3. ... '.run -- action',
  4. ... 'action.render -- render',
  5. ... ' render.out -- .out',
  6. ... 'action.log -- log',
  7. ... ' log.store -- .out')
  8. >>> def action(data: str, render, log):
  9. ... render(data)
  10. ... log('Render done!')
  11. >>> sess = e2c.Session[str, str](config)
  12. >>> sess.actor('action', action)
  13. >>> sess.actor('render', lambda dat, out: out(dat))
  14. >>> sess.actor('log', lambda dat, store: store(dat))
  15. >>> sess.run_continues('Hello E2C!', print)
  16. Hello e2c!
  17. Render done!




For more information

License

Apache 2.0 License