Skip to main content

wrong lang? you got typeshit

Project description

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/

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

typeshit-0.2.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typeshit-0.2.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file typeshit-0.2.1.tar.gz.

File metadata

  • Download URL: typeshit-0.2.1.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

Hashes for typeshit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9c17e81e548edf7054880a3db033b7c0c67329dd976db62409405fd48d8c332e
MD5 83fcc3426ab82dee0e40b1f3a6b4fb96
BLAKE2b-256 e80ef4143127fac104b1c3708dc24c4fbd442f32cd2712f2fa162feac6f344a0

See more details on using hashes here.

File details

Details for the file typeshit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: typeshit-0.2.1-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

Hashes for typeshit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d3f102c71696290d5679d9c7176c9991a04f9b9117535a05167acbc538b4115
MD5 4c5095a9800a43e5a5effc46c1bec305
BLAKE2b-256 393ffcaa69c37dc7bd8bce4ee66365d0b425b713c2c3a7b03752c7663178c33c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page