This project records keystrokes in a session, analyzes typed words, and calculates timing statistics. It is designed for learning and demonstration purposes only — do not use it to record others' keystrokes without consent.
- Record individual keystrokes with timestamps.
- Analyze words typed per session, ignoring special keys like
[space]and[enter]. - Compute typing statistics:
- Total keys pressed
- Session duration
- Average, fastest, and slowest key intervals
- Typing speed (keys per second)
- Pause count (intervals >1s)
- Organized logging:
- Raw keystrokes (
logs/keystrokes.log) - Word frequency per session (
logs/word_analysis.log) - Timing statistics per session (
logs/timing_analysis.log)
- Raw keystrokes (
- Install dependencies:
pip install -r requirements.txt- Run the logger: python logger.py
Press Esc to finish the session.
Logs will automatically be stored in logs/.
Analysis is performed automatically after the session ends.
- Backspace handling could be improved to reflect actual corrections.
- Current implementation uses plain text logs; integrating a database (e.g., SQL) could improve storage and querying.