measure_text_entry_performance
MeasureTextEntryPerformance is a Python library designed to measure and record text entry performance. It tracks typing activities, including the addition of new inputs, deletions, and the end of phrases. The library exports the data in a structured format for further analysis.
Usage
To measure the performance of text entry:
- Initialize the MeasureTextEntryPerformance class with a set of phrases.
- Call the add_new_input method whenever there's a new input.
- Call the add_delete method when a deletion occurs.
- Call the end_phrase method when a phrase is completed.
- Use the export method to retrieve the recorded data in a structured format.
example
# Initialize the library with a set of phrases
mtep = MeasureTextEntryPerformance(["hello world", "python is great"])
# simulates ambiguous enty
mtep.add_new_input(None)
mtep.add_new_input(None)
mtep.add_new_input("hello")
mtep.add_new_input(None)
mtep.add_new_input(None)
mtep.add_new_input("world")
mtep.end_phrase("hello world")
mtep.add_new_input(None)
mtep.add_new_input(None)
mtep.add_new_input("python")
mtep.add_new_input(None)
mtep.add_new_input(None)
mtep.add_new_input("is")
mtep.add_new_input(None)
mtep.add_new_input(None)
mtep.add_delete(1)
mtep.add_new_input(None)
mtep.add_new_input("great")
mtep.end_phrase("python is great")
# Retrieve recorded data
data = mtep.export()
print(data)
exported data
[
{
"phrase": "hello world",
"phrase_number": 0,
"start_time": 0000000000.0000000,
"end_time": 0000000000.0000000,
"entered_phrase": "hello world",
"events": [
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": "hello"
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": "world"
},
{
"event_type": "end_phrase",
"timestamp": 0000000000.0000000,
"entered_phrase": "hello world"
}
]
},
{
"phrase": "python is great",
"phrase_number": 1,
"start_time": 0000000000.0000000,
"end_time": 0000000000.0000000,
"entered_phrase": "python is great",
"events": [
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": "python"
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": "is"
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "delete",
"timestamp": 0000000000.0000000,
"deleted_length": 1
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": ""
},
{
"event_type": "add_new_input",
"timestamp": 0000000000.0000000,
"added_input": "great"
},
{
"event_type": "end_phrase",
"timestamp": 0000000000.0000000,
"entered_phrase": "python is great"
}
]
}
]
Metadata
Release files for measure_text_entry_performance 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| measure_text_entry_performance-0.2.4.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| measure_text_entry_performance-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / measure_text_entry_performance-0.2.4.tar.gz
| Download URL | measure_text_entry_performance-0.2.4.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33c946a4e8631874688234aced864595b92249062ce4f447f2dbe7a90b0b5450
|
|
BLAKE2b-256 checksum How to use checksums |
c5081fac5b8c687fb3c395f0af6d2c8a0db105a6afbd52e3b06037a401b984eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure
|
Release files / measure_text_entry_performance-0.2.4-py3-none-any.whl
| Download URL | measure_text_entry_performance-0.2.4-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5eb7e38838b1887011a6a64cad3facdcf1939b67ad0b0155a798aa226b430e0
|
|
BLAKE2b-256 checksum How to use checksums |
d399fcb8827c7a14e88d48364f513c64b0501d23b5092edd293dcb0814e435c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure
|