llm-docsmith
Generate Python docstrings automatically with LLM and syntax trees.
Installation
Install this plugin in the same environment as LLM.
llm install llm-docsmith
Usage
Pass a Python file as argument to llm docsmith:
llm docsmith ./scripts/main.py
The file will be edited to include the generated docstrings.
Options:
-m/--model: Use a model other than the configured LLM default model-o/--output: Only show the modified code, without modifying the file-v/--verbose: Verbose output of prompt and response--git: Only update docstrings for functions and classes that have been changed since the last commit--git-base: Git reference to compare against (default: HEAD)--only-missing: Only add docstrings to functions and classes that don't have them yet
Only Missing Mode
The --only-missing flag tells docsmith to only generate docstrings for functions and classes that don't already have one. This is useful when you want to preserve existing docstrings and only add documentation where it's missing:
# Only add docstrings where they are missing
llm docsmith ./scripts/main.py --only-missing
Git Integration
The --git flag enables Git integration, which will only update docstrings for functions and classes that have been changed since the last commit.
This is useful for large codebases where you only want to update docstrings for modified code.
# Update docstrings only for changed functions and classes
llm docsmith ./scripts/main.py --git
It's also possible to compare against a different git reference to find changed, for instance the main branch:
# Compare against a specific Git reference
llm docsmith ./scripts/main.py --git --git-base main
Metadata
Release files for llm-docsmith 0.3.1
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 | |
|---|---|---|---|---|
| llm_docsmith-0.3.1.tar.gz | 17.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_docsmith-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.0 kB
Release files / llm_docsmith-0.3.1.tar.gz
| Download URL | llm_docsmith-0.3.1.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb83aa3729342d6cddbbd64b56d92f737a20fc9646a28e7ff5e80abc136e3cd3
|
|
BLAKE2b-256 checksum How to use checksums |
b1d5c4a630390fdae47adcb7cf0b0dc1eb9ea65dc1b7bede6daf704a75e7cb5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2025.
Transparency logRelease files / llm_docsmith-0.3.1-py3-none-any.whl
| Download URL | llm_docsmith-0.3.1-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ae958366073aa335200e6cd85560aa96c595efc85167692bf89b907a0c8cefa
|
|
BLAKE2b-256 checksum How to use checksums |
94578644ca52ef5077cf5ed2f05b17aa1cc88027da47983d1150a9ad3a90468d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2025.
Transparency logSecurity for llm-docsmith 0.3.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for llm_docsmith-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2025.
Transparency logA 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.