Skip to main content

rstbuddy

A Python command-line tool for working with reStructuredText (RST) files. Provides comprehensive link validation, RST file cleaning and fixing, and optional AI-powered summarization capabilities.

Related packages

  • restructuredtext-lint: This seems to be for when you want to write your README in RestructuredText, and want to ensure that PyPI will process it properly for you without errors. So it has a bunch of thing in it that we don't need for uploading to readthedocs, but definitely check it out. Note that it is a linter, not a fixer like this package is.

Core Features

RST Link Checking

  • External HTTP(S) links with concurrent checking and robots.txt support
  • Sphinx cross-references (:ref:, :doc:)
  • Directive paths (include, literalinclude, download, image, figure, thumbnail)
  • Smart scanning that ignores code blocks while preserving admonitions

RST File Cleaning & Fixing

  • Markdown to RST conversion (headings, code blocks, inline code)
  • Heading normalization and list spacing fixes
  • Code block and directive formatting
  • Stray Markdown fence removal

AI-Powered Summarization (Optional)

  • RST to Markdown conversion using Pandoc
  • AI summary generation with OpenAI API
  • Requires OpenAI API key configuration

Quick Start

Requirements

  • Python 3.11 or later
  • Pandoc (optional, for AI summarization)
  • OpenAI API key (optional, for AI summarization)

Installation

# Install
pip install rstbuddy

# With uv
uv tool -p 3.13 install rstbuddy

Usage

# Check all links in default doc/source directory
rstbuddy check-links

# Fix formatting issues in an RST file
rstbuddy fix document.rst

# Generate AI summary (requires OpenAI API key)
rstbuddy summarize document.rst

# Show help
rstbuddy --help

Commands

  • check-links: Validate external URLs, internal references, and file paths
  • fix: Clean and fix RST formatting issues, convert Markdown constructs
  • summarize: Generate AI-powered summaries (requires OpenAI API key)
  • settings: Display current configuration settings
  • version: Display version info for important packages used by rstbuddy (for bug reports)

Common Use Cases

  • Documentation Maintenance: Validate links and fix formatting before publishing
  • Quality Assurance: Check for broken references and maintain consistent RST formatting
  • Content Migration: Convert Markdown to RST and fix common formatting issues

Documentation

For detailed usage, configuration, and troubleshooting, see the full documentation.

Metadata

Release files for rstbuddy 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rstbuddy 0.4.0
File Size Uploaded Provenance
rstbuddy-0.4.0.tar.gz 99.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rstbuddy 0.4.0
File Interpreter ABI Platform
rstbuddy-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 424.0 kB

Release files / rstbuddy-0.4.0.tar.gz

Download URL rstbuddy-0.4.0.tar.gz
Size 99.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2ad8865c6e8c6f1ebd79e188f3ea1a7b1fdac82090ddc40090d28a73e32ad87e
BLAKE2b-256 checksum
How to use checksums
923a718ac297ca808d8974cd001f5c92ec521002898cff25f39b5b7e07350ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Release files / rstbuddy-0.4.0-py3-none-any.whl

Download URL rstbuddy-0.4.0-py3-none-any.whl
Size 324.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ff2d5765766dd4b4ca8b1e95e1cf94b54f8a3050cabf0a573266a943e017dcd
BLAKE2b-256 checksum
How to use checksums
9d9794ccc801a94ce9e7d906bd59c4d270e1dcccc01764c467e30e74dce68cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.10

Security for rstbuddy 0.4.0

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.

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