rendercv/run_rendercv.py

19 lines
455 B
Python
Raw Normal View History

2023-10-09 17:57:23 +00:00
import rendercv.__main__ as rendercv
2023-09-09 15:25:28 +00:00
2023-10-18 19:08:52 +00:00
# input_file_path = "personal.yaml"
# rendercv.main(input_file_path)
2023-09-10 19:54:36 +00:00
2023-10-18 18:00:41 +00:00
# This script is equivalent to running the following command in the terminal:
# python -m rendercv personal.yaml
# or
2023-10-18 19:08:52 +00:00
# rendercv personal.yaml
from rendercv.data_model import RenderCVDataModel
jsoan = RenderCVDataModel.model_json_schema()
import json
# write json to file
with open("json_schema.json", "w") as f:
f.write(json.dumps(jsoan))