LLM-powered documentation tool
Project description
lovethedocs
Polish your Python docs in 30 seconds.
Why lovethedocs?
Make your docs awesome. It takes ~30 seconds (API calls) and costs 10¢ on small repos.
- One‑command upgrades –
lovethedocs update path/ - Choose your style –
NumPy(default) orGooglewith-s/--style - Non‑destructive – edits live in
.lovethedocs/until you accept them - Parallel & fast – set
-c/--concurrencyfor 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
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 lovethedocs-0.2.8.tar.gz.
File metadata
- Download URL: lovethedocs-0.2.8.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f794fc13ca6021f8a3260b82b5724f03ca6278a5d857a85b5136f28d68f2b7
|
|
| MD5 |
0954ca9a96d8fa4bac869110c5e9afc0
|
|
| BLAKE2b-256 |
9ba742834eb757f3255df839ca12ff679573f84f56d826bd3c9614cd18875488
|
File details
Details for the file lovethedocs-0.2.8-py3-none-any.whl.
File metadata
- Download URL: lovethedocs-0.2.8-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4394205a9410d8506b979898b13041b63c0d3ba908fed11b9c544efe677457c0
|
|
| MD5 |
0eba9d1db147d2b762eb1eccb6337151
|
|
| BLAKE2b-256 |
37735e9503e8fe485a606632f65f28b0d950bdbafc1668054f0896791d51f5ff
|