intelmq.bots.parsers.turris package¶
Submodules¶
intelmq.bots.parsers.turris.parser module¶
-
intelmq.bots.parsers.turris.parser.
BOT
¶ alias of
intelmq.bots.parsers.turris.parser.TurrisGreylistParserBot
-
class
intelmq.bots.parsers.turris.parser.
TurrisGreylistParserBot
(*args, **kwargs)¶ Bases:
intelmq.lib.bot.ParserBot
Parse the Turris Greylist feed
-
parse
(report: intelmq.lib.message.Report)¶ A basic CSV Dictionary parser. The resulting lines are dictionaries with the column names as keys.
-
parse_line
(line, report)¶ A generator which can yield one or more messages contained in line.
Report has the full message, thus you can access some metadata. Override for your use.
-
recover_line
(line: Union[dict, str, None] = None) → str¶ Converts dictionaries to csv. self.csv_fieldnames must be list of fields. Respect saved line ending.
-