microcli:用于 python 的超轻量级 CLI 库

时间:2021-07-01 14:06:34
【文件属性】:
文件名称:microcli:用于 python 的超轻量级 CLI 库
文件大小:14KB
文件格式:ZIP
更新时间:2021-07-01 14:06:34
Python 微CLI python MicroCLI 的最小 CLI 框架提供了一种简单的方法来创建可以执行多个相关操作的命令行实用程序。 是可以加、减和计算对数的计算器。 这是在example.py实现的 安装 pip install microcli 或者 - 如果你想要最前沿的 - pip install -e git+git@github.com:neumark/microcli.git@master#egg=microcli 示例用法 要在一个非常简单的示例上演示 API,请考虑名为 foobar.py 的文件中的以下代码: #!/usr/bin/env python from microcli import MicroCLI , command class FooBarCommand ( MicroCLI ): @ command () def foo ( se
【文件预览】:
microcli-master
----setup.py(1KB)
----.gitignore(682B)
----publish.sh(90B)
----.travis.yml(192B)
----LICENSE(11KB)
----setup.cfg(40B)
----requirements-test.txt(10B)
----example.py(1KB)
----README.md(1KB)
----microcli.py(27KB)

网友评论