Skip to main content

LLM-powered documentation tool

Project description

lovethedocs

Polish your Python docs in 30 seconds.

Make your docstrings excellent with a single command. It’s fast (~30s), cheap (~10¢ for small repos), and non-destructive.

  • One‑command upgradeslovethedocs update path/
  • Choose your styleNumPy (default) or Google with -s/--style
  • Safe by defualt – edits live in path/.lovethedocs/ until you accept them
  • Parallel & fast – set -c/--concurrency to speed things up

Quick start

pip install lovethedocs

# 1. Get an OpenAI API key (https://platform.openai.com) and set it:
export OPENAI_API_KEY=sk-...

# 2. Stage docstrings for your project (NumPy style):
lovethedocs update path/to/project/

# ...or choose Google style and review in one shot with 8 workers:
lovethedocs update -s google -r -c 8 path/to/project/

Review & clean

lovethedocs review path/to/project/   # open diffs in your viewer
lovethedocs clean  path/to/project/   # wipe staged edits

Tested on macOS; supported diff viewers: cursor, code, git, terminal. Help adding others is welcome!

🎯 Example

Before:

def process_data(data, threshold):
    # Process data according to threshold
    result = []
    for item in data:
        if item > threshold:
            result.append(item * 2)
    return result

After:

def process_data(data: list, threshold: float) -> list:
    """
    Filter and transform data based on a threshold value.

    Parameters
    ----------
    data : list
        The input data list to process.
    threshold : float
        Values above this threshold will be processed.

    Returns
    -------
    list
        A new list containing doubled values of items that exceeded the threshold.
    """
    result = []
    for item in data:
        if item > threshold:
            result.append(item * 2)
    return result

CLI cheatsheet

Goal Command
Update and review lovethedocs update -r my_module.py
Use Google style lovethedocs update -s google path/
Speed up (16 workers) lovethedocs update -c 16 path/
Force terminal diff lovethedocs review -v terminal path/

Contributors welcome

Issues, discussions, and PRs are encouraged—especially new doc styles, diff viewers, or provider integrations. Open an issue to get started.


lovethedocs is free to install; LLM calls are billed by OpenAI at your usage rates.

📄 License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

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

lovethedocs-0.2.10.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

lovethedocs-0.2.10-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file lovethedocs-0.2.10.tar.gz.

File metadata

  • Download URL: lovethedocs-0.2.10.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lovethedocs-0.2.10.tar.gz
Algorithm Hash digest
SHA256 0859d96150c94f244692c841e1b164b0b0e2889f2195d88075166758bad1c347
MD5 ea59e6be0a24bf993cd543192eec9e9f
BLAKE2b-256 0a8cf2735e446d97c4d0f3391040b69683ed13797020b9ea237a9eb13d1ad30f

See more details on using hashes here.

File details

Details for the file lovethedocs-0.2.10-py3-none-any.whl.

File metadata

  • Download URL: lovethedocs-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lovethedocs-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8d4113c4397e63e96a4b573ed2a2fe143e952b7d9ced6cd4a3bdb4a5d3928b1d
MD5 30dce19fe1b24f8384a3c45611de48a2
BLAKE2b-256 795c93d3ef5266ebe2596c8c86f8d02d1cbe9b45b353d9dc8422001adbbe5367

See more details on using hashes here.

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