医生狗。

docshund的Python项目详细描述


D o c s h u n d

生成简单的代码文档

NOTE: Docshund is in alpha and is not yet suitable for production workloads. Please exercise caution when using.

安装

pip3installdocshund

用法

docshund code.py > documentation.md

她做什么:

从这里开始:

classFoo:"""    This is a foo.    Do not cross the foo streams!    """def__init__(self):"""        Create a new foo.        """defcross_streams(self,other_foo:Foo=None):"""        Cross the streams of this foo with another foo.        If you do this, it will throw an error.        Arguments:            other_foo (Foo: None): The foo with which you'd like to cross streams        Returns:            None        Raises:            FooError: Raised if you cross the streams.        """ifother_foo:raiseFooError("What did we JUST tell you?!")

此降价:

## *Class* `Foo`


This is a foo.

Do not cross the foo streams!


## *Function* `__init__(self)`


Create a new foo.


## *Function* `cross_streams(self, other_foo: Foo = None)`


Cross the streams of this foo with another foo.

If you do this, it will throw an error.

### Arguments
> - **other_foo** (`Foo`: `None`): The foo with which you'd like to cross streams

### Returns
    None

### Raises
> - **FooError** (`None`: `None`): Raised if you cross the streams.

Foo

这是一个foo。

不要横渡溪流!

函数__init__(self)

创建一个新的foo。

函数cross_streams(self, other_foo: Foo = None)

穿过这条河和另一条河。

如果你这样做,它会抛出一个错误。

参数

  • other_foo (Foo: None): The foo with which you'd like to cross streams

返回

None

升高

  • FooError (None: None): Raised if you cross the streams.

生成此存储库的文档

此存储库的参考文档是使用以下命令生成的:

docshund docshund/__init__.py > docs/Reference.md

你可能会说我们…吃我们自己的狗粮。


法律

根据Apache2.0授权。向opensource@fitmango.com提问。

Copyright 2019 FitMango.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this codebase except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


?用制成

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
字符串Java字母替换无效   java Spring Roo JPA MS SQL Server无法打开JPA EntityManager组织。冬眠例外GenericJDBCException:无法打开连接   在scala中使用JavaWS对大型数据文件进行java流式处理   Java编译器是否将字节和短字符识别为文本?   java无法查找符号错误,空指针   mongodb在Java中重用数据库连接   java将多个StringArray从字符串文件获取到活动中   java是一个变量,它只保存最后一次鼠标单击的坐标   c#尺寸有限;添加、删除和洗牌   java如何在Android中显示来自资产文件夹的文本文件中的文本   Android应用程序中的java Tensorflow Lite自定义对象检测模型错误   java如何在foreachloop中使用scanner将来自命令行的输入存储到数组中   java如何定义一个好的存储库接口   Android中的java解析动态json对象