如何将 Python 文档字符串转换为不同的样式?

How do I convert Python docstrings to a different style?

我正在开发一个使用 Google style Python docstrings, and I would like to convert them automagically to numpy style.

的代码库

是否有这样做的自动工具?

快速 Google 搜索显示 pyment,但我不确定这是否合适。

pyment 绝对看起来像这个工作的工具,因为它声明它可以在 numpydoc 和 google 文档字符串之间双向转换。

Currently, the managed styles in input/output are javadoc, one variant of reST (re-Structured Text, used by Sphinx), numpydoc, google docstrings, groups (other grouped style).