Skip to main content

Typing test CLI tool.

Project description

typeshell-cli

Description

typeshell-cli is a Python command-line-interface tool that was written as a proof-of-concept of pytyper, a Python typing test package.

Installation

pip install typeshell

Usage

Basic Usage

typeshell [-h] [-V] [-v] create count {proverbs, shakespeare}

Positional Arguments

create                 create typing session
count                  number of prompts in session
{proverbs, shakespeare}
                       type of prompts in session

Optional Arguments

-h, --help             show this help message and exit
-V, --version          show program version
-v, --verbose          increase output verbosity

Examples

To create a typing session with 3 proverbs:

typeshell create 3 proverbs

A confirmation input is needed before the typing session begins:

*-------[Generating session]-------*
              Prompts:              
                 3                  
               Type:                
              proverbs              
*------[Press enter to begin]------*

When the session begins, the shell window will be cleared, only displaying the prompt and space for an input:

Grief divided is made lighter.

Be aware, the timer starts immediately after pressing enter. To exit the current session, stop the shell processes via KeyboardInterrupt.

Output

Upon finishing a session, the average statistics for that session will be visible:

*-------[Finished session]-------*
Average statistics:

Gross-WPM: 71.978
Net-WPM  : 58.446
Accuracy : 0.95
Errors   : 2.334
Time     : 8.102
*----------------------------------*

Specifying --verbose when creating a typing session will provide an output of each prompt with the user's input, along with an additional line which indicates the errors in the user's input.

> 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.
   ^                      ^           ^^^  

License

typeshell is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typeshell-0.1.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

typeshell-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file typeshell-0.1.2.tar.gz.

File metadata

  • Download URL: typeshell-0.1.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1

File hashes

Hashes for typeshell-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e58eca16b639b4ee1f0eb38033500caa67ff6a464ed0d23b81c58d414970b1db
MD5 02f95330948a1ac0aff15a418c4511b3
BLAKE2b-256 75735e7b5670d4441b0ca209f4741a6620b6ea16ed168e719192ad84490d2caf

See more details on using hashes here.

File details

Details for the file typeshell-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: typeshell-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1

File hashes

Hashes for typeshell-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83ccf5ac63f78c4c0aeb77fae5970121c61c72954edfdb149a6cbc41934f9704
MD5 8aafa2ae9a51c193d5f9f41cd0f0520e
BLAKE2b-256 ed1aee200aea628b6f29d6bd6920a33fb1ec7b55bced3210ffe3b4b7e312f634

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page