Module Assign NameStore ListLoad Str Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad orelse For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad orelse If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str orelse Assign NameStore Call NameLoad Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign NameStore Call NameLoad Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str If NameLoad body For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list
N/A N/A __all__ N/A export_to_word N/A re N/A os docx Document docx.text Paragraph Run docx.table Table data.parsed_data Vulnerability export_to_word N/A N/A vuln_info output_file_name template N/A None N/A N/A 
    Export Vulnerability info to word file.
    
    :param vuln_info: Vulnerability list info
    :type vuln_info: list(Vulnerability)
    
    :param output_file_name: filename to save word file,
    :type output_file_name: str

    :param template: path to template file.
    :type template: str

    :raises: TypeError
     N/A N/A N/A isinstance vuln_info list N/A N/A N/A TypeError N/A Expected list, got '%s' instead N/A type vuln_info N/A N/A x vuln_info N/A N/A N/A N/A isinstance x Vulnerability N/A N/A N/A TypeError N/A Expected Vulnerability, got '%s' instead N/A type x N/A N/A N/A isinstance output_file_name str N/A N/A N/A TypeError N/A Expected basestring, got '%s' instead N/A type output_file_name N/A N/A N/A output_file_name N/A N/A N/A ValueError output_file_name must has a valid value. N/A N/A template None N/A N/A N/A N/A isinstance template str N/A N/A N/A TypeError N/A Expected basestring, got '%s' instead N/A type template N/A N/A N/A template N/A N/A N/A N/A os path exists template N/A N/A N/A ValueError Template must has a valid value. N/A template N/A N/A doc_template N/A Document template N/A p N/A paragraph_search #####TABLE#### doc_template N/A N/A p None N/A N/A N/A IOError Incompatible document format. Can't find '#####TABLE####' in document. N/A N/A p N/A Paragraph N/A N/A create_tables vuln_info p N/A doc N/A Document N/A N/A N/A doc save output_file_name N/A create_tables N/A N/A vulns paragraph N/A N/A N/A 
    Creates tables with information vulns into paragraph instance.
    
    :param vulns: list of Vulnerabilities instances 
    :type vulns: list(Vulnerability)
    
    :param paragraph: A Paragraph instance.
    :type paragraph: Paragraph

    :raises: TypeError
     N/A N/A N/A isinstance vulns list N/A N/A N/A TypeError N/A Expected list, got '%s' instead N/A type vulns N/A N/A N/A isinstance paragraph Paragraph N/A N/A N/A TypeError N/A Expected Paragraph, got '%s' instead N/A type paragraph N/A d N/A Document N/A N/A N/A d add_paragraph asdfasdfasfd N/A paragraph_search N/A N/A text_value doc N/A N/A N/A 
    Search in paragraphs for the text.

    :param text_value: Text to looking for in document.
    :type text_value: str

    :param doc: Document instance
    :type doc: Document

    :return: paragraph found. None otherwise.
    :rtype: Paragraph|None

    :raises: ValueError, TypeError
     N/A N/A N/A isinstance text_value str N/A N/A N/A TypeError N/A Expected basestring, got '%s' instead N/A type text_value N/A N/A N/A isinstance doc Document N/A N/A N/A TypeError N/A Expected Document, got '%s' instead N/A type doc N/A N/A N/A para_regex N/A N/A re compile text_value N/A N/A N/A N/A re error N/A N/A N/A ValueError Invalid regex expression. N/A paragraph N/A doc paragraphs N/A N/A N/A paragraph text N/A N/A N/A N/A para_regex search N/A paragraph text N/A N/A paragraph N/A None N/A search_tables_in_document N/A N/A text_value doc N/A N/A N/A 
    Search for a table into document and return the cell where found it.

    :param text_value: Value to search, as regex.
    :type text_value: str

    :param doc: Document instance
    :type doc: Document

    :return: A Table instances or None, if not matches found.
    :rtype: Table

    :raises: ValueError, TypeError
     N/A N/A N/A isinstance text_value str N/A N/A N/A TypeError N/A Expected basestring, got '%s' instead N/A type text_value N/A N/A N/A isinstance doc Document N/A N/A N/A TypeError N/A Expected Document, got '%s' instead N/A type doc N/A N/A N/A tbl_regex N/A N/A re compile text_value N/A N/A N/A N/A re error N/A N/A N/A ValueError Invalid regex expression. N/A tbl_regex N/A N/A table N/A doc tables N/A N/A r N/A table rows N/A N/A cell N/A r cells N/A N/A paragraph N/A cell paragraphs N/A N/A N/A paragraph text N/A N/A paragraph text N/A N/A N/A N/A tbl_regex search N/A paragraph text N/A N/A table N/A None N/A search_in_table N/A N/A text_value table N/A N/A N/A 
    Search for a text into a table and return the cell where found it.

    :param text_value: Value to search as regex.
    :type text_value: str

    :param table: Table instance
    :type table: Table

    :return: A _Cell instances or None, if not matches found.
    :rtype: _Cell

    :raises: TypeError, ValueError
     N/A N/A N/A isinstance text_value str N/A N/A N/A TypeError N/A Expected basestring, got '%s' instead N/A type text_value N/A N/A N/A isinstance table Table N/A N/A N/A TypeError N/A Expected Document, got '%s' instead N/A type table N/A N/A N/A tbl_regex N/A N/A re compile text_value N/A N/A N/A N/A re error N/A N/A N/A ValueError Invalid regex expression. N/A r N/A table rows N/A N/A cell N/A r cells N/A N/A paragraph N/A cell paragraphs N/A N/A N/A paragraph text N/A N/A N/A N/A tbl_regex search N/A paragraph text N/A N/A cell N/A None N/A