No description
Find a file
2025-11-10 20:30:12 +01:00
doc Extend README 2024-03-21 19:50:56 +01:00
.gitignore Ignore compiled atom.xml feed file 2023-08-07 23:39:20 +02:00
pylive.py Stub for make 2025-11-10 20:30:12 +01:00
README.md Extend README 2024-12-09 18:58:42 +01:00
requirements.txt Bump versions 2025-08-14 16:39:15 +02:00

pylive

Static HTML page generator written in Python

(Yes, I want to rewrite it in Rust when I have more spare time left. ;-))

Basic principles are:

  1. Blog-focused: Allow for writing new posts easily in Markdown format
  2. Create pure static HTML pages that can be put everywhere
  3. Allow users to fully personalize their website by using simple templates
  4. Support for static files (that are not newly rendered every time)

Dislaimer: I wrote this generator to create a site that fits my needs. It might not fit your needs but you are free to use this generator as a basis and add your modifications.

Installation

python3 -m venv venv
source venv/bin/activate
[ -f requirements.txt ] && pip install -r requirements.txt

Update packages

[!NOTE] Updating installed pip packages to new versions can break your installation when dependencies cannot be met. As long as you do not modify your requirements.txt file you can simply set up a new virtual environment with the old versions as described above in the Installation section.

To update existing pip packages to their newest version you can use the following commands. Make sure that you have activated the virtual environment (i.e. source the activate file in the venv directory). Then you can update the installed packages.

pip install --upgrade pip
for p in $(cat requirements.txt | cut -d "=" -f 1); do pip install --upgrade $p; done

When everything works make sure that you update your requirements file:

pip freeze >requirements.txt