Jamstack in Python

jamstack, static, website, jinja2, flask, static-site-generator
pip install jamstack==0.1.0


Jamstack logo

Also known as Jamstackpy, is a tool that allows you to create static websites using the power of Python hand in hand with the Flask library. Its operation is based on templates which are rendered with the powerful Jinja engine generating your website with all its dependencies.


python -m pip install jamstack

Create basic project

jamstack plain <foldername>


Jamstack has templates available courtesy of html5up.

Template Command Tutorial
Massively html5up/massively
Phantom html5up/phantom HERE

The syntax is as follows:

jamstack t <template_command> <project_folder_name>

Use the --existing flag if you want the project to be created in an existing folder

jamstack t html5up/massively myproject --existing

By default, projects based in templates are created without the assets (stylesheets, images, etc...) to download them, you must pass the --jamdo option to the static.py file of the respective project.


To build the site run the file static.py.

python static.py

Your site will be generated in the dist/ folder.

Other project command-line options

Argument Description
--serve Optional. Start project livewatch (autoreload when files change).
--watch Optional. Specify files and folders to watch. Must be separated by comma.
--port Optional. Specify server port.

Sites using jamstack


  • Replace python static.py --serve/--jamdo by something like jamstack --serve/--jamdo
  • Remove Flask as Main requirement and just use Jinja