rendercv.api.functions
¶
The rendercv.api.functions
package contains the basic functions that are used to
interact with the RenderCV.
read_a_python_dictionary_and_return_a_data_model(input_file_as_a_dict)
¶
Validate the input dictionary and return the data model.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
Returns:
-
RenderCVDataModel
–The data model.
Source code in rendercv/api/functions.py
read_a_yaml_string_and_return_a_data_model(yaml_file_as_string)
¶
Validate the YAML input file given as a string and return the data model.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
Returns:
-
RenderCVDataModel
–The data model.
Source code in rendercv/api/functions.py
create_contents_of_a_typst_file_from_a_python_dictionary(input_file_as_a_dict)
¶
Validate the input dictionary, generate a Typst file and return it as a string. If there are any validation errors, return them as a list of dictionaries.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
Returns:
-
str | list[dict]
–The Typst file as a string or a list of dictionaries that contain the error messages, locations, and the input values.
Source code in rendercv/api/functions.py
create_contents_of_a_typst_file_from_a_yaml_string(yaml_file_as_string)
¶
Validate the YAML input file given as a string, generate a Typst file and return it as a string. If there are any validation errors, return them as a list of dictionaries.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
Returns:
-
str | list[dict]
–The Typst file as a string or a list of dictionaries that contain the error messages, locations, and the input values.
Source code in rendercv/api/functions.py
create_contents_of_a_markdown_file_from_a_python_dictionary(input_file_as_a_dict)
¶
Validate the input dictionary, generate a Markdown file and return it as a string. If there are any validation errors, return them as a list of dictionaries.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
Returns:
-
str | list[dict]
–The Markdown file as a string or a list of dictionaries that contain the error messages, locations, and the input values.
Source code in rendercv/api/functions.py
create_contents_of_a_markdown_file_from_a_yaml_string(yaml_file_as_string)
¶
Validate the input file given as a string, generate a Markdown file and return it as a string. If there are any validation errors, return them as a list of dictionaries.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
Returns:
-
str | list[dict]
–The Markdown file as a string or a list of dictionaries that contain the error messages, locations, and the input values.
Source code in rendercv/api/functions.py
create_a_typst_file_from_a_yaml_string(yaml_file_as_string, output_file_path)
¶
Validate the input file given as a string, generate a Typst file and save it to the output file path.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_a_typst_file_from_a_python_dictionary(input_file_as_a_dict, output_file_path)
¶
Validate the input dictionary, generate a Typst file and save it to the output file path.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_a_markdown_file_from_a_python_dictionary(input_file_as_a_dict, output_file_path)
¶
Validate the input dictionary, generate a Markdown file and save it to the output file path.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_a_markdown_file_from_a_yaml_string(yaml_file_as_string, output_file_path)
¶
Validate the input file given as a string, generate a Markdown file and save it to the output file path.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_an_html_file_from_a_python_dictionary(input_file_as_a_dict, output_file_path)
¶
Validate the input dictionary, generate an HTML file and save it to the output file path.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_an_html_file_from_a_yaml_string(yaml_file_as_string, output_file_path)
¶
Validate the input file given as a string, generate an HTML file and save it to the output file path.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_a_pdf_from_a_yaml_string(yaml_file_as_string, output_file_path)
¶
Validate the input file given as a string, generate a PDF file and save it to the output file path.
Parameters:
-
yaml_file_as_string
(str
) –The input file as a string.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.
Source code in rendercv/api/functions.py
create_a_pdf_from_a_python_dictionary(input_file_as_a_dict, output_file_path)
¶
Validate the input dictionary, generate a PDF file and save it to the output file path.
Parameters:
-
input_file_as_a_dict
(dict
) –The input file as a dictionary.
-
output_file_path
(Path
) –The output file path.
Returns:
-
Optional[list[dict]]
–The output file path.