Skip to content

Parsers rules of creation

David Durvaux edited this page Mar 9, 2023 · 1 revision

In order to be called by the parsing.py script, parsers should follow the following rules:

  • A function taking 1 parameter (file to be parsed or list of file to be parsed)
  • The following header giving parsing.py the needed information:
#----- definition for parsing.py script -----#
parser_description = "Parsing ps.txt file"  ## short description of the parser
parser_input = "ps"                         ## needed input (as stored in the case.json)
parser_call = "parse_ps"                    ## function to call with the parser_input as parameter
#--------------------------------------------#
  • A main function so the script can be independant
Clone this wiki locally