git clone https://github.com/Drwaish/DebugAndDocstringPrompt.git
cd DebugAndDocstringPrompt
Install dependencies
Paste openai api key for smooth running of code.
Open Repository in Visual Studio Code.
For locally test lambda function.
python lambda_function.py
For remotely test lambda function.
Follow following steps
Enter url in 'URL' variable
Paste your code in 'code' variable
Uncomment your request choice
Timeout for POST request is 5 seconds. If Internet connection is slow increase timeout span. Then
python script.py
Debug Function
User hit the lambda function with this payload.
Payload
Write Docstring
Write Docstring in Numpy Style
Payload return the docstring in google style.
Write Docstring in Google Style
Payload return the docstring in google style.
Important Note:
Use script.py to test your lambda.
Deploy on AWS Lambda and automate your work.
Like this project
Posted Dec 24, 2023
lambda function to debug and docstring writing in two different styles Numpy and Google style. - GitHub - Drwaish/DebugAndDocstringPrompt: lambda function to …