键入test CLI工具。
typeshell的Python项目详细描述
typeshell命令行
说明
typeshell cli是一个Python命令行接口工具,它是作为一个Python类型测试包pytyper概念的证明而编写的。在
安装
pip install typeshell
使用
基本用法
^{pr2}$位置参数
create create typing session
count number of prompts in session
{proverbs, shakespeare}
type of prompts in session
可选参数
-h, --help show this help message and exit
-V, --version show program version
-v, --verbose increase output verbosity
示例
使用3条谚语创建打字会话:
typeshell create 3 proverbs
在输入会话开始之前,需要确认输入:
*-------[Generating session]-------*
Prompts:
3
Type:
proverbs
*------[Press enter to begin]------*
会话开始时,shell窗口将被清除,只显示输入的提示和空格:
Grief divided is made lighter.
请注意,按enter键后计时器将立即启动。要退出当前会话,请通过KeyboardInterrupt
停止shell进程。在
输出
完成一个会话后,该会话的平均统计信息将可见:
*-------[Finished session]-------*
Average statistics:
Gross-WPM: 71.978
Net-WPM : 58.446
Accuracy : 0.95
Errors : 2.334
Time : 8.102
*----------------------------------*
在创建键入会话时指定--verbose
将为每个提示的输出提供用户的输入,以及指示用户输入错误的附加行。在
> Grief divided is made lighter.
$ Grief divided is made lighter.
> A ship in the harbor is safe, but that is not what a ship is for.
$ A ship in the harbor is safe, hut that is not what a ship is for
^ ^
> Every man is the architect of his destiny.
$ Ebery man is the architext of his deinrny.
^ ^ ^^^
许可证
typeshell是根据MIT许可证授权的。在
- 项目
标签: