mex.extractors.international_projects.models package

Submodules

mex.extractors.international_projects.models.source module

class mex.extractors.international_projects.models.source.InternationalProjectsSource(*, funding_type: str, project_lead_person: str, end_date: TemporalEntity | None = None, partner_organization: list[str] = [], funding_source: str, funding_program: str, rki_internal_project_number: str, additional_rki_units: str, project_lead_rki_unit: str, project_abbreviation: str, start_date: TemporalEntity | None = None, activity1: str, activity2: str, topic1: str, topic2: str, full_project_name: str, website: str)

Bases: BaseRawData

Model class for international projects source entities.

activity1: str
activity2: str
additional_rki_units: str
end_date: TemporalEntity | None
full_project_name: str
funding_program: str
funding_source: str
funding_type: str
get_end_year() TemporalEntity | None

Return end year from extractor.

get_funding_sources() list[str]

Return a list of project funding sources.

get_identifier_in_primary_source() str | None

Return identifier in primary source from extractor.

get_partners() Sequence[str | None]

Return partners from extractor.

get_project_lead_persons() list[str]

Return a list of project lead persons.

get_project_lead_rki_units() list[str]

Return a list of project lead rki units.

get_start_year() TemporalEntity | None

Return start year from extractor.

get_units() Sequence[str | None]

Return units from extractor.

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 0, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'activity1': FieldInfo(annotation=str, required=True), 'activity2': FieldInfo(annotation=str, required=True), 'additional_rki_units': FieldInfo(annotation=str, required=True), 'end_date': FieldInfo(annotation=Union[TemporalEntity, NoneType], required=False, default=None), 'full_project_name': FieldInfo(annotation=str, required=True), 'funding_program': FieldInfo(annotation=str, required=True), 'funding_source': FieldInfo(annotation=str, required=True), 'funding_type': FieldInfo(annotation=str, required=True), 'partner_organization': FieldInfo(annotation=list[str], required=False, default=[]), 'project_abbreviation': FieldInfo(annotation=str, required=True), 'project_lead_person': FieldInfo(annotation=str, required=True), 'project_lead_rki_unit': FieldInfo(annotation=str, required=True), 'rki_internal_project_number': FieldInfo(annotation=str, required=True), 'start_date': FieldInfo(annotation=Union[TemporalEntity, NoneType], required=False, default=None), 'topic1': FieldInfo(annotation=str, required=True), 'topic2': FieldInfo(annotation=str, required=True), 'website': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

partner_organization: list[str]
project_abbreviation: str
project_lead_person: str
project_lead_rki_unit: str
rki_internal_project_number: str
start_date: TemporalEntity | None
topic1: str
topic2: str
website: str

Module contents