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 upgrades –
lovethedocs update path/ - Choose your style –
NumPy(default) orGooglewith-s/--style - Safe by defualt – edits live in
path/.lovethedocs/until you accept them - Parallel & fast – set
-c/--concurrencyto 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.
Metadata
Release files for lovethedocs 0.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lovethedocs-0.2.10.tar.gz | 28.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lovethedocs-0.2.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.1 kB
Release files / lovethedocs-0.2.10.tar.gz
| Download URL | lovethedocs-0.2.10.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0859d96150c94f244692c841e1b164b0b0e2889f2195d88075166758bad1c347
|
|
BLAKE2b-256 checksum How to use checksums |
0a8cf2735e446d97c4d0f3391040b69683ed13797020b9ea237a9eb13d1ad30f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / lovethedocs-0.2.10-py3-none-any.whl
| Download URL | lovethedocs-0.2.10-py3-none-any.whl |
|---|---|
| Size | 39.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d4113c4397e63e96a4b573ed2a2fe143e952b7d9ced6cd4a3bdb4a5d3928b1d
|
|
BLAKE2b-256 checksum How to use checksums |
795c93d3ef5266ebe2596c8c86f8d02d1cbe9b45b353d9dc8422001adbbe5367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for lovethedocs 0.2.10
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.