A Python package to simulate human-like typing with adjustable speed.
Project description
slowPaste
Simulate human-like typing using Python with the added feature of adjustable speed.
Features:
- Simulates slow typing to mimic human input.
- Adjustable typing speed in Words Per Minute (WPM).
- Cancel typing mid-way with the
esckey. - PyAutoGUI fail-safe: Move your cursor to the top-left corner to halt the script immediately.
- Types out content from your clipboard.
Installation:
You can install slowPaste directly from GitHub using pip:
pip install slowPaste
Usage:
- Install the Package: Install the slowPaste package using pip.
- Copy Text: Copy the text you want to be typed out to the clipboard.
- Run the Script with Desired Speed: Run the script using a Python interpreter and specify the desired typing speed in WPM.
from slowPaste import slow_paste slow_paste.main(100) # Replace 100 with your desired speed in WPM
- Focus on Input Field: After running the script, focus on the input field (e.g., text editor, browser) where you want the text to be typed.
- Start Typing: The script will begin typing out the content from the clipboard after a delay of 2 seconds.
Adjusting Speed & Text Input:
- The main function accepts a speed parameter representing the typing speed in Words Per Minute (WPM). The default value is 100 WPM. It also accepts an optional text parameter for manual input, with the default being the content currently copied to the clipboard.
- You can adjust it by passing the desired speed value and text string when calling the main function.
slow_paste.main(150, text="Hello, world!") # Types the provided text at 150 WPM. If text is not provided, it types the clipboard content.
Script Breakdown:
slow_paste(): The main function that slowly types out the text. It accepts a speed parameter to adjust the typing speed.main(): Reads the clipboard content and initiates the typing, it also accepts a speed parameter.
Safety:
- Move the cursor to the top-left corner of the screen to trigger PyAutoGUI's fail-safe and halt the script.
Contributing:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License:
Project details
Release history Release notifications | RSS feed
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 slowPaste-0.6.tar.gz.
File metadata
- Download URL: slowPaste-0.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf6f0626f0eb9d917fba7fbd4fb683835237009f32fb4ee900dfd25467f12ac
|
|
| MD5 |
b91f00bfaa7936e186f4a73941f6f1f7
|
|
| BLAKE2b-256 |
09799288f5952dbb10cd85e535662dd7012954b88e1515bcb55340468d6e98e7
|
File details
Details for the file slowPaste-0.6-py3-none-any.whl.
File metadata
- Download URL: slowPaste-0.6-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4225085101342ba78d12003c77400e79386404ce39bb383ef7b8e7332179ac1
|
|
| MD5 |
76c7fde9af85d2115824b74b08651556
|
|
| BLAKE2b-256 |
d3e3f3e9f9b4262dde5764ac50f29b64d8a34ea1550cd4d2a85eb15d8b945718
|