Skip to main content

human_typer

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

MIT

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)

Source distribution for human-typer 1.1.1
File Size Uploaded
human_typer-1.1.1.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for human-typer 1.1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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