From b9d8b9e21209fc4773eea63d483bdafe71f36e52 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 19 May 2024 17:15:54 +0300 Subject: [PATCH] data_models: update sample data model --- rendercv/data_models.py | 241 ++++++++++++++++++++++++++-------------- 1 file changed, 156 insertions(+), 85 deletions(-) diff --git a/rendercv/data_models.py b/rendercv/data_models.py index 4c736b0..ca69354 100644 --- a/rendercv/data_models.py +++ b/rendercv/data_models.py @@ -1359,35 +1359,41 @@ def get_a_sample_data_model( ) name = name.encode().decode("unicode-escape") + sections = { - "this_is_a_section_title": [ - BulletEntry( - bullet=( - "[RenderCV](https://github.com/sinaatalay/rendercv) is a LaTeX" - " CV/resume framework. It allows you to create a high-quality CV as" - " a PDF from a YAML file with **full Markdown syntax support** and" - " **complete control over the LaTeX code**." - ) + "welcome_to_rendercv!": [ + ( + "[RenderCV](https://github.com/sinaatalay/rendercv) is a LaTeX" + " CV/resume framework. It allows you to create a high-quality CV as" + " a PDF from a YAML file with **full Markdown syntax support** and" + " **complete control over the LaTeX code**." ), + ( + "A substantial" + " part of the content is taken from" + " [here](https://www.careercup.com/resume), where a *clean and tidy CV*" + " pattern is proposed by **Gayle L. McDowell**." + ), + ], + "quick_guide": [ BulletEntry( bullet=( "Each section title is arbitrary, and each section contains a list" " of entries." - ) + ), ), BulletEntry( bullet=( "There are seven different entry types:" " [BulletEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#bullet-entry)" - " (this" - " section contains bullet entries)," + " (this section contains bullet entries)," " [TextEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#text-entry)," " [EducationEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#education-entry)," " [ExperienceEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#experience-entry)," " [NormalEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#normal-entry)," " [PublicationEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#publication-entry)," " and [OneLineEntry](https://docs.rendercv.com/user_guide/structure_of_the_yaml_input_file/\\#one-line-entry)." - ) + ), ), BulletEntry( bullet=( @@ -1395,100 +1401,110 @@ def get_a_sample_data_model( " section!" ) ), - BulletEntry( - bullet=( - "You can include some math as well:" - " $\\mathcal{O}(n^2)\\vec{\\omega}$" - ) - ), BulletEntry( bullet=( "[Here](https://docs.rendercv.com/user_guide/), you can find a" - " comprehensive user guide that covers the data model (YAML" - " structure) and command-line interface (CLI) in greater detail." + " comprehensive user guide." ) ), ], - "your_education_section": [ + "education": [ EducationEntry( - institution="University of Example", - area="Mechanical Engineering", - degree="PhD", - start_date="2017-09", - end_date="2021-06", - highlights=[ - '**Thesis:** "This is an EducationEntry"', - ], - ), - EducationEntry( - institution="University of Example", - area="Mechanical Engineering", + institution="University of Pennsylvania", + area="Computer Science", degree="BS", - start_date="2012-01", - end_date="2017-06", + start_date="2000-09", + end_date="2005-05", highlights=[ + "GPA: 3.9/4.0 ([Transcript](https://example.com))", ( - "**GPA:** 3.9/4.0 ([Transcript](https://example.com), this is a" - " Markdown link)" - ), - ( - "**Relevant Courses:** Advanced LaTeX, Python for Document" - " Automation" + "**Coursework:** Software Foundations, Computer" + " Architecture, Algorithms, Artificial Intelligence, Comparison" + " of Learning Algorithms, Computational Theory." ), ], ), ], "experience": [ ExperienceEntry( - company="RenderCV", - position="Lead Developer", - start_date="2020-05", - end_date="present", - location="Remote", + company="Apple Computer", + position="Software Engineer, Intern", + start_date="2004-06", + end_date="2004-08", + location="CA, USA", highlights=[ - "This is an *ExperienceEntry*.", ( - "Implemented Markdown support to enhance text formatting" - " capabilities in CVs." + "Reduced time to render the user's buddy list by 75% by" + " implementing a prediction algorithm." + ), + ( + "Implemented iChat integration with OS X Spotlight Search by" + " creating a tool that extracts metadata from saved chat" + " transcripts and provides metadata to a system-wide search" + " database." + ), + ( + "Redesigned chat file format and implemented backward" + " compatibility for search." ), - "Led a team of five in the design of new CV templates.", ], ), ExperienceEntry( - company="GitHub", - position="Developer", - date="A Custom *Date*", - location="San Francisco, CA, USA", + company="Microsoft Corporation", + position="Lead Student Ambassador", + start_date="2003-09", + end_date="2005-04", + location="WA, USA", highlights=[ - "This is another *ExperienceEntry*.", - "Used technologies: Python, JavaScript", + ( + "Promoted to Lead Student Ambassador in the Fall of 2004," + " supervised 10 - 15 Student Ambassadors." + ), + ( + "Created and taught a computer science course, CSE 099:" + " Software Design and Development." + ), ], ), - ], - "personal_projects": [ - NormalEntry( - name="Project Name", - location="[Github Repository](https://github.com)", + ExperienceEntry( + company="University of Pennsylvania", + position="Head Teaching Assistant", + start_date="2001-10", + end_date="2005-05", + location="PA, USA", highlights=[ - "This is a *NormalEntry*.", - "You don't have to provide all the fields in an entry!", + ( + "Implemented a user interface for the VS open file switcher" + " (ctrl-tab) and extended it to tool windows." + ), + ( + "Created a service to provide gradient across VS and VS" + " add-ins. Optimized service via caching." + ), + "Programmer Productivity Research Center (Summers 2001, 2002)", + ( + "Built app to compute the similarity of all methods in a code" + " base, reduced time from $\\mathcal{O}(n^2)$ to" + " $\\mathcal{O}(n \\log n)$. " + ), + ( + "Created a test case generation tool that creates random XML" + " docs from XML Schema." + ), ], ), - NormalEntry( - name="Another Project Name", - location="Istanbul", - date="Fall 2024", - highlights=["This is another *NormalEntry* with a custom date."], - ), - ], - "additional_skills_and_awards": [ - OneLineEntry( - label="This is", - details="a *OneLineEntry*", - ), - OneLineEntry( - label="Languages", - details="English, Turkish", + ExperienceEntry( + company="Microsoft Corporation", + position="Software Design Engineer, Intern", + start_date="2003-06", + end_date="2003-08", + location="WA, USA", + highlights=[ + ( + "Promoted to Lead Student Ambassador in the Fall of 2004," + " supervised 10 - 15 Student Ambassadors." + ), + ], ), ], "publications": [ @@ -1508,16 +1524,71 @@ def get_a_sample_data_model( doi="10.1109/TASC.2023.3340648", ) ], - "anything_else": [ - "This is a *TextEntry*. You can write anything here!", - ( - "The source code of RenderCV is well-commented and documented. Reading" - " the source code might be fun as the software structure is explained" - " with docstrings and comments." + "projects": [ + NormalEntry( + name="Multi-User Drawing Tool", + date="2004", + highlights=[ + ( + "Developed an electronic classroom where multiple users can" + ' view and simultaneously draw on a "chalkboard" with each' + " person's edits synchronized." + ), + "Used C++ and MFC.", + ], + ), + NormalEntry( + name="Synchronized Calendar", + start_date="2003", + end_date="2004", + highlights=[ + ( + "Developed a desktop calendar with globally shared and" + " synchronized calendars, allowing users to schedule meetings" + " with other users." + ), + "Used C#.NET, SQL, and XML.", + ], + ), + NormalEntry( + name="Operating System", + date="2002", + highlights=[ + ( + "Developed a UNIX-style OS with a scheduler, file system, text" + " editor, and calculator." + ), + "Used C.", + ], + ), + ], + "additional_experience_and_awards": [ + OneLineEntry( + label="Instructor (2003 - 2005)", + details="Taught two full-credit Computer Science courses.", + ), + OneLineEntry( + label="Third Prize, Senior Design Projects", + details=( + "Awarded 3rd prize for a synchronized calendar project out of 100" + " projects." + ), + ), + ], + "technologies": [ + OneLineEntry( + label="Languages", + details="C++, C, Java, Objective-C, C#.NET, SQL, JavaScript", + ), + OneLineEntry( + label="Software", + details=( + "Visual Studio, Microsoft SQL Server, Eclipse, XCode, Interface" + " Builder" + ), ), ], } - cv = CurriculumVitae( name=name, location="Your Location",