Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.32 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.32 KB

Apama event parser

Build Status Coverage Status PyPI version

Description

A parser for Apama epl events. Apama is a complex event processor that uses a domain specific language for working with the event engine. Testing is done using some apama specific extensions to pysys.

This project provides a parser for apama events, with the intention to be used with the testing framework.

How to use

Pass an event as a string to the parse method in eventparser.py. The result is an ApamaEvent object. The ApamaEvent definition can be found in apamaevent.py

from apamaeventparser.eventparser import parse
event = parse('com.apama.Event("Field", 1.234, 7, false, ["a","b","c"], {"key": "value"})')

An event can be created from the ApamaEvent object using the unparse method.

Dependencies

See requirements.txt