Coverage for rendercv/data/__init__.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-12-25 23:06 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-12-25 23:06 +0000
1"""
2The `rendercv.data` package contains the necessary classes and functions for
4- Parsing and validating a YAML input file
5- Computing some properties based on a YAML input file (like converting ISO dates to
6 plain English, URLs of social networks, etc.)
7- Generating a JSON Schema for RenderCV's data format
8- Generating a sample YAML input file
10The validators and data format of RenderCV are written using
11[Pydantic](https://github.com/pydantic/pydantic).
12"""
14from .generator import (
15 create_a_sample_data_model,
16 create_a_sample_yaml_input_file,
17 generate_json_schema,
18 generate_json_schema_file,
19)
20from .models import (
21 BulletEntry,
22 CurriculumVitae,
23 EducationEntry,
24 Entry,
25 ExperienceEntry,
26 LocaleCatalog,
27 NormalEntry,
28 OneLineEntry,
29 PublicationEntry,
30 RenderCommandSettings,
31 RenderCVDataModel,
32 RenderCVSettings,
33 SectionContents,
34 SocialNetwork,
35 available_entry_models,
36 available_entry_type_names,
37 available_social_networks,
38 available_theme_options,
39 available_themes,
40 format_date,
41 rendercv_data_model_fields,
42)
43from .reader import (
44 read_a_yaml_file,
45 read_input_file,
46 validate_input_dictionary_and_return_the_data_model,
47)
49__all__ = [
50 "BulletEntry",
51 "CurriculumVitae",
52 "EducationEntry",
53 "Entry",
54 "ExperienceEntry",
55 "LocaleCatalog",
56 "NormalEntry",
57 "OneLineEntry",
58 "PublicationEntry",
59 "RenderCVDataModel",
60 "RenderCVSettings",
61 "RenderCommandSettings",
62 "SectionContents",
63 "SocialNetwork",
64 "available_entry_models",
65 "available_entry_type_names",
66 "available_social_networks",
67 "available_theme_options",
68 "available_themes",
69 "create_a_sample_data_model",
70 "create_a_sample_yaml_input_file",
71 "format_date",
72 "generate_json_schema",
73 "generate_json_schema_file",
74 "read_a_yaml_file",
75 "read_input_file",
76 "rendercv_data_model_fields",
77 "validate_input_dictionary_and_return_the_data_model",
78]