Python Manual Auto Generate Program, worked with QAHelper
Note that you need to add in the specified format
Hate writing documents
- Generate manual documents
- Command quick search
pip install QAManual
- cd to the root path of your project
- execute the following command
qaman -init .
Of course you should write __doc__
as a specific way as the following code
from QAManual import FunctionParser
from QAManual import MarkdownWriter
def example_func(code, source):
"""
QAMAN
explanation:
此函数用于在ctp和通达信之间来回转换
params:
* code ->
含义: 测试用例
类型: str
参数支持: []
* source ->
含义: 需要转换到的目标
类型: List
参数支持: ["pytdx", "ctp"]
demonstrate:
example_func("你好", "somewheve")
output:
>>somewheve --> 你好
"""
print(source, "-->", code)
if __name__ == '__main__':
parser = FunctionParser(example_func)
writer = MarkdownWriter(parser.union.__name__, parser.get_node(), language="zh")
writer.handle()
- According to the specified template
- Build search command ( Can you teach me algorithm )
- Structured
- Generate documentation
- Chinese and English support(Only supports a single)
Author: somewheve