Skip to content

Python API Reference

This section contains the auto-generated API documentation for the Python implementation of Logseq Doctor.

The Python package provides:

  • API Client (logseq_doctor.api): Logseq API client for interacting with your graph
  • CLI (logseq_doctor.cli): Command-line interface implementation
  • Constants (logseq_doctor.constants): Shared constants and configuration

Installation

Bash
pip install logseq-doctor

Or with uv:

Bash
uv add logseq-doctor

Usage

Python
from logseq_doctor.api import Block, LogseqClient

# Use the API client
client = LogseqClient(path="/path/to/graph")

Or use the CLI:

Bash
lqdpy --help