Skip to main content

Python interface for the TidyPress Node.js CLI.

Project description

tidypress (Python)

Python entrypoint for TidyPress.

A publishing framework for Git-native authorship.

Rendering uses the Node.js CLI and Astro engine. Node.js 22.12 or newer is required for site commands.

Install

pip install 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 use npx by default.

Site commands

These commands are delegated to the Node CLI (same as npx tidypress):

tidypress init [--preset lab|blog|persona|docs-writing|custom]
tidypress dev
tidypress build
tidypress preview
tidypress clean
tidypress deploy
# llms.txt is written on every build (build/llms.txt)
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>

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 docs/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, custom) from the same metadata as @tidypress/config.

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: docs/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

Project details


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.12.tar.gz (18.6 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.12-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tidypress-1.0.12.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tidypress-1.0.12.tar.gz
Algorithm Hash digest
SHA256 d0e1e0f9e97a292aa9bce57bf2a7da974db2ab732f08a2fe2610d78c06a3791d
MD5 9f9af6a56ba4d3e8c8d1196d8d7d727d
BLAKE2b-256 01ec0bf8af59b9c39edaba25374c14957946a5fd1c5d9dfc3aa441122625b62d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidypress-1.0.12.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.12-py3-none-any.whl.

File metadata

  • Download URL: tidypress-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tidypress-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e935da2066d6211df5a18235d0ac38ca720a37a7612a12e8750da8c4c3c1e785
MD5 056e40b586ce60df2b171f50736f172c
BLAKE2b-256 a8a2f65f169e8d9ca2da5a26c3da3731c55bfd0adfe40f28bc94cd2b65312c1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidypress-1.0.12-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page