rendercv.data.models.entry_types
¶
The rendercv.models.data.entry_types
module contains the data models of all the available
entry types in RenderCV.
OneLineEntry
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the data model of OneLineEntry
.
Source code in rendercv/data/models/entry_types.py
BulletEntry
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the data model of BulletEntry
.
Source code in rendercv/data/models/entry_types.py
EntryWithDate
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the parent class of some of the entry types that have date fields.
Source code in rendercv/data/models/entry_types.py
date_string: str
cached
property
¶
Return a date string based on the date
field and cache date_string
as
an attribute of the instance.
PublicationEntryBase
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the parent class of the PublicationEntry
class.
Source code in rendercv/data/models/entry_types.py
doi_url: str
cached
property
¶
Return the URL of the DOI and cache doi_url
as an attribute of the
instance.
clean_url: str
cached
property
¶
Return the clean URL of the publication and cache clean_url
as an attribute
of the instance.
ignore_url_if_doi_is_given()
¶
Check if DOI is provided and ignore the URL if it is provided.
Source code in rendercv/data/models/entry_types.py
PublicationEntry
¶
Bases: EntryWithDate
, PublicationEntryBase
This class is the data model of PublicationEntry
. PublicationEntry
class is
created by combining the EntryWithDate
and PublicationEntryBase
classes to have
the fields in the correct order.
Source code in rendercv/data/models/entry_types.py
EntryBase
¶
Bases: EntryWithDate
This class is the parent class of some of the entry types. It is being used because some of the entry types have common fields like dates, highlights, location, etc.
Source code in rendercv/data/models/entry_types.py
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
|
date_string: str
cached
property
¶
date_string_only_years: str
cached
property
¶
time_span_string: str
cached
property
¶
Return a time span string based on the date
, start_date
, and end_date
fields and cache time_span_string
as an attribute of the instance.
check_and_adjust_dates()
¶
Call the validate_adjust_dates_of_an_entry
function to validate the
dates.
Source code in rendercv/data/models/entry_types.py
NormalEntryBase
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the parent class of the NormalEntry
class.
Source code in rendercv/data/models/entry_types.py
NormalEntry
¶
Bases: EntryBase
, NormalEntryBase
This class is the data model of NormalEntry
. NormalEntry
class is created by
combining the EntryBase
and NormalEntryBase
classes to have the fields in the
correct order.
Source code in rendercv/data/models/entry_types.py
ExperienceEntryBase
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the parent class of the ExperienceEntry
class.
Source code in rendercv/data/models/entry_types.py
ExperienceEntry
¶
Bases: EntryBase
, ExperienceEntryBase
This class is the data model of ExperienceEntry
. ExperienceEntry
class is
created by combining the EntryBase
and ExperienceEntryBase
classes to have the
fields in the correct order.
Source code in rendercv/data/models/entry_types.py
EducationEntryBase
¶
Bases: RenderCVBaseModelWithExtraKeys
This class is the parent class of the EducationEntry
class.
Source code in rendercv/data/models/entry_types.py
EducationEntry
¶
Bases: EntryBase
, EducationEntryBase
This class is the data model of EducationEntry
. EducationEntry
class is
created by combining the EntryBase
and EducationEntryBase
classes to have the
fields in the correct order.
Source code in rendercv/data/models/entry_types.py
validate_date_field(date)
¶
Check if the date
field is provided correctly.
Parameters:
-
date
(Optional[int | str]
) –The date to validate.
Returns:
-
Optional[int | str]
–The validated date.
Source code in rendercv/data/models/entry_types.py
validate_start_and_end_date_fields(date)
¶
Check if the start_date
and end_date
fields are provided correctly.
Parameters:
-
date
(str | date
) –The date to validate.
Returns:
-
str
–The validated date.
Source code in rendercv/data/models/entry_types.py
validate_and_adjust_dates_for_an_entry(start_date, end_date, date)
¶
Check if the dates are provided correctly and make the necessary adjustments.
Parameters:
-
start_date
(StartDate
) –The start date of the event.
-
end_date
(EndDate
) –The end date of the event.
-
date
(ArbitraryDate
) –The date of the event.
Returns:
-
tuple[StartDate, EndDate, ArbitraryDate]
–The validated and adjusted
start_date
,end_date
, anddate
.