首页 > 编程语言 >告别Word,用Python打造你的专业简历!

告别Word,用Python打造你的专业简历!

时间:2024-06-08 10:33:09浏览次数:18  
标签:dates 简历 title Python LinkText https SectionEntry Word com

今天给大家介绍下一个在纯 python 中构建简历的实用工具,工具的连接地址https://github.com/koek67/resume-builder/blob/main/readme.md

用法介绍

要求

Python 3.7 或更高版本(仅此而已!)

安装

整个库是一个单独的 python 文件 resume_builder.py。下载此文件

用法

要生成简历,只需要执行:python resume.py--out resume.html如果想要转换为 PDF,请在 web 浏览器中打开上一步输出的 html 文件,打印为 PDF。生成的简历已针对 PDF 进行了优化。在浏览器中,您可以放大/缩小 PDF,使其更好地适应页面。

简历定义

简历是在resume.py这个 Python 文件中定义的。这些文件提供了如何配置简历的最佳示例。有关更多详细信息,请参阅resume_builder.pyreference.md

简历结构

  • 简历包括:
    • 联系人信息
    • 一些章节列表(如工作经历、教育经历)
  • 联系人信息包括:
    • name(你的名字)
    • 详细信息(一些字符串列表,比如电子邮件、地址等)
  • 每个章节包括:
    • 标题(如教育经历)
    • 一些章节内容的列表(如教育经历的详细)
  • 章节内容包括:
    • 标题(粗体大文本)
    • 标题(括号中的文字)
    • 日期:字符串类型描述日期
    • 详细描述:

原始示例

简历定义

# Koushik Krishnan's Resume

from resume_builder import Resume, Section, SectionEntry, ContactInfo, ConcatText, ItalicsText, UnderlinedText, LinkText, BulletedList

