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:
TIDYPRESS_CLI_JS- local
node_modules/tidypress tidypressonPATH
It does not use 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|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>
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 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tidypress-1.0.14.tar.gz.
File metadata
- Download URL: tidypress-1.0.14.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa3c2602fd811e90cedad56457169d77decb0eb1503986eaf4ef075ee006e9f7
|
|
| MD5 |
75cb232c1d0f197c96a33745a4d1dabd
|
|
| BLAKE2b-256 |
241deb5186a7774bd2f575556523f7060b95abb5afaa7a58aea74f0b646be608
|
Provenance
The following attestation bundles were made for tidypress-1.0.14.tar.gz:
Publisher:
publish.yml on Raphjacksun7/tidypress
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tidypress-1.0.14.tar.gz -
Subject digest:
aa3c2602fd811e90cedad56457169d77decb0eb1503986eaf4ef075ee006e9f7 - Sigstore transparency entry: 1659053737
- Sigstore integration time:
-
Permalink:
Raphjacksun7/tidypress@0a15c806d904b649bd8b14c586f46be944de7e04 -
Branch / Tag:
refs/tags/v1.0.14 - Owner: https://github.com/Raphjacksun7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0a15c806d904b649bd8b14c586f46be944de7e04 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tidypress-1.0.14-py3-none-any.whl.
File metadata
- Download URL: tidypress-1.0.14-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ff34ed297a3942cc285cb90729aa8cbc6d747f2b4604eb6d8900f88ad3b48c7
|
|
| MD5 |
c312139aeba8575f48848f9dcd05d034
|
|
| BLAKE2b-256 |
08331fd98b93d67b8b57ca678b20bbf74e05f67fb6ccebbefee577010c4ed6c4
|
Provenance
The following attestation bundles were made for tidypress-1.0.14-py3-none-any.whl:
Publisher:
publish.yml on Raphjacksun7/tidypress
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tidypress-1.0.14-py3-none-any.whl -
Subject digest:
5ff34ed297a3942cc285cb90729aa8cbc6d747f2b4604eb6d8900f88ad3b48c7 - Sigstore transparency entry: 1659053847
- Sigstore integration time:
-
Permalink:
Raphjacksun7/tidypress@0a15c806d904b649bd8b14c586f46be944de7e04 -
Branch / Tag:
refs/tags/v1.0.14 - Owner: https://github.com/Raphjacksun7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0a15c806d904b649bd8b14c586f46be944de7e04 -
Trigger Event:
push
-
Statement type: