I made this tool to improve code quality without much headache.
Have GEMINI_API_KEY defined in your PATH. You can do this by following these steps.
pip install autodocstringRun this to generate docstrings to all your public methods at the desired python module.
autodocstring path/to/fileYou may also want to target specific methods by using the --methodsparameter. The tool generates a backup file by default.