键入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许可证授权的。在

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

推荐PyPI第三方库


热门话题
构造函数的java条件调用   类Dog中的java构造函数Dog不能应用于给定类型   java jsch和运行“sudo su”   java将队列和堆栈相互复制   java如何在netbeans项目的文件夹中添加库   java While循环在我的代码中不存在   如何在XML中使用java方法的返回值   java是否可以在不写入文件的情况下将字符串/字节数组作为文件发布?   java为什么这些字符串不相等?   sockets客户机-服务器java编程,用户可选择   java如何在SpringMVC和hibernate中保存模型返回视图的列表   java如何修复组织。openqa。硒。WebDriverException:未知错误   Java,Ant错误:编码Cp1252的不可映射字符   JAVAlang.ClassCastException:[Ljava.lang.String;与java.lang.String不兼容   java如何使用JDK8(可选)为空字段创建自定义IntelliJ getter模板   java Tomcat6响应。sendRedirect()404错误