pytyper is a Python library that provides the user with basic functions that deal with typing and typing tests. A few of many functions include calculating WPM and accuracy.
Not only does pytyper implement typing calculations, it also implements string modification, comparison, and number formatting.
pip install pytyper
A proof-of-concept CLI tool is hosted at:
https://github.com/greysonDEV/typeshell-cli
pytyper is licensed under the MIT License.