sec_parser.processing_steps.top_section_manager
Attributes
Classes
Documents are divided into sections, subsections, and so on. |
|
Specialized version of TopSectionManagerForFiling for handling 10-Q filings. |
|
Specialized version of TopSectionManagerForFiling for handling 10-K filings. |
Module Contents
- sec_parser.processing_steps.top_section_manager.part_pattern
- sec_parser.processing_steps.top_section_manager.item_pattern
- class sec_parser.processing_steps.top_section_manager._Candidate
- class sec_parser.processing_steps.top_section_manager.TopSectionManager(filing_sections: sec_parser.semantic_elements.top_section_title_types.FilingSections, *, types_to_process: set[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement]] | None = None, types_to_exclude: set[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement]] | None = None)
-
Documents are divided into sections, subsections, and so on. Top level sections are the highest level of sections and are standardized across each type of document.
An example of a Top Level Section in a 10-Q report is “Part I, Item 3. Quantitative and Qualitative Disclosures About Market Risk.”.
- _NUM_ITERATIONS = 2
- _filing_sections
- _candidates: list[_Candidate] = []
- _selected_candidates: tuple[_Candidate, Ellipsis] | None = None
- _last_part: str = '?'
- _last_order_number
- classmethod is_match_part_or_item(text: str) bool
- static match_part(text: str) str | None
- static match_item(text: str) str | None
- _process_element(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement, context: sec_parser.processing_steps.abstract_classes.abstract_elementwise_processing_step.ElementProcessingContext) sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement
- _process_iteration_0(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement) None
- _process_iteration_1(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement) sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement
- _identify_candidate(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement) None
- _get_section_type(identifier: str) sec_parser.semantic_elements.top_section_title_types.TopSectionInFiling
- _select_candidates() tuple[_Candidate, Ellipsis]
- _process_selected_candidates(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement) sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement
- _update_last_order_number(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement, order: float) None
- _log_order_number_not_greater(element: sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement, order: float) None
- _create_top_section_title(candidate: _Candidate) sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement
- class sec_parser.processing_steps.top_section_manager.TopSectionManagerFor10Q(*, types_to_process: set[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement]] | None = None, types_to_exclude: set[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement]] | None = None)
Bases:
TopSectionManagerSpecialized version of TopSectionManagerForFiling for handling 10-Q filings. Automatically uses FilingSectionsIn10Q while maintaining all the functionality of the base class.
- class sec_parser.processing_steps.top_section_manager.TopSectionManagerFor10K(*, types_to_process: set[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement]] | None = None, types_to_exclude: set[type[sec_parser.semantic_elements.abstract_semantic_element.AbstractSemanticElement]] | None = None)
Bases:
TopSectionManagerSpecialized version of TopSectionManagerForFiling for handling 10-K filings. Automatically uses FilingSectionsIn10K while maintaining all the functionality of the base class.