resume = Resume(
    contact_info=ContactInfo(
        name="Koushik Krishnan",
        details=[
            "(111) 111-1111",
            "[email protected]",
            LinkText("koushik.bearblog.dev", "https://koushik.bearblog.dev"),
            LinkText(
                "linkedin.com/in/koushikkrishnan",
                "https://www.linkedin.com/in/koushikkrishnan/",
            ),
            LinkText("github.com/koek67", "https://www.github.com/koek67"),
        ],
        tag_line="Making software as reliable as the sunrise.",
    ),
    sections = [
        Section(
            title="Experience",
            entries=[
                SectionEntry(
                    title=LinkText("Microsoft", "https://www.microsoft.com"),
                    caption="Senior Software Engineer",
                    location="Remote",
                    dates="February 2023 - present",
                    description=BulletedList(
                        [
                            "Building reliability improvements into the storage and replication layers of Cosmos DB.",
                            "Technical lead for a team of engineers, ramping them up on distributed systems and database concepts as well as preparing them for incident response.",
                        ]
                    ),
                ),
                SectionEntry(
                    title=LinkText("Yugabyte", "https://www.yugabyte.com"),
                    caption="Senior Site Reliability Engineer",
                    location="Seattle, Washington",
                    dates="May 2022 - February 2023",
                    description=BulletedList(
                        [
                            "Managed reliable operation of Kubernetes and Yugabyte database clusters across AWS and GCP for the Yugabyte Managed product."
                        ]
                    ),
                ),
                SectionEntry(
                    title=LinkText("Microsoft", "https://www.microsoft.com"),
                    caption="Software Engineer 2, Azure Cosmos DB",
                    location="Redmond, Washington",
                    dates="August 2018 - April 2022",
                    description=BulletedList(
                        [
                            "Worked as a technical lead for a petabyte-scale, globally distributed database. Reduced number of production incidents by 80%.",
                            'Founded a team that built a Python microservice that would perform real-time root cause analysis/mitigation of incidents and eliminate the need for an on-call engineer. Open sourced this work on Github as <a class="open-link" target="_blank" href="http://github.com/microsoft/jupyrest">Jupyrest</a>',
                        ]
                    ),
                ),
                SectionEntry(
                    title=LinkText("Microsoft", "https://www.microsoft.com"),
                    caption="Software Engineering Intern, Azure Cosmos DB",
                    location="Seattle, Washington",
                    dates="May 2017 - August 2017",
                ),
                SectionEntry(
                    title=LinkText("Fitbit", "https://fitbit.com"),
                    caption="Software Engineering Intern",
                    location="Boston, Massachusetts",
                    dates="May 2016 - August 2016",
                ),
                SectionEntry(
                    title=LinkText("Kayak.com", "https://www.kayak.com"),
                    caption="Software Engineering Intern",
                    location="Concord, Massachusetts",
                    dates="May 2015 - August 2015",
                )
            ],
        ),
        Section(
            title="Presentations",
            entries=[
                SectionEntry(
                    title=LinkText(
                        text="PyCon 2024",
                        url="https://us.pycon.org/2024/schedule/presentation/95/",
                        show_icon=True,
                    ),
                    caption="Rest East with Jupyrest: Deploy notebooks as web services",
                    location="Pittsburgh, PA",
                    dates="May 2024",
                ),
                SectionEntry(
                    title=LinkText(
                        text="PyTexas",
                        url="https://www.pytexas.org/2024/schedule/talks/#rest-easy-with-jupyrest-deploy-notebooks-as-web-services",
                        show_icon=True,
                    ),
                    caption="Rest East with Jupyrest",
                    location="Austin, TX",
                    dates="April 2024",
                ),
                SectionEntry(
                    title=LinkText(
                        text="PyCascades",
                        url="https://2024.pycascades.com/program/talks/jupyrest/",
                        show_icon=True,
                    ),
                    caption="Rest East with Jupyrest: Deploy notebooks as web services",
                    location="Seattle, WA",
                    dates="April 2024",
                ),
                SectionEntry(
                    title=LinkText(
                        text="PyOhio 2023",
                        url="https://www.pyohio.org/2023/speakers/koushik-krishnan/",
                        show_icon=True,
                    ),
                    caption=LinkText('Serverless Jupyter Notebook Functions (YouTube)', url="https://youtu.be/hoGJ0c3jIeo?si=srbRtjSxOxETFWN5", show_icon=True),
                    location="Virtual",
                    dates="December 2023",
                ),
                SectionEntry(
                    title=LinkText(
                        text="PyData Seattle 2023",
                        url="https://seattle2023.pydata.org/cfp/talk/K8KV8M/",
                        show_icon=True,
                    ),
                    caption=LinkText('Notebooks as Serverless Functions (YouTube)', url="https://youtu.be/hoGJ0c3jIeo?si=srbRtjSxOxETFWN5", show_icon=True),
                    location="Seattle, WA",
                    dates="April 2023",
                ),
            ],
        ),
        Section(
            title="Volunteering",
            entries=[
                SectionEntry(
                    title=LinkText(
                        "ASHA Chennai", url="https://chennai.ashanet.org/", show_icon=True
                    ),
                    caption="Spoken English Teacher",
                    location="Remote",
                    dates="December 2020 - March 2022",
                    description=BulletedList(
                        [
                            "Created a curriculum with story-telling, skits, and friendly debates to provide disadvantaged children isolated in quarantine a fun way to learn spoken English.",
                        ]
                    ),
                )
            ],
        ),
        Section(
            title="Education",
            entries=[
                SectionEntry(
                    title="Georgia Institute of Technology",
                    location="Atlanta, Georgia",
                    dates="August 2014 - May 2018",
                    description=ItalicsText(
                        "Bachelors of Science in Computer Science and Mathematics"
                    ),
                )
            ],
        ),
        Section(
            title="Skills",
            entries=[
                SectionEntry(
                    description=BulletedList(
                        [
                            ConcatText(
                                UnderlinedText("Languages:"),
                                " Python, Golang, C/C++, JavaScript, C#, Powershell, Zig",
                            ),
                            ConcatText(
                                UnderlinedText("Tools:"),
                                " Kubernetes, PostgreSQL, Linux, Windows, Azure Service Fabric, Distributed Databases, Storage Engines, Docker",
                            ),
                        ]
                    )
                ),
            ],
        ),
    ]
)

