Skip to main content

md-cv-gen

CI PyPI License: MIT Python uv

Generate a clean, professional PDF CV from a Markdown file. Optionally password-protect the output.

Features

  • Markdown in, PDF out — write your CV in plain Markdown, render it to a print-ready A4 PDF (or HTML).
  • Sensible typographic defaults — an embedded stylesheet handles colors, spacing and page layout; tweak it in one place.
  • Password protection — optionally encrypt the generated PDF.
  • Single dependency-light CLI — one command, no config files.

Prerequisites

Installation

pip install md-cv-gen

Or run it without installing, using uv:

uvx md-cv-gen cv.md -o cv.pdf

Usage

# Output HTML to stdout
md-cv-gen cv.md

# Generate an HTML file
md-cv-gen cv.md -o cv.html

# Generate a PDF
md-cv-gen cv.md -o cv.pdf

# Generate a password-protected PDF
md-cv-gen cv.md -o cv.pdf -p "secret"

The output format is determined by the -o file extension (.pdf or .html). Without -o, HTML is printed to stdout.

Markdown structure

# First Last
**Job title** | City, Country
email | phone | links

---

## Section                         <!-- h2 sections -->

### Role - Company                 <!-- h3 subsections -->
*Dates | Location*                 <!-- dates in italic -->

- Achievements as bullet points

Style customization

The CSS is defined in the STYLE variable in src/cv_generator.py. You can modify colors, fonts and spacing directly.

Element Property Default
Primary color color (h2, links) #2980b9 (blue)
Text color color (body) #2c3e50 (dark grey)
Font font-family Helvetica Neue, Arial
Page size size (@page) A4
Margins margin (@page) 1.5cm 2cm

Development

git clone https://github.com/goabonga/cv-generator.git
cd cv-generator
uv sync
uv run pre-commit install
uv run ruff check .

See CONTRIBUTING.md for the full workflow, commit conventions and release process.

License

MIT © Chris

Metadata

Release files for md-cv-gen 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for md-cv-gen 1.0.0
File Size Uploaded Provenance
md_cv_gen-1.0.0.tar.gz 5.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for md-cv-gen 1.0.0
File Interpreter ABI Platform
md_cv_gen-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / md_cv_gen-1.0.0.tar.gz

Download URL md_cv_gen-1.0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bc1f5ca45ef12a083444f4392b295a86f4b227ec71b969c49ff0ddf02ef960b5
BLAKE2b-256 checksum
How to use checksums
8183688423e61d4a6f4181deaedb0afdc6fdd2df0c8f3eaacaa52c22c11fad09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2026.

Transparency log

Release files / md_cv_gen-1.0.0-py3-none-any.whl

Download URL md_cv_gen-1.0.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfbc3e9b4b87a97c65eb677398f0b50639a9dc15dc04833f085f8aa44a157344
BLAKE2b-256 checksum
How to use checksums
f37dc34703ce27737e4a302eeb7c3f599c884c284da4240bc90406d11cc0a062
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2026.

Transparency log

Security for md-cv-gen 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for md_cv_gen-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page