wrong lang? you got typeshit
Project description
Typeshit
Typeshit is a Python tool that detects and corrects text input, particularly useful for switching between Arabic and English typing.
Installation
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.
Usage
in your python script:
from typeshit.main import autotypeshit
# Use the main function to start the keyboard listener
autotypeshit()
How It Works
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_bufferfunction is called. - The function then processes the accumulated input, detecting the language and applying necessary corrections.
Features
- Automatic language detection (Arabic/English)
- Real-time text correction
- Efficient input processing with debounce mechanism
Development
For contributors and developers:
test.txtis provided for input testing purposes.- The main logic resides in
src/typeshit/main.py.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
Ebrahim Ramadan - ramadanebrahim791@gmail.com My portfolio: https://ebrahim-ramadan.vercel.app PyPi Library: https://pypi.org/project/typeshit/
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typeshit-0.2.2.tar.gz.
File metadata
- Download URL: typeshit-0.2.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7bda8b4bc1d43001b5ebdecb8bd12f918c5622dac649f7869ee2c56d6e5425d
|
|
| MD5 |
6df6585093902b42a9dd64a767dda55c
|
|
| BLAKE2b-256 |
8848dfdf1d4eb60b6cee748b644f435a7a970c937701bd82767200253cdd0500
|
File details
Details for the file typeshit-0.2.2-py3-none-any.whl.
File metadata
- Download URL: typeshit-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f32b8e5e4bca5fbdf4cb077ff2a71298c1f3c5f19dd6c4e273fc2285b520360
|
|
| MD5 |
63d8b5c75453b4472b1ba10192c80cf8
|
|
| BLAKE2b-256 |
3fff398fae496d020869b0b61980b96f1ae14091e8548b127840194920fb8cf1
|