Turning folders into web pages with Python

From XPUB & Lens-Based wiki
Revision as of 17:35, 2 February 2026 by Manetta (talk | contribs) (Created page with "''For the prototyping class on 10 February 2026 in the context of SI29.'' ==1. Install uv== (if you don't have uv already) https://docs.astral.sh/uv/getting-started/installation/ $ curl -LsSf https://astral.sh/uv/install.sh | sh ==2. Initialize project== $ uv init gallery ==3. Prepare an assets folder== $ mkdir assets ==4. Put some files in the assets folder== Just copy and paste! ==5. Run the script== $ uv run main.py")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

For the prototyping class on 10 February 2026 in the context of SI29.

1. Install uv

(if you don't have uv already)

https://docs.astral.sh/uv/getting-started/installation/

$ curl -LsSf https://astral.sh/uv/install.sh | sh

2. Initialize project

$ uv init gallery

3. Prepare an assets folder

$ mkdir assets

4. Put some files in the assets folder

Just copy and paste!

5. Run the script

$ uv run main.py