intelmq.bots.parsers.turris package¶
Submodules¶
intelmq.bots.parsers.turris.parser module¶
- intelmq.bots.parsers.turris.parser.BOT¶
alias of
TurrisGreylistParserBot
- class intelmq.bots.parsers.turris.parser.TurrisGreylistParserBot(*args, **kwargs)¶
Bases:
ParserBot
Parse the Turris Greylist feed
- parse(report: 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: dict | str | None = None) str ¶
Converts dictionaries to csv. self.csv_fieldnames must be list of fields. Respect saved line ending.