Coverage for rendercv/data/models/__init__.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-26 00:25 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-26 00:25 +0000
1"""
2The `rendercv.data.models` package contains all the Pydantic data models, validators,
3and computed fields that are used in RenderCV. The package is divided into several
4modules, each containing a different group of data models.
6- `base.py`: Contains `RenderCVBaseModel`, which is the parent class of all the data
7 models in RenderCV.
8- `computers.py`: Contains all the functions that are used to compute some values of
9 the fields in the data models. For example, converting ISO dates to human-readable
10 dates.
11- `entry_types.py`: Contains all the data models that are used to represent the entries
12 in the CV.
13- `curriculum_vitae.py`: Contains the `CurriculumVitae` data model, which is the main
14 data model that contains all the content of the CV.
15- `design.py`: Contains the data model that is used to represent the design options of
16 the CV.
17- `locale.py`: Contains the data model that is used to represent the locale
18 catalog of the CV.
19- `rendercv_settings.py`: Contains the data model that is used to represent the settings
20 of the RenderCV.
21- `rendercv_data_model.py`: Contains the `RenderCVDataModel` data model, which is the
22 main data model that defines the whole input file structure.
23"""
25import warnings
27from .computers import format_date, get_date_input, make_a_url_clean
28from .curriculum_vitae import (
29 CurriculumVitae,
30 SectionContents,
31 Sections,
32 SocialNetwork,
33 available_social_networks,
34)
35from .design import (
36 available_theme_options,
37 available_themes,
38)
39from .entry_types import (
40 BulletEntry,
41 EducationEntry,
42 Entry,
43 ExperienceEntry,
44 NormalEntry,
45 OneLineEntry,
46 PublicationEntry,
47 available_entry_models,
48 available_entry_type_names,
49 make_keywords_bold_in_a_string,
50)
51from .locale import Locale
52from .rendercv_data_model import RenderCVDataModel, rendercv_data_model_fields
53from .rendercv_settings import RenderCommandSettings, RenderCVSettings
55warnings.filterwarnings("ignore")
57__all__ = [
58 "BulletEntry",
59 "CurriculumVitae",
60 "EducationEntry",
61 "Entry",
62 "ExperienceEntry",
63 "Locale",
64 "NormalEntry",
65 "OneLineEntry",
66 "PublicationEntry",
67 "RenderCVDataModel",
68 "RenderCVSettings",
69 "RenderCommandSettings",
70 "SectionContents",
71 "Sections",
72 "SocialNetwork",
73 "available_entry_models",
74 "available_entry_type_names",
75 "available_social_networks",
76 "available_theme_options",
77 "available_themes",
78 "format_date",
79 "get_date_input",
80 "make_a_url_clean",
81 "make_keywords_bold_in_a_string",
82 "rendercv_data_model_fields",
83]