--Ported to Sublime Text 3 from https://github.com/JerryKwan/Sublime-Text-2-pydocstring--
a Sublime Text 3 plugin to automatic generate docstring for module/class/function
docstring.py is a python docstring plugin, you can use this plugin to generate docstring for the module, class or function automatically.
Clone this repo into your sublime 3 packages folder.
Click on the position you want to generate docstring, but do not select anything, you could define key bindings or menu entries to use this plugin easy and quick
I've added this to my User Key Bindings:
{"keys": ["ctrl+alt+s"], "command": "docstring"}
...and this to Context.sublime-menu, which allow context menu access:
{ "command": "docstring", "caption": "Generate Docstring"}