sprezzature-publish
A folder of Markdown becomes a site somebody can find.
Drop a ⭐️ on GitHub if my help deserves it.
Point it at a README.md and a docs/ folder and it emits pages, the meta
tags that make them shareable, a favicon and app-icon set from one logo, the
indexes crawlers and language models look for — robots.txt, sitemap.xml,
llms.txt, an Atom feed, humans.txt — and, when asked, a narrated audio
track with a read-along that highlights the sentence being spoken.
It is sized for a site you can hold in your head: a README, some docs, a blog. For a hundred versioned pages, reach for MkDocs Material, Hugo or Astro instead; this does not compete with them and says so.
How it works
What's here
sprezzature-publish-lint |
audit — read the Markdown before anything renders it. Only click and the standard library, milliseconds, pre-commit shaped. --fix repairs what has one safe repair. |
sprezzature-publish-audit |
audit — read the site after it exists: head meta, Open Graph, icon links, robots.txt, sitemap.xml, llms.txt. Takes a directory, a page or a live URL — no Markdown source required. --fix writes back what can be derived rather than invented. |
sprezzature-publish-cta |
first — find the calls to action a site already offers, ask which ones it is for, write ctas.yaml, and check every page against them. Reads HTML, PHP (PHP: Hypertext Preprocessor, a language the server runs to build each page on request: what WordPress is written in), Markdown, JSON (JavaScript Object Notation, a text format in which programs store data as named fields, such as "title": "Home") and YAML (YAML Ain't Markup Language, a settings file people edit by hand, one setting per line such as title: Home). |
sprezzature-publish-faq |
make — build the FAQ a site is missing from its own pages: questions ranked by the declared CTA (call to action: the one button the site wants clicked, such as "Book a demo"), answers grounded in the site's words, the questions it cannot answer yet. audit — the FAQPage markup against the visible FAQ, --fix rewrites it. |
sprezzature-publish-findable |
audit — one report for SEO (search engine optimization, getting a page onto the first page of Google results), GEO (generative engine optimization: being the source ChatGPT quotes when somebody asks it) and AEO (answer engine optimization: being the answer a search engine prints above the links), money pages first, each finding tagged with every goal it serves. --fix applies the deterministic repairs. |
sprezzature-publish-html |
Markdown → standalone HTML pages, math typeset by KaTeX. |
sprezzature-publish-icons |
one logo → favicon, app icons, PWA (progressive web app, a site you install on a phone's home screen like an app) icons, and the <head> snippet that references them. |
sprezzature-publish-indexes |
robots.txt, sitemap.xml, llms.txt, llms-full.txt, an Atom feed (RSS with --rss), humans.txt. |
sprezzature-publish-meta |
Open Graph, Twitter Card and Schema.org JSON-LD (JSON for Linked Data, a hidden block telling search engines "this page is an article, by this author, on this date"), drafted by a local model. |
sprezzature-publish-plain |
rewrite prose at a target reading grade, keeping the terms you name. |
sprezzature-publish-changelog |
the CHANGELOG.md of every sibling repository under --repos-root becomes one Atom and RSS (Really Simple Syndication, a feed that lets a reader app show a site's new posts without visiting it) feed, a dated release per entry. |
sprezzature-publish-narrate |
narrate a post with a local voice, and write the timed track beside the audio. |
sprezzature-publish-readalong |
bind that narration to the page, so the sentence being spoken is highlighted. |
Where the rules come from
Every audit rule cites a specification or the search engine's own
documentation — the HTML standard of the WHATWG (Web Hypertext Application Technology Working Group, where Apple, Google and Mozilla write the HTML standard together),
the internet's Requests for Comments RFC 6596
(canonical), RFC 9309 (robots.txt),
sitemaps.org 0.9, ogp.me,
X Cards,
JSON-LD 1.1,
the Web App Manifest of the W3C (World Wide Web Consortium, the body that publishes the web's standards, from accessibility rules to the app manifest),
Apple's web-app configuration guide,
RFC 4287 / RSS 2.0,
llmstxt.org. Where no such document exists, the rule
says so instead of pretending: see references/audit-site.md, which carries
the table rule by rule and is the thing to cite when a finding is disputed.
One front door over all thirteen, in click, under two names: make-site <tool>
and sprezzature-publish <tool> resolve to the same callable, so they cannot
drift. The argparse twin was removed on 2026-10-25, and on 2026-11-04 the
per-tool commands and the MCP (Model Context Protocol, the protocol through which AI agents call tools in English) server followed: every command here is click.
sprezzature-publish tools lists the thirteen and says which import cleanly
on this machine. The front door hands everything after the tool name to the
tool, except -h / --help, which it answers itself with the one-line
summary: for a tool's own options, ask its own command
(sprezzature-publish-lint --help).
The same toolkit reaches you through five surfaces, all in the one
pip install: the library (import sprezzature_publish), the command line
(click), a web service (FastAPI, with a Dockerfile and a
docker-compose.yml), an MCP server (fastapi-mcp, mounted on that web
service), and the skill an agent reads, which ships inside the package.
Install
pip install sprezzature-publish
One line, and it is everything: the lint, the renderer, the icon set, the local-model tools, the narration, the HTTP (HyperText Transfer Protocol, the protocol a browser uses to ask a server for a page, and a program to ask for data) surface, the MCP server and the skill.
Until 2026-11-01 this block was six lines and you had to pick — the base was a
single dependency, so pip install sprezzature-publish gave you a lint and
nothing else, and knowing which extra you wanted was a prerequisite for the
package being useful. The extras are gone; [dev] is the test toolchain and
is not one of them.
Requires Python 3.10–3.13: sprezzature-audio, now a base dependency,
declares <3.14 at the version named in the manifest.
The lint needing only click and the standard library is deliberate, and
it is the reason this package is worth putting in a pre-commit hook: it runs
in milliseconds, with no image library and no model client behind it. The
rest of the package is installed beside it, since there are no extras any
more, and the lint does not depend on it: best-engine-ai-helper, which only
--ai uses, is imported when --ai asks for it, and every rule runs without it.
Use
Gate the Markdown first
sprezzature-publish-lint docs/ # exit 1 on any error; warnings do not fail
sprezzature-publish-lint docs/ --fix # repair what has one safe repair
Then build
sprezzature-publish-html README.md --out site/
sprezzature-publish-html docs/ --out site/docs/
sprezzature-publish-icons logo.png --out site/
sprezzature-publish-indexes --root site/ --base-url https://example.com
# Improve a site that already exists — yours, or somebody else's
sprezzature-publish-audit public/ --base-url https://example.com # report
sprezzature-publish-audit public/ --base-url https://example.com --dry-run # preview the repairs
sprezzature-publish-audit public/ --base-url https://example.com --fix --lang en
sprezzature-publish-audit https://example.com/about # a live page
sprezzature-publish-meta site/index.html # asks a local model
Lead readers to what the site is for
Search, generative and answer engines (SEO, GEO, AEO) all end on one question: once a reader arrives, what should they do? So that is the first input, asked rather than guessed.
sprezzature-publish-cta site/ # what the site links to, then: which one is it for?
sprezzature-publish-faq site/ > faq.md # the FAQ the site is missing, as a draft
sprezzature-publish-faq site/ --audit --fix # FAQPage markup rebuilt from the visible FAQ
sprezzature-publish-findable site/ --base-url https://example.com
sprezzature-publish-indexes --root site/ --base-url https://example.com \
--offer "Local captions for teams." --cta "Book a demo=https://cal.com/acme/demo"
The declared CTAs (ctas.yaml) decide the money pages: the pages that
carry one in their body, and the page it lands on. A noindex there is an
error; on a blog post it is a choice. Every FAQ answer comes from a passage
of the site, and every number in it from that passage, or it is not
written: a question the site cannot answer goes to a gap report instead.
FAQPage markup is built from the visible text, once per page, and never
claimed to rank: Google stopped showing FAQ rich results on 2026-05-07, and
answer engines read what a reader reads.
And, if the page should be read aloud
sprezzature-publish-narrate post.md --out-dir site/audio/
sprezzature-publish-readalong site/post.html --narration site/audio/ --out built/
The voice itself lives in sprezzature-audio,
whose engines run on speaker-helper: this package owns the document and
the page, not the engines. Somebody who only wants rendered Markdown never
loads a text-to-speech stack to get it.
From Python
from sprezzature_publish import lint_file, convert_one, skill_path
A site is built by a script somebody wrote, in a loop, on a schedule. That caller should import rather than shell out and parse stdout.
Over HTTP
pip install "sprezzature-publish"
sprezzature-publish-mcp --port 8000 # the routes and /mcp, one process
curl -s localhost:8000/health
uvicorn sprezzature_publish.api:app serves the routes alone: the MCP
endpoint is mounted when sprezzature_publish.mcp is imported, which is what
sprezzature-publish-mcp does before it binds.
Seven routes — lint, audit, render, plain-language, CTAs, FAQ and the joint
findability report — plus GET /health, because those are the ones that
cross a network boundary cleanly: text in, text out. The MCP endpoint
publishes the same eight as tools, named by their operation_id
(lint_markdown, audit_site, render_markdown, rewrite_plainly,
find_calls_to_action, build_faq, report_findability, health). The
site-level three take the pages as [{path, content}] and the declared CTAs
as a parameter, and say so in the response when the CTAs are missing. The
favicon set is a folder of binaries keyed by filename and stays a command
rather than being offered here with an invented download protocol.
In containers
docker compose up -d
curl -s localhost:8000/health
docker compose --profile prose up -d # adds the local model server
The container runs sprezzature-publish-mcp, so one port serves the HTTP
routes and the MCP endpoint: point an MCP client at
http://localhost:8000/mcp.
The model server is a separate profile: only the tools that ask a local model need it, and someone who only wants pages should not be made to run one.
For an agent: the skill
sprezzature-publish-skill # is the copy an agent reads in step?
sprezzature-publish-skill --install # copy it into ~/.claude/skills
sprezzature-publish-skill --install --agent opencode # or into ~/.opencode/skills
sprezzature-publish skill --path # where pip put it
The skill ships inside the package, at sprezzature_publish/skill/: the
SKILL.md an agent routes on, and the references it opens once it has
chosen. sprezzature_publish.skill_path() returns that folder, and
sprezzature-publish skill (or make-site skill) is the same command as
sprezzature-publish-skill. Without --install it only reports whether
the copy Claude Code reads in ~/.claude/skills (or OpenCode in
~/.opencode/skills, with --agent opencode) is in step: it names the
difference when there is one and counts them when there are several. With --install, a
copy that differs is moved aside to skills-superseded/ beside the skills
folder, never left inside it, where it would still be read as a skill.
A FAQ section whose answers the model drafted begins with <meta name="generator" content="generated with the help of sprezzature AI by deraison.ai"> (with its French twin in the same attribute); a narration's audio file carries the same sentence in its metadata. Nothing is shown or heard.
What it does not own
The voices. Narration synthesis lives in
sprezzature-audio —
captions turn sound into timed text and narration turns text into timed
sound, so one package owns that modality in both directions. This one owns
the document and the page, and invokes those as subprocesses so their heavy
imports never enter its graph. It is a base dependency, so the voices arrive
with pip install sprezzature-publish; only the model files are fetched apart.
Nor does it own the accessibility of the rendered page (sprezzature-accessibility), contrast and colours (sprezzature-colors), or the figures (sprezzature-figures).
sprezzature-audio-install-voice --engine chatterbox # model files, once
sprezzature-publish-narrate post.md --out-dir site/audio/
No engine is named on the second line and none needs to be: speaker-helper's
router picks it from the language and the offline condition, and today it
answers Chatterbox in English and in French, which is why that is the one to
install. --engine kokoro takes the light one on purpose: it reads the text,
works out what language it is in, and picks the voice that speaks it. That is
not a convenience — the detected language is what its phonemiser works from,
so a French page read as English is not French in an American accent, it is
an American spelling the words out.
The boundary is worth stating: this package decides what to publish and how the page is made. The audio, images and charts a page carries belong to the packages that know how to produce them.
See also
- sprezzature-accessibility — lint the HTML this emits, and draft the alt text it tells you is missing.
- sprezzature-audio — the voices, and the captions audit.
- sprezzature — the suite, which gathers the skill every brick ships.
- sprezzature-ui — the components.
License
The three-clause Berkeley Software Distribution license, BSD-3-Clause, a permissive open-source license: anyone may reuse the code, even commercially, if they keep the copyright notice. See LICENSE.
Author
Metadata
Release files for sprezzature-publish 1.7.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 |
|---|---|---|---|---|
| sprezzature_publish-1.7.3.tar.gz | 521.5 kB | Without provenance | Details for sprezzature_publish-1.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sprezzature_publish-1.7.3-py3-none-any.whl | Python 3 | none | any | Details for sprezzature_publish-1.7.3-py3-none-any.whl |
Total release size: 884.4 kB
Release files / sprezzature_publish-1.7.3.tar.gz
| Download URL | sprezzature_publish-1.7.3.tar.gz |
|---|---|
| Size | 521.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
609ff06ce277729ff3be21e9580f0bbb52ac729822e47b2bd14c63116eefaf3f
|
|
BLAKE2b-256 checksum How to use checksums |
e163c49c6435470bb395672c1302885a8dc45ac0cff9e3383ba4a7d54c6fe0a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / sprezzature_publish-1.7.3-py3-none-any.whl
| Download URL | sprezzature_publish-1.7.3-py3-none-any.whl |
|---|---|
| Size | 362.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d89fa47e6be19df915f742044072dfb11afc944c06fb8be32f24d1fdcf9f3f29
|
|
BLAKE2b-256 checksum How to use checksums |
717ea634d4c192f8568738366f5256f6e0d839387864ef0cff8072002ca4c126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Security for sprezzature-publish 1.7.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.