Skip to main content

A package to simulate human-like behavior in automation tasks.

Project description

HumaniPy

PyPI version License: MIT Build Status

"Because even your bots deserve to act a little more human."

HumaniPy is a Python package designed to make web automation undetectable and human-like. It provides advanced utilities for mouse movements, typing, scrolling, and stealth, ensuring your bots behave like real users.

🚀 Features

  • True Mouse Movements: Simulates realistic cursor paths using Bezier curves and ActionChains.
  • Enhanced Stealth: Automatically hides navigator.webdriver and randomizes window dimensions.
  • Natural Typing: Types with variable speeds and simulates occasional typos with corrections.
  • Smooth Scrolling: Scrolls pages naturally with smooth behavior and random pauses.
  • Robustness: Built-in retry mechanisms and error handling.

📦 Installation

Install HumaniPy via pip:

pip install humani_py

🛠 Usage

Quick Start

from selenium import webdriver
from humani_py.stealth import apply_stealth
from humani_py.typing import human_typing
from humani_py.scrolling import scroll_page
from humani_py.movements import random_mouse_move
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

# 1. Apply stealth settings immediately
apply_stealth(driver)

driver.get('https://www.google.com')

# 2. Simulate human typing
search_box = driver.find_element(By.NAME, "q")
human_typing(search_box, "HumaniPy automation")

# 3. Move mouse naturally to an element
random_mouse_move(driver, search_box)

# 4. Scroll the page like a human
scroll_page(driver, direction="down", percentage=50)

📄 Documentation

For full documentation, visit our GitHub Pages.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📝 License

This project is licensed under the MIT License.

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

humani_py-0.2.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

humani_py-0.2.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file humani_py-0.2.2.tar.gz.

File metadata

  • Download URL: humani_py-0.2.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for humani_py-0.2.2.tar.gz
Algorithm Hash digest
SHA256 77dd033d6ec9b471240643441d3f351ed308a79aa35c87cb829861e23389f43a
MD5 3a4dd065a1741b4c302b4ae40cb22aff
BLAKE2b-256 152d7a81328d844943d657ea9ba01d201ec18a9bef71784f42f1d4a010b564f7

See more details on using hashes here.

File details

Details for the file humani_py-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: humani_py-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for humani_py-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 946c3ebfc00fd7fa8f684750b5d9e7a41bce91bad846f884745fe7a53e0c0c4a
MD5 2158197d8553ff72933bb295e52fd88b
BLAKE2b-256 49339bdeb8a46f542e5542cc2a60fa2f01b42fa34deb61c4a97dfdf824ccd867

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