def write(view, string):
    view.run_command('insert_snippet', {'contents': string})
Writes a string to the view as a snippet.
dataset/ETHPy150Open adambullmer/sublime_docblockr_python/commands.py/write