Skip to main content

LLM-powered documentation tool

Project description

lovethedocs

Polish your Python docs in 30 seconds.

Why lovethedocs?

Make your docs excellent. It takes ~30 seconds (API calls) and costs 10¢ on small repos.

  • One‑command upgradeslovethedocs update path/
  • Choose your styleNumPy (default) or Google with -s/--style
  • Non‑destructive – edits live in .lovethedocs/ until you accept them
  • Parallel & fast – set -c/--concurrency for multiple requests at once

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 one file lovethedocs update 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.9.tar.gz (28.1 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.9-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lovethedocs-0.2.9.tar.gz
  • Upload date:
  • Size: 28.1 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.9.tar.gz
Algorithm Hash digest
SHA256 4ad3f1a5dd837c73af0daba177dd264ee1318d5e798becd763dc53de57e5431c
MD5 c3ac1a638f4533f23ce15eca86a4b05c
BLAKE2b-256 631150bb088a18d33a433b7bc4dd8798abc24c399b83e86291c1354025b54cf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lovethedocs-0.2.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 92a138fad5f1f999df6199ef685e6700057f89d85c8f46574603bbfc0e312779
MD5 8eb6230a9051884a432569a5499a35b4
BLAKE2b-256 026a1e0ccde2601d5e81a5d28ff0907acc35f23da782fd7df711bb5ac5a346b6

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