Elektrine lite

โ† Feed

@mariatta@fosstodon.org

Post #1148039

2026-04-13 18:09 UTC

I want a static site generator that is Python-based. Is this possible, or even a reasonable expectation? I really like the experience with frameworks like Hugo and Astro, but I wish I don't have to do npm install or go mod whenever changes is needed. I know that Sphinx, Pelican, mynt exist/-ed, but these brought me more frustrations than joy ๐Ÿ˜ฅ

Replies (7)

  • @astraluma@tacobelllabs.net 2026-04-13 18:13

    @mariatta hi! welcome to my professional domain :D Sphinx and mkdocs are technically SSGs, but they're really not meant for general sites. Pelican is pretty popular, but in my little use, I wasn't super happy with it. I think @aurynn uses it. My recommendation for blogs is https://getnikola.com/, which has all the features you'd expect from a blog. @agmlego uses it for https://agmlego.com/ .

    Open ##1589192

  • @zash@fosstodon.org 2026-04-13 18:15

    @mariatta Is it your turn to write your own? :)

    Open ##1589197

  • @tut_tuuut@framapiaf.org 2026-04-13 18:21

    @mariatta I am python-based but I'm giving a try to (rust based) Zola: https://www.getzola.org/ Templating feels like a lot like in Django (unlike in Hugo). It's a single executable to install, no dependency to node (unlike in 11ty).

    Open ##1589198

  • @hwesta@wandering.shop 2026-04-13 19:55

    @mariatta I started using Lektor for my personal site after seeing it used for the PyCascades site. Python and some node for the internal/admin website. https://www.getlektor.com/

    Open ##1589204

  • @mariatta here's a few more in this list for you to check out! https://www.fullstackpython.com/static-site-generator.html

    Open ##1589205

  • @marcoshuerta@vmst.io 2026-04-14 00:48

    @mariatta I also was looking for this for a long time, use Hugo for a while, and then switched to Quarto, which while not Python under the hood, can generate posts using Python code/ python outputs (plots etc), which is what I really wanted.

    Open ##1589207

  • @amethyst@toots.n7.gg 2026-04-14 01:12

    @mariatta I still use the one I wrote for myself over a decade ago ๐Ÿ˜… https://github.com/amyreese/nib

    Open ##1589208