Human Typer
Python package to simulate human keyboard typing
Installation
Use the package manager pip to install human_typer.
pip install human_typer
For Playwright support:
pip install human_typer[playwright]
Usage
from human_typer import Human_typer
My_Typer = Human_typer(keyboard_layout = "qwerty", average_cpm = 190)
# Directly with keyboard
My_Typer.keyboard_type("my text")
# With a Selenium element
my_element = driver.find_element_by_id("ID")
My_Typer.type_in_element("my text", my_element)
# With optional custom typo error rate (default is 0.02 = 2% of every character typed)
My_Typer = Human_typer(keyboard_layout = "qwerty", average_cpm = 190, error_rate = 0.05)
# With a Playwright element (requires: pip install human_typer[playwright])
from playwright.sync_api import sync_playwright
My_Typer = Human_typer(element_type="playwright")
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto("https://example.com")
element = page.locator("#my-input")
My_Typer.type_in_element("my text", element)
browser.close()
Contributing
Pull requests are welcome 😊
License
Metadata
Release files for human-typer 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| human_typer-1.1.1.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| human_typer-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / human_typer-1.1.1.tar.gz
| Download URL | human_typer-1.1.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c823c4e05cc49245b9e54422b6674e024da915a6e4389bcca7b7b12550b9c32
|
|
BLAKE2b-256 checksum How to use checksums |
4da39a56539a539995523710dcbf0e19441c9b650617dc5aed1ff69f7d777d24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / human_typer-1.1.1-py3-none-any.whl
| Download URL | human_typer-1.1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f41602b5fe0d693d680a4d78deb8048b9b5b7db1d07e0290eb06f593b64af7a
|
|
BLAKE2b-256 checksum How to use checksums |
497f8afae88588b0febf880eafe51f1a795e09a5ec3ca247e75b1d8da3cc3cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|