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

word,python · 浏览次数 : 3

小编点评

简历构建器是一个基于Python的实用工具,用于生成个性化简历。它具有以下特点: 1. 纯Python实现,适用于Python 3.7或更高版本。 2. 使用简洁的命令行接口,通过执行python resume.py --out resume.html生成HTML简历。 3. 支持将生成的HTML简历转换为PDF格式。 4. 提供丰富的简历模板和配置选项,可自定义简历的字体、颜色、样式等。 5. 集成了多种章节,如联系方式、工作经验、教育背景、技能等。 6. 支持将简历嵌入到网页或博客中,并提供链接指向个人官网或其他社交媒体页面。 7. 高度可定制化,可根据用户需求扩展功能模块。 8. 适用于不同行业的简历模板,满足各种场合的简历制作需求。 总结来说,这是一个强大的Python简历生成器,可以帮助用户轻松创建专业且个性化的简历,无论是用于求职还是个人展示。

正文

今天给大家介绍下一个在纯 python 中构建简历的实用工具,工具的连接地址github.com/koek67/resum

用法介绍

要求

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打造你的专业简历!相似的内容:

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

今天给大家介绍下一个在纯 python 中构建简历的实用工具,工具的连接地址https://github.com/koek67/resume-builder/blob/main/readme.md 用法介绍 要求 Python 3.7 或更高版本(仅此而已!) 安装 整个库是一个单独的 python

爽。。。一键导出 MySQL 表结构,告别手动梳理表结构文档了。。。

背景 系统需要交付,客户要求提供交维材料,包括系统的表结构,安排开发人员进行梳理,效率比较慢,遂自己花点时间捣鼓一下,发现有此插件,记录一下方便与同事分享 前提条件 必须有 go语言环境,有的话直接看第二点 一、安装 go语言环境 1、检查本机是否安装 go go version 2、如果没有,安装

数据智能加持下,中小微企业告别“融资难”

摘要:数据智能是一个跨学科的研究领域,它结合大规模数据处理、数据挖掘、机器学习、可视化等技术,为基于数据制定决策或执行任务提供有效智能支持。面对数据智能蓝海,开发者该如何发力呢?赛道参与者该如何走向成功呢? 本文分享自华为云社区《让数据应用更智能!华为云助力开发者重庆誉存打造数字金融综合解决方案》,

面试官:告诉我为什么static和transient关键字修饰的变量不能被序列化?

一、写在开头 在上一篇学习序列化的文章中我们提出了这样的一个问题: “如果在我的对象中,有些变量并不想被序列化应该怎么办呢?” 当时给的回答是:不想被序列化的变量我们可以使用transient或static关键字修饰;transient 关键字的作用是阻止实例中那些用此关键字修饰的的变量序列化;当对

[转帖]让 CPU 告诉你硬盘和网络到底有多慢

https://cizixs.com/2017/01/03/how-slow-is-disk-and-network/ 简介 经常听到有人说磁盘很慢、网络很卡,这都是站在人类的感知维度去表述的,比如拷贝一个文件到硬盘需要几分钟到几十分钟,够我去吃个饭啦;而从网络下载一部电影,有时候需要几个小时,我都

一种新的告警收敛方式“先知预警”,为您的系统健康护航

通过这个预警系统,我们能够提前发现并主动处理对账事后异常,其技术难度并不高, 更多的讲究的是一个方法。对此方法起了一个名字叫"先知预警",也希望此理论能对您的系统有所帮助。

半夜被慢查询告警吵醒,limit深度分页的坑

分享是最有效的学习方式。 博客:https://blog.ktdaddy.com/ 故事 梅雨季,闷热的夜,令人窒息,窗外一道道闪电划破漆黑的夜幕,小猫塞着耳机听着恐怖小说,辗转反侧,终于睡意来了,然而挨千刀的手机早不振晚不振,偏偏这个时候振动了一下,一个激灵,没有按捺住对内容的好奇,点开了短信,卧

AlertManager解析:构建高效告警系统

本文深入探讨了AlertManager的技术细节和实际应用,从基本概念、核心组件、工作流程,到与Prometheus的集成和实战案例,旨在为专业人士提供一个全面的AlertManager技术和应用指南。 关注作者,分享互联网架构、云服务技术的全维度知识。作者拥有10+年互联网服务架构、AI产品研发经

WPF 稳定的全屏化窗口方法

本文来告诉大家在 WPF 中,设置窗口全屏化的一个稳定的设置方法。在设置窗口全屏的时候,经常遇到的问题就是应用程序虽然设置最大化加无边框,但是此方式经常会有任务栏冒出来,或者说窗口没有贴屏幕的边。本文的方法是基于 Win32 的,由 lsj 提供的方法,当前已在 1000 多万台设备上稳定运行超过三...

[转帖]细说Redis监控和告警

文章系转载,便于整理和归类,原文地址:https://blog.csdn.net/sD7O95O/article/details/78096956 对于任何应用服务和组件,都需要一套完善可靠谱监控方案。 尤其redis这类敏感的纯内存、高并发和低延时的服务,一套完善的监控告警方案,是精细化运营的前提