parsers package¶
Subpackages¶
parsers.run_parsers module¶
-
parsers.run_parsers.run_parser(field, data)¶ Runs the respective parser for the given field and data and returns the parsed result
- Parameters
field – The field name to be parsed
data – A snapshot message as received from the message queue (json format by default)
- Returns
(dict) The parsed result
-
parsers.run_parsers.run_parser_service(field, mq_url)¶ Runs a parser service that listens to a message queue, parses incoming messages and publishes back a message with parsed data
- Parameters
field – The field name to be parsed
mq_url – The address of the message queue (+scheme) to connect and listen to. The MQ listener is determined by the scheme (see mq_listeners module)
Module contents¶
cortex.parsers is a submodule responsible for handling all the parsing of snapshots, storing parser classes and functions and running them as services
CLI¶
python -m cortex.parsers¶
python -m cortex.parsers [OPTIONS] COMMAND [ARGS]...