mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-12 23:09:59 +02:00
checkpoint(data-ingestion): Extract founding_date and other stats
This commit is contained in:
parent
cee1ef901a
commit
cf92cb61cc
File diff suppressed because it is too large
Load Diff
280
poetry.lock
generated
280
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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_.
|
||||
|
Loading…
x
Reference in New Issue
Block a user