Skip to main content
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.

Installation

python -m pip install jamstack

Create basic project

jamstack plain <foldername>

Templates

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.

Build

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

TODO

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

Release files for jamstack 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jamstack 1.1.0
File Size Uploaded
jamstack-1.1.0.tar.gz 26.2 kB Details

Release files / jamstack-1.1.0.tar.gz

Download URL jamstack-1.1.0.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
324c92f3b1cf774b4771056718ec8ccfb1fc6c12b219a5194f247bba39bf688d
BLAKE2b-256 checksum
How to use checksums
75ea2bc9616d9f5dc25d12898836803b6351bf78b83b22e0a43c4e8f16e0c2b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

0.1.0

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page