Build a Digital Resume With Python and Streamlit
A one-page digital resume built in Streamlit: a compact script that renders your photo, bio, skills and work history, with a download button for the PDF version. The layout is driven by a handful of settings at the top of the file, so later edits mean changing values, not markup.
Table of contents

Project setup
The app needs two packages: Streamlit for the website and Pillow to load the profile picture. Install both, then create app.py, an assets folder for the PDF resume and the photo, and a styles folder with an empty main.css.
pip install streamlit Pillow
Run the app from the project folder at any point. Streamlit opens it in your default browser and reloads when you save the script.
streamlit run app.py
Settings
Everything personal lives in a few variables at the top of app.py, so changing the resume later means editing values, not layout code. The path settings start from the folder of the script, so the app finds its files wherever you run it.
from pathlib import Path
import streamlit as st
from PIL import Image
# --- PATH SETTINGS ---
current_dir = Path(__file__).parent if "__file__" in locals() else Path.cwd()
css_file = current_dir / "styles" / "main.css"
resume_file = current_dir / "assets" / "CV.pdf"
profile_pic = current_dir / "assets" / "profile-pic.png"
Below the paths come the general settings: page title, name, description, email, social links and projects. The sections further down read these variables.
# --- GENERAL SETTINGS ---
PAGE_TITLE = "Digital CV | John Doe"
PAGE_ICON = ":wave:"
NAME = "John Doe"
DESCRIPTION = """
Senior Data Analyst, assisting enterprises by supporting data-driven decision-making.
"""
EMAIL = "johndoe@email.com"
SOCIAL_MEDIA = {
"YouTube": "https://youtube.com/c/codingisfun",
"LinkedIn": "https://linkedin.com",
"GitHub": "https://github.com",
"Twitter": "https://twitter.com",
}
PROJECTS = {
"🏆 Sales Dashboard - Comparing sales across three stores": "https://youtu.be/Sb0A9i6d320",
"🏆 Income and Expense Tracker - Web app with NoSQL database": "https://youtu.be/3egaMfE9388",
"🏆 Desktop Application - Excel2CSV converter with user settings & menubar": "https://youtu.be/LzCfNanQ_9c",
"🏆 MyToolBelt - Custom MS Excel add-in to combine Python & Excel": "https://pythonandvba.com/mytoolbelt/",
}
st.set_page_config(page_title=PAGE_TITLE, page_icon=PAGE_ICON)
Load the resources
The script injects the CSS file into the page, reads the PDF resume as bytes for the download button, and opens the profile picture with Pillow.
# --- LOAD CSS, PDF & PROFIL PIC ---
with open(css_file) as f:
st.markdown("<style>{}</style>".format(f.read()), unsafe_allow_html=True)
with open(resume_file, "rb") as pdf_file:
PDFbyte = pdf_file.read()
profile_pic = Image.open(profile_pic)
Hero section
The hero section uses two columns: the profile picture on the left, and the name, description, a download button for the PDF resume and the email address on the right.
# --- HERO SECTION ---
col1, col2 = st.columns(2, gap="small")
with col1:
st.image(profile_pic, width=230)
with col2:
st.title(NAME)
st.write(DESCRIPTION)
st.download_button(
label=" 📄 Download Resume",
data=PDFbyte,
file_name=resume_file.name,
mime="application/octet-stream",
)
st.write("📫", EMAIL)

Resume sections
The rest of the page is a stack of simple sections. Each one starts with st.write("#") for spacing and a subheader, and most of the content is Markdown text, so editing the resume never touches layout code.
Social links
The links from SOCIAL_MEDIA sit in one row below the hero section, one column per platform.
# --- SOCIAL LINKS ---
st.write("#")
cols = st.columns(len(SOCIAL_MEDIA))
for index, (platform, link) in enumerate(SOCIAL_MEDIA.items()):
cols[index].write(f"[{platform}]({link})")
Experience and qualifications
A line that starts with a dash becomes a bullet point in Streamlit’s Markdown.
# --- EXPERIENCE & QUALIFICATIONS ---
st.write("#")
st.subheader("Experience & Qulifications")
st.write(
"""
- ✔️ 7 Years expereince extracting actionable insights from data
- ✔️ Strong hands on experience and knowledge in Python and Excel
- ✔️ Good understanding of statistical principles and their respective applications
- ✔️ Excellent team-player and displaying strong sense of initiative on tasks
"""
)
Hard skills
The skills section uses the same pattern, with an emoji per skill group.
# --- SKILLS ---
st.write("#")
st.subheader("Hard Skills")
st.write(
"""
- 👩💻 Programming: Python (Scikit-learn, Pandas), SQL, VBA
- 📊 Data Visulization: PowerBi, MS Excel, Plotly
- 📚 Modeling: Logistic regression, linear regression, decition trees
- 🗄️ Databases: Postgres, MongoDB, MySQL
"""
)
Work history
A divider separates the heading from the jobs. Each job gets its title and company, the period and its main results. Repeat the block for every job.
# --- WORK HISTORY ---
st.write("#")
st.subheader("Work History")
st.write("---")
# --- JOB 1
st.write("🚧", "**Senior Data Analyst | Ross Industries**")
st.write("02/2020 - Present")
st.write(
"""
- ► Used PowerBI and SQL to redefine and track KPIs surrounding marketing initiatives, and supplied recommendations to boost landing page conversion rate by 38%
- ► Led a team of 4 analysts to brainstorm potential marketing and sales improvements, and implemented A/B tests to generate 15% more client leads
- ► Redesigned data model through iterations that improved predictions by 12%
"""
)

Projects and accomplishments
The last section loops over PROJECTS and writes each description as a link.
# --- Projects & Accomplishments ---
st.write("#")
st.subheader("Projects & Accomplishments")
st.write("---")
for project, link in PROJECTS.items():
st.write(f"[{project}]({link})")

Styling
The colors come from a Streamlit theme, the font and link styles from main.css. For the theme, create a .streamlit folder in the project root with a config.toml file.
[theme]
# Primary accent color for interactive elements.
primaryColor = "#d33682"
# Background color for the main content area.
backgroundColor = "#002b36"
# Background color used for the sidebar and most interactive widgets.
secondaryBackgroundColor = "#586e75"
# Color used for almost all text.
textColor = "#fff"
The CSS file loads the Readex Pro font, styles the links and removes the bullet markers, since the text already uses emojis and arrows.
@import url('https://pythonandvba.com/wp-content/cache/flying-press/624a06e679f3.google-font.css');
* {font-family: 'Readex Pro';}
a {
text-decoration: none;
color: white !important;
font-weight: 500;
}
a:hover {
color: #d33682 !important;
text-decoration: none;
}
ul {list-style-type: none;}
hr {
margin-top: 0px;
margin-bottom: 5%;
}
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
header {visibility: hidden;}
The last three rules hide Streamlit’s menu, footer and header. Newer Streamlit versions changed some of these elements; my post on hiding the Streamlit menu and header has the current options.
Deploy
The video deploys to Heroku, which no longer has a free plan. Render and Streamlit Community Cloud both host a Streamlit app like this one for free.
I deploy this exact resume in my guide to hosting a Streamlit app on Render. The same structure of settings at the top and sections below also works for a Streamlit sales page for digital products.
Resources
- Source code on GitHub
- The HTML and CSS resume by Traversy Media that inspired this design
