各种命令行界面实用程序。-与readline相关的实用程序-增强的命令shell-使用外部编辑器编辑文本-使用寻呼机显示长文本
tl.cli的Python项目详细描述
各种命令行界面实用程序。
这个包需要Python2,至少是2.5。
tl.cmd:增强的命令shell
tl.cmd.Cmd是基于python的cmd.Cmd的命令shell,它添加了一些 通用的可用性特性,其中一些只是开发人员感兴趣的特性。
- 捕获异常而不是中止命令循环。回溯是 存储以供后期调试器进行后续自省。调试器 由postmortem命令运行。
- python命令运行一个python shell来访问命令解释器 直接的。
- 终端发送的文件结束将退出命令循环。
- 将忽略空的输入行,而不是重复前面的命令。
- 只要缩写不含糊,命令就可以缩写。
- 使用制表符补全时,光标的定位更加方便。
- 命令的联机帮助是从^{tt16}的docstrings生成的$ 在没有{Tt17} $方法的情况下实现它们的方法。
tl.cli.edit:文本编辑
^{tt19}$: | |
---|---|
Runs the user’s favourite text editor (or vi) on a temp file containing the text string, then reads it back in and returns the edited content. |
tl.cli.page:在文本中分页
^{tt21}$: | |
---|---|
Runs the user’s favourite pager (or more) on a text string or stream which is sent to the pager’s standard input. | |
^{tt22}$: | |
Runs the user’s favourite pager (or more) on a file whose path is passed to the pager as its only argument. |
联系人
这个包裹是托马斯·洛兹写的。请联系作者 <;thomas@thomas-lotze.de>;提供反馈、建议或贡献。
另请参见<;http://www.thomas-lotze.de/en/software/>;。