Skip to main content

Seed

Seed is a Python framework that compiles .seed files into static HTML.

It includes:

  • A lexer/parser/renderer pipeline for .seed
  • YAML + .design component 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seed_html-0.3.tar.gz (135.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seed_html-0.3-py3-none-any.whl (114.6 kB view details)

Uploaded Python 3

File details

Details for the file seed_html-0.3.tar.gz.

File metadata

  • Download URL: seed_html-0.3.tar.gz
  • Upload date:
  • Size: 135.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for seed_html-0.3.tar.gz
Algorithm Hash digest
SHA256 74a5363937e1ddf945662f51d1e8cd80b015d7d697d7474386caaa11d5049c11
MD5 fbe378810e65e68fb06933763915cca2
BLAKE2b-256 dc47e5fc7919970c6043cbaef0d53934ddeafb2301c97de0d1620c6dc31d5b6f

See more details on using hashes here.

File details

Details for the file seed_html-0.3-py3-none-any.whl.

File metadata

  • Download URL: seed_html-0.3-py3-none-any.whl
  • Upload date:
  • Size: 114.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for seed_html-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 34d7df085d0eb7e530f95b1a6cd41507876287b07c49639fa45c900ae01b4c97
MD5 357ae6301901d8b475a4accabc6d8748
BLAKE2b-256 d2458c68294cf24494f5b06c8bc4cc2b6d36073a8d97c775adca284532e32321

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3 This release

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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