Installation for Python

The following guides explain how to install a version of E2C that enables you to write applications in Python.

Installation via pip

$ pip install e2c

Getting from source

The project is hosted on GitLab

$ git@gitlab.com:elastic-event-components/e2c.git

See INSTALL for instructions on how to install E2c.

Run a short program

>>> config = (
        '.run -- action',
        'action.out -- print')
>>> import e2c
>>> graph = e2c.Graph(config)
>>> graph.actor('action',
...     lambda data, out: out(data))
>>> graph.actor('print',
...     lambda data: print(data))
>>> graph.run('Hello, E2C')

If the system outputs the following, then you are ready to start writing E2C programs:

$ Hello, E2C

Dependencies