Skip to main content

Typeshit

image

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:

  1. Each keypress triggers a timer reset.
  2. If no keys are pressed within the debounce delay, the process_buffer function is called.
  3. 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.txt is 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/

Release files for typeshit 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typeshit 0.2.2
File Size Uploaded
typeshit-0.2.2.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typeshit 0.2.2
File Interpreter ABI Platform
typeshit-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / typeshit-0.2.2.tar.gz

Download URL typeshit-0.2.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7bda8b4bc1d43001b5ebdecb8bd12f918c5622dac649f7869ee2c56d6e5425d
BLAKE2b-256 checksum
How to use checksums
8848dfdf1d4eb60b6cee748b644f435a7a970c937701bd82767200253cdd0500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0

Release files / typeshit-0.2.2-py3-none-any.whl

Download URL typeshit-0.2.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f32b8e5e4bca5fbdf4cb077ff2a71298c1f3c5f19dd6c4e273fc2285b520360
BLAKE2b-256 checksum
How to use checksums
3fff398fae496d020869b0b61980b96f1ae14091e8548b127840194920fb8cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page