Seed
Seed is a Python framework that compiles .seed files into static HTML.
It includes:
- A lexer/parser/renderer pipeline for
.seed - YAML +
.designcomponent system - Layouts and includes
- CLI commands for init, dev server, and build
Install
python -m pip install seed
CLI
seed init my-site
seed dev my-site
seed build my-site
Python API
from seed import Seed
engine = Seed()
html = engine.render_string("@h1\n Hello", full_page=True)
Social previews
Set the production URL and fallback image in seed.yaml:
url: https://example.com
image: /static/images/social-default.jpg
A page can override the image in its front matter:
---
title: Page title
description: Page description
image: /static/images/page.jpg
---
Seed generates Open Graph and Twitter Card metadata. Relative social image paths
become absolute using url. When image is omitted, Seed uses the first image
in the page content before falling back to the global image. Collection items
expose that inferred image to list layouts, and each collection listing page
uses the first image from the items displayed on that page. Set image: false
on a page to disable automatic extraction and the global fallback.
Development
python -m pip install -e ".[dev]"
python -m pytest tests -v
License
MIT. See LICENSE.
Metadata
Release files for seed-html 0.3
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 |
|---|---|---|---|---|
| seed_html-0.3.tar.gz | 135.9 kB | Without provenance | Details for seed_html-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seed_html-0.3-py3-none-any.whl | Python 3 | none | any | Details for seed_html-0.3-py3-none-any.whl |
Total release size: 250.4 kB
Release files / seed_html-0.3.tar.gz
| Download URL | seed_html-0.3.tar.gz |
|---|---|
| Size | 135.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74a5363937e1ddf945662f51d1e8cd80b015d7d697d7474386caaa11d5049c11
|
|
BLAKE2b-256 checksum How to use checksums |
dc47e5fc7919970c6043cbaef0d53934ddeafb2301c97de0d1620c6dc31d5b6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Release files / seed_html-0.3-py3-none-any.whl
| Download URL | seed_html-0.3-py3-none-any.whl |
|---|---|
| Size | 114.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34d7df085d0eb7e530f95b1a6cd41507876287b07c49639fa45c900ae01b4c97
|
|
BLAKE2b-256 checksum How to use checksums |
d2458c68294cf24494f5b06c8bc4cc2b6d36073a8d97c775adca284532e32321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Security for seed-html 0.3
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.