今天给大家介绍下一个在纯 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",
"my@email.com",
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",
"13412344321@qq.com",
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())

告别Word,用Python打造你的专业简历!的更多相关文章

  1. phantomjs + python 打造一个微信机器人

    phantomjs + python 打造一个微信机器人 1.前奏   媳妇公司不能上网,但经常需要在公众号上找一些文章做一些参考,需要的时候就把文章链接分享给我,然后我在浏览器打开网页,一点点复制过 ...

  2. 四川软件人才网:打造四川最专业的IT人才招聘平台

    四川软件人才网(www.tfsp.net),原名:天府软件人才网:为了更好的发展和拓展的业务需要,更名为:四川软件人才网,强力打造四川最专业的IT人才的招聘平台. 网站依托四川软件人才社区,微博,微信 ...

  3. 教你用python打造WiFiddos

    本文来源于i春秋学院,未经允许严禁转载. 0x00 前言因为在百度上很难找到有关于用python打造WiFidos的工具的,而且不希望大家成为一名脚本小子,所以我打算写一篇,需要的工具有scapy,i ...

  4. 【python】10分钟教你用python打造贪吃蛇超详细教程

    10分钟教你用python打造贪吃蛇超详细教程 在家闲着没妹子约, 刚好最近又学了一下python,听说pygame挺好玩的.今天就在家研究一下, 弄了个贪吃蛇出来.希望大家喜欢. 先看程序效果: 0 ...

  5. 10分钟教你用Python打造微信天气预报机器人

    01 前言 最近武汉的天气越来越恶劣了.动不动就下雨,所以,拥有一款好的天气预报工具,对于我们大学生来说,还真是挺重要的了.好了,自己动手,丰衣足食,我们来用Python打造一个天气预报的微信机器人吧 ...

  6. 第11章:使用Python打造MySQL专家系统

    1.Python语言高级特性 1).深入浅出Python生成器 1).生成器函数:与普通函数定义类似,使用yield语句而不是return语句返回结果.yield语句一次返回一个结果,在每个结果中间挂 ...

  7. 利用python爬取58同城简历数据

    利用python爬取58同城简历数据 利用python爬取58同城简历数据 最近接到一个工作,需要获取58同城上面的简历信息(http://gz.58.com/qzyewu/).最开始想到是用pyth ...

  8. 基于微博数据用 Python 打造一颗“心”

    一年一度的虐狗节刚过去不久,朋友圈各种晒,晒自拍,晒娃,晒美食,秀恩爱的.程序员在晒什么,程序员在加班.但是礼物还是少不了的,送什么好?作为程序员,我准备了一份特别的礼物,用以往发的微博数据打造一颗“ ...

  9. 玩转 ”hello word“,Python程序员大多数都没有实现过

    很多人学习Python很长时间,对于'hello word' 的认知,很多已经从事Python多年的程序员的认知也就只有: print(hello wrod) 但是有没有让hello word 变得不 ...

  10. 自己动手python打造渗透工具集

    难易程度:★★★阅读点:python;web安全;文章作者:xiaoye文章来源:i春秋关键字:网络渗透技术 前言python是门简单易学的语言,强大的第三方库让我们在编程中事半功倍,今天我们就来谈谈 ...

随机推荐

  1. 试题B:小球反弹(第十五届蓝桥杯省赛B组c/c++组)

    试题B:小球反弹 我在刷博客的时候看见有人分享了蓝桥杯的题目,我想起了我之前大学打蓝桥杯刷题的时光,还是很怀念当时打比赛的氛围,关于这个小球反弹的题目,我感觉很有意思,我一开始也是走了好多弯路,然后去 ...

  2. HarmonyOS NEXT应用开发之图片缩放效果实现

    介绍 图片预览在应用开发中是一种常见场景,在诸如QQ.微信.微博等应用中均被广泛使用.本模块基于Image组件实现了简单的图片预览功能. 使用说明: 双指捏合缩放图片大小 双击图片进行图片的大小切换 ...

  3. OpenYurt 深度解读|开启边缘设备的云原生管理能力

    ​简介: 北京时间 9 月 27 号,OpenYurt 发布 v0.5.0 版本.新发布版本中首次提出 kubernetes-native非侵入.可扩展的边缘设备管理标准,使 Kubernetes 业 ...

  4. 阿里云飞天论文获国际架构顶会 ATC 2021最佳论文:全球仅三篇

    简介: 近日,计算机系统结构国际顶级学术会议 USENIX ATC在线上举行.ATC 始办于1992年,是由USENIX组织的计算机系统领域的顶级会议,至今已成功举办31届,计算机系统领域中Oak语言 ...

  5. Dapr 在阿里云原生的实践

    简介: Faas 场景下,比较吸引用户的是成本和研发效率,成本主要通过按需分配和极致的弹性效率来达成.而应用开发者期望通过 FaaS 提供多语言的编程环境,提升研发效率,包括启动时间.发布时间.开发的 ...

  6. [PHP] Laravel-admin 模型表格-列的显示-链接: 关联关系的跳转链接

    link 将字段显示为一个链接. // link方法不传参数时,链接的`href`和`text`都是当前列的值 $grid->column('homepage')->link(); // ...

  7. WPF 警惕使用 Dispatcher.InvokeShutdown 方法退出应用 将不触发 Application.Exit 事件

    这是一个比较让人困惑的一个点,我一直都以为 Dispatcher.InvokeShutdown 和 Application.Current.Shutdown 是完全等价的.但是后面发现了其实这两者还是 ...

  8. dotnet C# 多次对一个对象调用构造函数会发生什么

    今天来玩一点变态的,使用反射获取到某个类型的构造函数,接着多次对此类型的某个对象调用构造函数方法.请问此时会发生什么 假定有一个类型 Foo 的定义如下 class Foo : IDisposable ...

  9. dotnet 对指针转换为结构体多个不同方法的性能分析

    在 dotnet 里面,拿到一个指针,可以有多个不同的方法转换为结构体,本文将来告诉大家这几个方法的性能的差别 特别感谢性能优化狂魔 Stephen Toub 大佬的指导 在 WPF 框架开发中,有小 ...

  10. 2019-11-29-如何入门-C++-AMP-教程

    title author date CreateTime categories 如何入门 C++ AMP 教程 lindexi 2019-11-29 08:20:37 +0800 2018-2-13 ...