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.1.8.tar.gz (89.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.1.8-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seed_html-0.1.8.tar.gz
  • Upload date:
  • Size: 89.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.1.8.tar.gz
Algorithm Hash digest
SHA256 ae4eccc1c173cd8d7f288a6abc4b14d9ce166cab74db69727d4991c3ddbde8f1
MD5 0b98fbdf632751852c182457a9d818cc
BLAKE2b-256 863308aacc39b4159a299b8405d98ff175c787c2a0f7edf9b7a109c67460e771

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seed_html-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 84.0 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.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 37d7f9e2b484c12786f8e990af932a995a2591aa50e4626e0a6f1fed3bafa35a
MD5 7c2cec89b0b3ca9943251d06159f9af1
BLAKE2b-256 08422cd4917c9a03aead6a6e56f59db3eb96d57eae851173ba4c2073accb6573

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3

2 files

This release

0.1.8 This release

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