r/Python • u/deviodigital • Jun 20 '25
Showcase I just built the fastest Python-based SSG in the world
I wanted to share a project I’ve been working on over the last year: Stattic, a static site generator written in Python.
It started as a single script to convert Markdown into HTML, mainly because I wanted something fast, SEO-friendly, and simple enough to understand in one sitting.
And today, I released v1.0, which is a big leap.
What My Project Does
Stattic is a static site generator built in Python. It takes Markdown files with front matter and turns them into a full HTML site using Jinja2 templates.
You can use it to build blogs, documentation, landing pages, portfolios, or simple sites — without relying on JavaScript-heavy frameworks or platform lock-in.
Features in v1.0:
Fully modular Python package (
pip install stattic)New CLI (
stattic --init,stattic build, etc.)Project scaffolding with base templates and config
Clean HTML output (SEO-friendly, no client-side JS required)
YAML or JSON config (
stattic.ymlorstattic.json)Built-in SSRF and path sanitization for better security
Template theming with Alpine.js-powered mobile nav by default
Target Audience
This is a production-ready tool aimed at:
Developers who want full control over their site
WordPress/PHP devs transitioning to Python
Technical folks building documentation, blogs, or landing pages
Indie hackers, educators, and minimalists who don’t want React/Vue-based SSGs
It’s not a toy or proof of concept - it's installable via PyPI, well-documented, and being used in real-world projects (including my own site and course platform).
Comparison
Compared to other SSGs:
vs Hugo: Hugo is faster overall but written in Go. Stattic is Python-based and more customizable for Python devs.
vs MkDocs/Sphinx: Stattic is simpler, less opinionated, and not just for docs. You control structure, templates, and content types.
vs Pelican: Stattic is significantly faster (especially on large builds), has a cleaner CLI, stronger defaults, and better template ergonomics out of the box.
Launch post: https://robertdevore.com/stattic-v1-0-the-worlds-fastest-python-based-static-site-generator/
