checkpoint(data-ingestion): Extract founding_date and other stats

This commit is contained in:
TrisNol
2023-09-12 19:07:23 +02:00
parent cee1ef901a
commit cf92cb61cc
4 changed files with 3972 additions and 298 deletions
File diff suppressed because it is too large Load Diff
Generated
+19 -261
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -49,6 +49,7 @@ python-dotenv = "^1.0.0"
seaborn = "^0.12.2"
selenium = "^4.10.0"
tqdm = "^4.65.0"
xmltodict = "^0.13.0"
[tool.poetry.extras]
ingest = ["selenium"]
@@ -90,6 +90,16 @@ class YearlyResult:
kpis: dict[FinancialKPIEnum, float]
@dataclass
class ShareCapital:
"""Share Capital of company."""
value: float
currency: str # TODO define Enum
# TODO define Enum
type: str # noqa: A003
@dataclass
class Company:
"""Company dataclass."""
@@ -99,7 +109,11 @@ class Company:
name: str
last_update: str
relationships: list[CompanyRelationship]
# yearly_results: list[FinancialResults]
# yearly_results: Optional[list[FinancialResults]]
company_type: str # TODO define Enum
share_capital: ShareCapital | None
business_purpose: str
founding_date: str
def to_dict(self) -> dict:
"""_summary_.