Skip to main content

library to measure text entry performance

Project description

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:

  1. Initialize the MeasureTextEntryPerformance class with a set of phrases.
  2. Call the add_new_input method whenever there's a new input.
  3. Call the add_delete method when a deletion occurs.
  4. Call the end_phrase method when a phrase is completed.
  5. 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"
      }
    ]
  }
]

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

measure_text_entry_performance-0.2.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file measure_text_entry_performance-0.2.3.tar.gz.

File metadata

File hashes

Hashes for measure_text_entry_performance-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2a49cfc73d4d7f195e9baeae4aafeaf28fc4d19d940a0c1cd1f04f8d90d36f8f
MD5 e8a481daf76b93f689b2f5f4f312934e
BLAKE2b-256 f73d06aaab5a163876f8c429e609a618a0a11a6dc3fdf212230163a3b9997245

See more details on using hashes here.

File details

Details for the file measure_text_entry_performance-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for measure_text_entry_performance-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 523b804de8fddfc2775318cdb4107888b4ef85fc656420926e80b48debb9f4fc
MD5 7d2f60cad9fa9bc71180c946cdf6c408
BLAKE2b-256 6a85e648b5cdddd73b12fc532faeb9d16eb97c79cbb3f273306e1eaff00e490e

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