Coverage for rendercv/data/__init__.py: 100%
4 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` 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)
42from .reader import (
43 read_a_yaml_file,
44 read_input_file,
45 validate_input_dictionary_and_return_the_data_model,
46)
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 "available_themes",
61 "create_a_sample_data_model",
62 "create_a_sample_yaml_input_file",
63 "generate_json_schema_file",
64 "generate_json_schema",
65 "read_input_file",
66 "format_date",
67 "Entry",
68 "available_social_networks",
69 "SectionContents",
70 "available_entry_type_names",
71 "available_entry_models",
72 "read_a_yaml_file",
73 "validate_input_dictionary_and_return_the_data_model",
74 "RenderCVSettings",
75 "RenderCommandSettings",
76]