mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-13 06:58:46 +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"
|
seaborn = "^0.12.2"
|
||||||
selenium = "^4.10.0"
|
selenium = "^4.10.0"
|
||||||
tqdm = "^4.65.0"
|
tqdm = "^4.65.0"
|
||||||
|
xmltodict = "^0.13.0"
|
||||||
|
|
||||||
[tool.poetry.extras]
|
[tool.poetry.extras]
|
||||||
ingest = ["selenium"]
|
ingest = ["selenium"]
|
||||||
|
@ -90,6 +90,16 @@ class YearlyResult:
|
|||||||
kpis: dict[FinancialKPIEnum, float]
|
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
|
@dataclass
|
||||||
class Company:
|
class Company:
|
||||||
"""Company dataclass."""
|
"""Company dataclass."""
|
||||||
@ -99,7 +109,11 @@ class Company:
|
|||||||
name: str
|
name: str
|
||||||
last_update: str
|
last_update: str
|
||||||
relationships: list[CompanyRelationship]
|
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:
|
def to_dict(self) -> dict:
|
||||||
"""_summary_.
|
"""_summary_.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user