Skip to main content

Recettes

Recettes turns Markdown files into a small, static recipe website. Recipes remain easy to edit in GitHub; the generated site is mobile-friendly and needs no application server.

Example

Look at the examples/ folder and how it turned into this website.

Recipe format

Put one Markdown file per recipe in a directory. Optional photos sit beside the Markdown file and use its filename with a numbered suffix:

examples/
├── onion-soup.md
├── onion-soup-1.jpg
└── onion-soup-2.webp

Recipe properties go in YAML front matter. Tags can be a comma-separated string or a YAML list. All properties are optional:

---
title: Onion Soup
portions: 4
preparation: 45
cooking: 15
tags: winter, soup, easy, budget-friendly
lang: en
---

# Preparation

Peel and thinly slice {{ 4 onions }}.

Cook them gently in {{ 50g of butter }} and {{ 1 tbsp of oil }}.
Add {{ 1L of hot water }} and {{ 250ml of white wine }}.

Simmer gently until tender.

Write ingredient amounts inside {{ }} in the recipe text.

Recettes reads a number and an optional unit from the start of each expression, including decimals and fractions such as 0.5cac and 1/2 cac. Supported units include metric abbreviations, tbsp/tablespoon(s), tsp/teaspoon(s), cup(s), oz/ounce(s), and lb/pound(s). A number without a unit is treated as a count. Text without a leading number is kept as written.

The optional portions property enables serving controls, and lang sets the recipe page's language for browsers and assistive technology.

Create your own website

To create your own recipe website, fork Mat's recipes repository and replace the recipes in the recipes/ folder with your own.

Run locally

Install from PyPI with uv:

uv tool install recettes

Or from a checkout, with uv tool install ..

Build the recipes in a directory and preview the generated site:

recettes build examples/ --destination site/ --title "My Recipes"
python -m http.server --directory site/ 8000

Open http://127.0.0.1:8000.

Development

uv sync --extra dev
uv run recettes --help
uv run ruff check .
uv run pytest
npx prettier@3.6.2 --check "src/recettes/static/**/*.{js,css}"

Release

The version comes from the Git tag. Creating a new release will build the package and publish it to PyPI.

License

CC0 1.0 Universal

Metadata

Release files for recettes 1.0.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 recettes 1.0.0
File Size Uploaded Provenance Actions
recettes-1.0.0.tar.gz 1.4 MB With provenance Details for recettes-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for recettes 1.0.0
File Interpreter ABI Platform Actions
recettes-1.0.0-py3-none-any.whl Python 3 none any Details for recettes-1.0.0-py3-none-any.whl

Total release size: 1.4 MB

Release files / recettes-1.0.0.tar.gz

Download URL recettes-1.0.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
4609fb550902c3b6d2e881d4c7bc66018bd0ef9c5de984e20905163d5f461b2e
BLAKE2b-256 checksum
How to use checksums
0191a222dc009df8dd29628673c8f39608cd97bb26da4cb1ed8ea5d880de92f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / recettes-1.0.0-py3-none-any.whl

Download URL recettes-1.0.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7833c49ff99ab415024473d57aacf8f4b5ffa4177efb2578c6624e31949e6a41
BLAKE2b-256 checksum
How to use checksums
5f94a7f6a8d931d4b4d8903ea5bb53724643210cda31a6e8fa29d858e21bb208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for recettes 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for recettes-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

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.

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