An AI docstring generator because I find writing docstrings a big bore. Now has support for Python, Rust, C & it's header files, C++ & it's header files, JavaScript, TypeScript & Java.
- CLone the repository and create a
.envfile
git clone https://github.com/AalbatrossGuy/DocNerd.git
cd DocNerd
touch .env
- Set
GROQ_API_KEY=<api-key>in.envorexport GROQ_API_KEY=<api-key>
- Make sure the file is structured like this:
# DOCSTRING START
def func(a, b):
<do-something>
# DOCSTRING END- If the file is called
python_file.py, then do
python3 docnerd.py python_file.py
If you want to rewrite existing docstrings, do
python3 docnerd.py python_file.py --replace-existing-docstring
- For knowing what other parameters are there, do
python3 docnerd.py --help.