if __name__ == "__main__":
    resume.cli_main()

结果预览

 

中文简历定义

针对国人的情况,给出了一个中文模板

简历定义

# 十月狐狸的简历

from resume_builder import Resume, Section, SectionEntry, ContactInfo, ConcatText, ItalicsText, UnderlinedText, LinkText, BulletedList

resume = Resume(
    contact_info=ContactInfo(
        name="十月狐狸",
        details=[
            "134 1234 4321",
            "[email protected]",
            LinkText("博客园", "https://www.cnblogs.com/sesshoumaru/"),
            LinkText("github", "https://github.com/Sesshoumaru"),
        ],
        tag_line="总要有所坚持...",
    ),
    sections = [
        Section(
            title="工作经历",
            entries=[
                SectionEntry(
                    title=LinkText("微软中国", "https://www.microsoft.com"),
                    caption="高级开发工程师",
                    location="上海",
                    dates="2023年1月 - 至今",
                    description=BulletedList(
                        [
                            "负责xx系统的数据库的增删改代码的实现",
                            "作为一个工程师团队的技术负责人,带领团队做了很多不怎么牛逼的事情",
                        ]
                    ),
                ),
                SectionEntry(
                    title=LinkText("腾讯", "https://www.qq.com"),
                    caption="高级开发工程师",
                    location="深圳",
                    dates="2022年5月 - 2023年1月",
                    description=BulletedList(
                        [
                            "负责xx系统的后台实现,解决了上百规模下的并发场景优化"
                        ]
                    ),
                ),
                SectionEntry(
                    title=LinkText("淘宝", "https://www.taobao.com"),
                    caption="中级开发工程师",
                    location="广州",
                    dates="2020年8月 - 2022年5月",
                    description=BulletedList(
                        [
                            "负责手淘千人千面后台推荐算法的实现",
                        ]
                    ),
                ),
                SectionEntry(
                    title=LinkText("小米", "https://www.xiaomi.com"),
                    caption="初级开发工程师",
                    location="北京",
                    dates="2018年7月 - 2020年7月",
                    description=BulletedList(
                        [
                            "负责小米商城商品展示系统的开发和设计",
                        ]
                    )
                )
            ],
        ),
        Section(
            title="获得荣誉",
            entries=[
                SectionEntry(
                    title=LinkText(
                        "计算机二级证书", url="https://chennai.ashanet.org/", show_icon=True
                    ),
                    caption="计算机二级证书",
                    location="北京",
                    dates="2015年11月",
                    description=BulletedList(
                        [
                            " 全国计算机等级考试(National Computer Rank Examination,简称NCRE),是经原国家教育委员会(现教育部)批准,由教育部教育考试院(原教育部考试中心)主办,面向社会,用于考查应试人员计算机应用知识与技能的全国性计算机水平考试体系",
                        ]
                    ),
                )
            ],
        ),
        Section(
            title="教育经历",
            entries=[
                SectionEntry(
                    title="清花大学",
                    location="北京",
                    dates="2014年9月 - 2018年6月",
                    description=ItalicsText(
                        "电子信息工程"
                    ),
                )
            ],
        ),
        Section(
            title="掌握技能",
            entries=[
                SectionEntry(
                    description=BulletedList(
                        [
                            ConcatText(
                                UnderlinedText("语言:"),
                                " Python, Golang, C/C++, JavaScript, C#, Powershell, Zig",
                            ),
                            ConcatText(
                                UnderlinedText("工具:"),
                                " Kubernetes, PostgreSQL, Linux, Windows, Azure Service Fabric, Distributed Databases, Storage Engines, Docker",
                            ),
                        ]
                    )
                ),
            ],
        ),
    ]
)

if __name__ == "__main__":
    resume.cli_main()

结果预览

中文乱码解决

原版生成的html文件,中文出现乱码,只需要修改resume_builder.py文件中的save方法,增加encoding = "utf-8"即可实现中文支持:

    def save(self, filename: str) -> None:
        with open(filename, "w",encoding = "utf-8") as f:
            f.write(self.render())

标签:dates,简历,title,Python,LinkText,https,SectionEntry,Word,com
From: https://www.cnblogs.com/sesshoumaru/p/18238377/python-resume

