turbines
A static site generator built with Jinja2.
Inspired by Cactus, a project that is no longer maintained.
What is turbines?
Turbines is a static site generator that allows you to create websites using Jinja-based HTML templates and markdown files. Turbines makes it easy to deploy your site to services like Cloudflare Pages or AWS S3. It supports live reloading during development.
Usage
To install turbines, run:
pip install turbines
or
uv add turbines
To create a new site, run:
turbines create mysite
cd mysite
To build the site, run:
turbines build
To serve the site with live reloading, run:
turbines serve
Templates
Templates are written in Jinja2. You can use any Jinja2 syntax in your templates.
Variables
The site variable is available in all templates and contains information about the site current site, such as the url and the title.
The pages variable is also available and contains a map of tags and the pages that have those tags.
For example, pages.tags.articles would give you a list of all pages that have the articles tag.
The context variable contains the context set in config.yaml.
Functions
The url function is available in all templates and can be used to generate URLs for pages. For example, {% url "test.md" %} would give you the URL for the page generated from test.md.
The static function is also available and can be used to generate URLs for static files. For example, {% static "style.css" %} would give you the URL for the style.css file in the static directory.
Examples
None yet. Coming soon!
Compatibility
Turbines is built with Python 3.12.
Metadata
Release files for turbines 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| turbines-0.1.7.tar.gz | 9.7 kB | Without provenance | Details for turbines-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turbines-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for turbines-0.1.7-py3-none-any.whl |
Total release size: 23.8 kB
Release files / turbines-0.1.7.tar.gz
| Download URL | turbines-0.1.7.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aece69c450d3c5262fdaabc9963a59d4eb43d84fd2593e4f1e676fb8c9f5b42e
|
|
BLAKE2b-256 checksum How to use checksums |
a9527e952e5b6cbe4d362171d2db02e3c50c2fa954e44e8384240b90cda06d35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / turbines-0.1.7-py3-none-any.whl
| Download URL | turbines-0.1.7-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b481deb7b80fb1dd3cd94bfbad75f2d729aebaec436993fde3db9258a822443
|
|
BLAKE2b-256 checksum How to use checksums |
9dc04292000891756ef234185966776bbaf88d63a54dc1e3a8e1a0b7a8479e4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for turbines 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.