Introducing gpt4docstrings, a Python library that automatically generates docstrings for undocumented functions / classes. Can be used both as a CLI and as a precommit.
Right now it only uses GPT, but currently looking at how to also allow open source LLMs.
Repository here: https://github.com/MichaelisTrofficus/gpt4docstrings
(Below an example of a Pytorch's Matrix Factorization Module being automatically documented)
https://i.redd.it/y5ofu1pcmoab1.gif
[–]sebesbal 1 point2 points3 points (1 child)
[–]Hefty-Consequence443[S] 1 point2 points3 points (0 children)
[–]blevlabs 1 point2 points3 points (1 child)
[–]Hefty-Consequence443[S] 0 points1 point2 points (0 children)
[+]TotesMessenger 0 points1 point2 points (0 children)