Skip to main content

tidypress (Python)

Optional Python companion for TidyPress.

A publishing framework for Git-native authorship.

The Python package provides native notebook conversion and source extraction. It is not a second site renderer or a replacement for the npm package. Rendering uses the Node.js CLI and Astro engine; Node.js 22.12 or newer is required for site commands.

Install

pip install tidypress

That is sufficient for convert and extract-docs. To run site commands from the Python entrypoint, install the Node CLI separately in the project or globally:

npm install tidypress
# or: npm install --global tidypress

For site commands, the wrapper resolves the Node CLI in this order:

  1. TIDYPRESS_CLI_JS
  2. local node_modules/tidypress
  3. tidypress on PATH

It does not download or invoke packages through npx by default.

Site commands

These commands are delegated to the Node CLI — same surface as npx tidypress:

tidypress init [--preset lab|blog|persona|docs-writing|body-of-work|body-of-work-docs|custom]
tidypress dev
tidypress build
tidypress preview
tidypress clean
tidypress deploy
tidypress import devto <url-or-slug>   # real fetch; other providers write scaffolds
tidypress doctor
tidypress migrate-sections
tidypress add-version <label>
tidypress domain setup [domain] --platform <platform>
tidypress release-check

Every tidypress build writes build/llms.txt.

Experimental Node commands (editor, export, ai) are also forwarded when enabled in config.

Python-native commands

convert turns a notebook into MDX:

tidypress convert analysis.ipynb --output site/src/content/docs/analysis.mdx

It preserves frontmatter, markdown cells, code cells, text output, and PNG image outputs.

extract-docs writes simple API notes from source comments:

tidypress extract-docs src/ --lang py
tidypress extract-docs src/ --lang ts
tidypress extract-docs src/ --lang go

Help and init presets

tidypress --help
tidypress init --help

The Python wrapper prints init preset summaries (lab, blog, persona, docs-writing, body-of-work, body-of-work-docs, and custom) from the same metadata as @tidypress/config. default aliases lab.

Streaming build and deploy

build and deploy use an async subprocess with live stdout/stderr. Pass --sync to use the blocking path instead.

YAML bridge

tidypress.yaml is validated against the shared JSON Schema shipped with @tidypress/config (bundled in this package under tidypress/schemas/).

The wrapper supports reading tidypress.yaml / tidypress.yml and bridging command-scoped args from:

python:
  convert:
    input_path: analysis.ipynb
    output_path: site/src/content/docs/analysis.mdx
    watch: true

Use an explicit config when needed:

tidypress convert --config ./tidypress.yaml

Full docs: https://tidypress.pages.dev/docs/python

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tidypress-1.0.18.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tidypress-1.0.18-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file tidypress-1.0.18.tar.gz.

File metadata

  • Download URL: tidypress-1.0.18.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tidypress-1.0.18.tar.gz
Algorithm Hash digest
SHA256 ffaa50953275e9de51d648c7e1d04d67def4602d8f3da00e83c5e184fb76fbf4
MD5 66e22b1ccd50702a6f17226036d8e89b
BLAKE2b-256 7a1834b6851307edb5942a6e88b9fa7e517d91dd5da4295daab6237ceb492a00

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidypress-1.0.18.tar.gz:

Publisher: publish.yml on Raphjacksun7/tidypress

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidypress-1.0.18-py3-none-any.whl.

File metadata

  • Download URL: tidypress-1.0.18-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tidypress-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 7286fe8b1f24cd648ed006cd40829e9a43e3924793899a39301cd1e12da7a09d
MD5 079e356643467e2e4ca769ea9cc97f8a
BLAKE2b-256 08eb2599e65bb9897bc59130af433bdd4e3955d7bc85951a19e770ffef7aecbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidypress-1.0.18-py3-none-any.whl:

Publisher: publish.yml on Raphjacksun7/tidypress

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.19

2 files

This release

1.0.18 This release

2 files

1.0.16

2 files

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.7

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