Skip to main content

Zero-dependency Python static-site generator. Base layout + partials + Markdown content + YAML data + shortcodes. One file, stdlib only.

PyPI CI License: MIT

Install

uv tool install lintc      # recommended — isolated, no env needed
pipx install lintc         # equivalent if you prefer pipx
pip install --user lintc   # also fine

Requires Python 3.9 or newer. No other dependencies.

Quickstart

Scaffold a site:

src/
├── content/
│   ├── pages/home.yaml       # structured pages
│   ├── blog/*.md             # Markdown posts with YAML front matter
│   └── products/*.yaml
├── layouts/
│   ├── _base.html            # the master layout
│   ├── home.html             # page layouts
│   └── partials/             # shared chrome (head, header, footer, components)
├── data/                     # site-wide data (site.yaml, nav.yaml, etc.) + optional lintc.yaml
└── static/                   # copied verbatim into dist/

Build it:

lintc build              # emits dist/
lintc serve              # dev server with live reload at http://127.0.0.1:8000/
lintc check              # post-emit validations + configurable plugins

CLI

lintc build [--root DIR] [--include-drafts]
lintc serve [--root DIR] [--host HOST] [--port PORT] [--no-reload] [--no-drafts]
lintc check [--root DIR]
lintc --version
lintc --help

build hides drafts by default — use --include-drafts to opt them in. serve shows drafts by default — use --no-drafts to hide them.

lintc check's validators are configurable via src/data/lintc.yaml — see the docs for the schema.

An optional i18n block in that same file serves one tree per locale (src/content/<locale>/...), with UI strings in src/i18n/. HTML files under src/content/ are published as written (no Markdown). Pages in a section expose page.prev / page.next, and page.minutes is the reading time of the rendered body. Omit i18n and an existing site builds as before.

lintc also supports check-time plugins, enabled under check.plugins in the same lintc.yaml. Plugins run during lintc check and can mutate the working tree (review drift with git diff). Bundled check-time plugins:

  • remote-sync — mirrors external files (e.g. upstream READMEs) to local paths via a committed lockfile (src/data/lintc-sync.lock). Pair with body_source to keep page body content in sync with upstream automatically.
  • tag-sync — sets a content YAML's version: field from a repo's latest git tag, tracked in src/data/lintc-tag.lock.
  • terminal-mock — regenerates a product page's terminal.body_html block by capturing real CLI output under a PTY, converting ANSI to t-* <span> classes, and wrapping in static shell chrome. Tracks output in src/data/lintc-terminal.lock.

lintc also supports build-time plugins, declared under build.plugins in the same lintc.yaml. A plugin contributes a shortcode plus its own JS/CSS, which are emitted into dist/ (and the matching <link>/<script> tags injected) only on pages that actually use the shortcode. lintc bundles one: lintc-swiper, a zero-dependency inline image carousel authored with the {{< lintc-swiper >}} shortcode (add loop="true" to wrap from the last slide back to the first).

Why it exists

The reason lintc exists is that the static site for lintuxt.ai needed a compiler, and the existing Python options either required a dependency graph I didn't want (Pelican, MkDocs) or a runtime I didn't want (Hugo's Go binary, Eleventy's Node.js). The constraint was: one file, stdlib only, no installation ceremony beyond having Python on the box.

It turned out to fit a useful niche. Personal sites and small documentation trees don't need the kitchen sink — they need layouts, partials, Markdown, structured data, and a dev server. lintc does exactly that and nothing more. The whole compiler is one Python file you can read top-to-bottom in an hour, including tests.

The trade-off is real: lintc is not Hugo, not Eleventy, not Astro. There's no plugin ecosystem of templates, no theme marketplace, no first-class image optimization, no markdown extension marketplace. If you're building a 500-page documentation site for a SaaS product, this is the wrong tool. If you're building a personal site, a project page, or a small handful of docs and you want the build pipeline to fit in your head, lintc is the right shape.

It also doubles as a portfolio surface: every release of lintc is visible on its own engineering page on lintuxt.ai, embedded via lintc's own body_source field and the remote-sync plugin keeping the content in sync from this very README. The site you might be looking at is built by the thing you're reading about.

Documentation

Full docs: docs/index.md. Changelog: docs/changelog.md.

License

MIT — see LICENSE.

Metadata

Release files for lintc 0.11.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 lintc 0.11.0
File Size Uploaded Provenance Actions
lintc-0.11.0.tar.gz 74.0 kB With provenance Details for lintc-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 125.1 kB

Release files / lintc-0.11.0.tar.gz

Download URL lintc-0.11.0.tar.gz
Size 74.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49eb13e124d40a192ca69ffda4f1cc9889e6a658439c467556e3ef5ebb26cf28
BLAKE2b-256 checksum
How to use checksums
10a40da8c7dc948b70d29f4f77677d070a04eda30a7eb89d6e5a14cd3f1bfed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Release files / lintc-0.11.0-py3-none-any.whl

Download URL lintc-0.11.0-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04912907b044e172cfc89c4efa4be7051fef51e81152a88276354efb14f372fe
BLAKE2b-256 checksum
How to use checksums
0ad3927bc44e9e043e5122d2365161e27a25bd3be50ea8e9b5214ef328fe68e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Security for lintc 0.11.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 lintc-0.11.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 Oct 17, 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