Typeshit is a Python tool that detects and corrects text input, particularly useful for switching between Arabic and English typing.
Install Typeshit using pip:
pip install typeshit
This will install the latest version already auto, It's recommended to use a virtual environment for isolated package management.
in your python script:
from typeshit.main import autotypeshit
# Use the main function to start the keyboard listener
autotypeshit()
Typeshit uses a debounce mechanism to process input efficiently:
- Each keypress triggers a timer reset.
- If no keys are pressed within the debounce delay, the
process_buffer
function is called. - The function then processes the accumulated input, detecting the language and applying necessary corrections.
- Automatic language detection (Arabic/English)
- Real-time text correction
- Efficient input processing with debounce mechanism
For contributors and developers:
test.txt
is provided for input testing purposes.- The main logic resides in
src/typeshit/main.py
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Ebrahim Ramadan - ramadanebrahim791@gmail.com My portfolio: https://ebrahim-ramadan.vercel.app PyPi Library: https://pypi.org/project/typeshit/