Coverage for rendercv/data/models/__init__.py: 100%
8 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-10-07 17:51 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-10-07 17:51 +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_catalog.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"""
25from .computers import format_date
26from .curriculum_vitae import (
27 CurriculumVitae,
28 SectionContents,
29 SocialNetwork,
30 available_social_networks,
31)
32from .design import available_theme_options, available_themes
33from .entry_types import (
34 BulletEntry,
35 EducationEntry,
36 Entry,
37 ExperienceEntry,
38 NormalEntry,
39 OneLineEntry,
40 PublicationEntry,
41 available_entry_models,
42 available_entry_type_names,
43)
44from .locale_catalog import LocaleCatalog
45from .rendercv_data_model import RenderCVDataModel
46from .rendercv_settings import RenderCommandSettings, RenderCVSettings
48__all__ = [
49 "OneLineEntry",
50 "BulletEntry",
51 "EducationEntry",
52 "ExperienceEntry",
53 "PublicationEntry",
54 "NormalEntry",
55 "SocialNetwork",
56 "CurriculumVitae",
57 "LocaleCatalog",
58 "RenderCVDataModel",
59 "available_theme_options",
60 "format_date",
61 "Entry",
62 "available_social_networks",
63 "SectionContents",
64 "available_themes",
65 "available_entry_type_names",
66 "RenderCVSettings",
67 "RenderCommandSettings",
68 "available_entry_models",
69]