pypress
Serve a folder of Markdown files as a documentation site. No build step.
Install • Usage • Configuration • Development
pypress scans a folder of Markdown files, writes a small page index, starts a
local web server and opens the site in your browser. The .md files are never
converted to HTML on disk: the browser renders them with a bundled
markdown-it.
- A clean default theme: nav bar, sidebar, "On this page" outline, previous/next links and footer.
- Live reload: save a file and the open page updates.
- Search over titles and headings with ⌘K / Ctrl K.
- Light and dark mode.
- Markdown extras: frontmatter,
::: tip | info | warning | danger | detailscontainers, GitHub alerts (> [!NOTE]), code line numbers and{1,3-4}line highlights, Mermaid diagrams (```mermaid), and the layoutshome,docandpage. Hidden folders,node_modulesandpublicare skipped. - One optional config file:
pypress.json, shaped like a VitePress config, sets the nav bar, sidebar, logo, social links, footer and extra CSS. - Works offline. All scripts, styles and fonts are vendored in the package.
Install
uv tool install pypress
Usage
pypress docs
| Option | Default | Meaning |
|---|---|---|
DOCS_DIR |
. |
Folder with Markdown files. |
--host |
127.0.0.1 |
Interface to bind. |
--port |
8000 |
Port; the next free one is used if it is busy. |
--open / --no-open |
open | Open the browser. |
--watch / --no-watch |
watch | Live reload on file changes. |
--index-only |
off | Write the page index and exit. |
--log-level |
info |
debug, info, warning or error. |
--version |
Print the version. |
index.md is the home page. Each first level folder becomes a section in the
top bar; deeper folders become groups in the sidebar.
Configuration
pypress uses two files in the docs folder:
-
pypress.jsonis your site config. You write it; pypress never changes it. It is optional and has the shape of a VitePress config:{ "title": "My Docs", "titleTemplate": ":title - My Docs", "styles": ["custom.css"], "themeConfig": { "logo": "/logo.svg", "nav": [ {"text": "Guide", "link": "/guide/", "activeMatch": "^/guide/"}, {"text": "More", "items": [{"text": "Changelog", "link": "/changelog"}]} ], "sidebar": { "/guide/": [{"text": "Basics", "items": [{"text": "Install", "link": "/guide/install"}]}] }, "socialLinks": [{"icon": "github", "link": "https://github.com/you/repo"}], "footer": {"message": "Released under the MIT License."} } }
Without
themeConfig.navorthemeConfig.sidebar, pypress builds them from your folders. Saving the file reloads open pages. -
.pypress/index.jsonis the page index: titles, order and headings of all pages. pypress writes it and parses only files whose size or modification time changed. It is a cache; add.pypress/to your.gitignore.
An old pypress.json that still holds the page list is converted once at start.
See docs/usage/config.md for details.
Development
task init # Python, dependencies, pre-commit hooks
task serve-docs # serve this project's docs with pypress
task test # pytest with coverage
task lint # ruff + ty
task vendor # re-download the pinned browser assets
task vendor-theme -- ../site/node_modules # rebuild the vendored theme CSS
The project docs in docs/ describe the CLI, the frontmatter keys, the index file and the architecture. Vendored assets and their licences are listed in pypress/static/vendor/VENDOR.md.
Security
pypress binds to 127.0.0.1 by default and only serves files inside the docs
folder. Markdown may contain raw HTML, so only serve folders you trust. See
SECURITY.md.
Branching
See BRANCHING.md for the repository branch naming policy.
Metadata
Release files for pypress-toolkit 1.0.1
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 |
|---|---|---|---|---|
| pypress_toolkit-1.0.1.tar.gz | 2.7 MB | Without provenance | Details for pypress_toolkit-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypress_toolkit-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pypress_toolkit-1.0.1-py3-none-any.whl |
Total release size: 5.5 MB
Release files / pypress_toolkit-1.0.1.tar.gz
| Download URL | pypress_toolkit-1.0.1.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
340d25d57bb32286e0b27488bf3f2d077024b3028e6a9f053f8204d27d060afe
|
|
BLAKE2b-256 checksum How to use checksums |
fa00b7d548536e2ed644a7107462202f5089dd5b2dd98f948984676ce9cd8410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pypress_toolkit-1.0.1-py3-none-any.whl
| Download URL | pypress_toolkit-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e86c88c2a6e87aca02b40cc8801e7b6f8d51f14cfcf8d77344d691c646cdfeb
|
|
BLAKE2b-256 checksum How to use checksums |
718102ca6ec17d60c987fe652360428dd1ddae0ae841b244790f3ab46f0776e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pypress-toolkit 1.0.1
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.