fasttyper/README.md
2021-07-11 02:34:53 +02:00

28 lines
1.3 KiB
Markdown

# fasttyper
[![](https://github.com/ickyicky/fasttyper/blob/main/doc/example.png?raw=true)](https://github.com/ickyicky/fasttyper)
# About
_Fasttyper_ is minimalistic typing test based on user provided exercising text. It supports both reading from text files and stdin supporting wide range of usecases.
# Usage
_Fasttyper_ is ran as an python module, so to execute it simply type:
`python3 -m fasttyper`
from cloned github repository. Without any argument program waits for user to enter text manually and then signal the end of it with keyboard interrupt (CTRL+C). _Fasttyper_ can open text files, which path should be provided as first and only argument to the module execution, for example:
`python3 -m fasttyper example_text.txt`
Program also allows user to pipe text into it. Keep in mind, it only supports spaces and new line characters, so you won't be able to table tabs. For example, you can run _Fasttyper_ on fortune generated quote changing tabulators to spaces with sed:
`furtune | sed 's/\t/ /g' | python3 -m fasttyper`
or if you want to randomize words from given file with shuf, and then keep them in the same line, replacing new lines with spaces using sed, on for example all disctionaries in system:
`shuf -n5 /usr/share/dict/* | sed ':a;N;$!ba;s/\n/ /g' | python -m fasttyper`
# Known issues
Too large text brakes the app.