Skip to main content

Python Human Movement is a python package which imitates human movements

Project description

Python Human Movements is a python package which imitates human movements

Author: Joe Tilsed | Created: 19.06.2020 | Last Updated: 20.06.2020 | Version 0.0.3

pyHM

Python Human Movements is a python package which imitates human movements.

Installation

$ pip install pyHM

Getting Started

Mouse

Importing the mouse object from the parent package.

from pyHM import mouse

print(type(mouse))
>> <class 'mouse.Mouse'>

Mouse.move()

Have your mouse move across your screen to an (x, y) coordinate like a human would.

from pyHM import mouse

destination_x = 16
destination_y = 25

mouse.move(destination_x, destination_y)
>> *Your mouse cursor moves to (16, 25) as if it were a human*

You can also add a multiplier which will either speed-up or slow down the mouse movement depending on what you want. The higher the number the slower the movement, you can also have floats such as 0.1337.

from pyHM import mouse

x = 5
y = 2

mouse.move(x, y, multiplier=10)
>> *Your mouse cursor moves to (5, 2) as if it were a human
    at about 10 times the speed*

Mouse.get_current_position()

This will return your mouses current x and y coordinate.

from pyHM import mouse

print(mouse.get_current_position())
>> (1954, 122)
# That's all folks...

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

pyHM-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

pyHM-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pyHM-0.0.3.tar.gz.

File metadata

  • Download URL: pyHM-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for pyHM-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0812224ba4f45c3acc126543e81743cb0f98153bb80868954ef909aa749705ef
MD5 81ccb31c1960299d1a7a4a5bec6714d9
BLAKE2b-256 3240d6bc473705af985e9feee36f49663c10146d3f2f1a88d883cba2ce28bfb6

See more details on using hashes here.

File details

Details for the file pyHM-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyHM-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for pyHM-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 47f5ca7058a888d4f71b35c9d5748158fb17cadd0d58510ff700beb331c17042
MD5 3c54f9e4e8d642bef059e453c837beea
BLAKE2b-256 3ffb8ac76a6a66c92eab2c1be54409c013fb970d1086d05d660cf53197ca64fb

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