相关文章

  • python 学习 第一册 第2章 变量和简单数据类型
    ----用教授的方法学习目录2.1变量2.1.1变量的命名与使用2.2字符串2.2.1使用方法修改字符串的大小写2.2.2在字符串中使用变量2.2.3使用制表符或换行符来添加空白2.2.4删除空白2.2.5使用字符串时避免语法错误2.3数2.3.1整数2.3.2浮点数2.3.3整数和浮点......
  • 蓝桥等考Python组别十六级07(区间合并)
    蓝桥等考Python组别十六级007第一部分:选择题1、PythonL16(15分)a和b是两个集合,a|b表示a和b的(  )。交集并集子集差集正确答案:B2、PythonL16(15分)运行下面程序,输出的结果是(  )。s=set([5,1,5,5,1,2])print(len(s))3456正确答案:A3、PythonL16(20......
  • 【Python】易错点1
    1.使用insert为列表插入元素时,会改变插入元素之后元素的索引insert语法list.insert(index,obj)示例 aList=[123,'xyz','zara','abc']aList.insert(3,2009)print("FinalList:",aList)结果 FinalList:[123,'xyz','......
  • 【Python】易错点2——异常处理
    1.异常处理 ——try 异常程序在运行的时候,如果python解释器遇到一个错误,会停止程序的执行,并且提示一些错误的信息,这就是异常。我们在程序开发的时候,很难将所有的特殊情况都处理,通过异常捕获可以针对突发事件做集中处理,从而保证程序的健壮性和稳定性。在程序开发中,如果对......
  • python学习笔记(pyautogui)1
       PyCharm安装库失败的大部分原因是pip与setuptools版本老了.感谢前辈发文,解决半年困惑.学习python主要搞自动化脚本,提高工作效率。  PyAutoGui是一个跨平台GUI自动化库,PyAutoGUI是一个Python模块,用于以编程方式控制鼠标和键盘。   PyAutoGUI可以模拟鼠......
  • 《Python程序设计(第二版)》第一二章冷门点上
    python小白考前复习1.编码(密码本)2.数字类型2.1整数你可以单独使用数字0,但不要前置它幂的优先级高于乘除2.2浮点数科学计数法divmod函数:同时计算商和余数慎用round(x,n)函数abs函数求模关于复数3.字符串类型R方法原始字符串的特点:示例普通字符串与原始字符串的对比原始......
  • JSON及Python操作JSON相关
    JSON及Python操作JSON相关Json简介及Python操作Json相关示例。1.JSON概念及支持的数据类型1.1什么是JSON?JSON(JavaScriptObjectNotation)是一种轻量级的数据交换格式,易于人阅读和编写,同时也易于机器解析和生成。尽管JSON源于JavaScript,它与编程语言无关,目前被广泛应用于......
  • 【Python-因特网客户端编程-12】Python 提供了对 POP 和 IMAP 协议的支持
    Python提供了对POP和IMAP协议的支持一、使用Python代码与POP3和IMAP4邮件服务器进行通信使用`poplib`进行POP3操作示例:使用`poplib`获取邮件使用`imaplib`进行IMAP操作示例:使用`imaplib`获取邮件比较`poplib`和`imaplib`总结二、smtplib......
  • Python JSON教学
    JSON及Python操作JSON相关Json简介及Python操作Json相关示例。1.JSON概念及支持的数据类型1.1什么是JSON?JSON(JavaScriptObjectNotation)是一种轻量级的数据交换格式,易于人阅读和编写,同时也易于机器解析和生成。尽管JSON源于JavaScript,它与编程语言无关,目前被广泛应用于......
  • 简单几步,用Python实现VPN搭建
    保护个人隐私和数据安全变得尤为重要。VPN(虚拟私人网络)是一种有效的解决方案,可以帮助我们在网络上匿名浏览,保护数据传输的安全性。虽然市面上有许多商业VPN服务,但你也可以通过Python自己搭建一个简单的VPN。本文将介绍如何用Python建立自己的VPN。基本原理VPN的工作原理是......