rpizero-hid


Namerpizero-hid JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/Pant3x/rpizero-hid
SummaryLibrary for emulate mouse and keyboard on raspberry pi zero
upload_time2023-08-29 19:02:40
maintainer
docs_urlNone
authorPant3x
requires_python
licenseMIT
keywords rpi zero raspberry hid
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <img src="https://user-images.githubusercontent.com/61390950/141596451-c3f69064-7152-4d07-80b0-141b60265c02.png" style="width: 500px; height: 300px; border-radius: 100px">

HID python library for emulating mouse and keyboard on PI zero.

## Setup - Tested on [Raspbian](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit) lite 5.10

1. Install apt dependencies

```bash
sudo apt-get update
sudo apt-get install -y git python3-pip
```  


2. install usb gadget module  https://github.com/Pant3x/rpizero-hid/tree/main/usb_gadget
3. Install `rpizero-hid` with `pip`
```bash
pip3 install rpizero-hid
```

## Usage
Note: You should connect the data usb port (left one) to the raspberry, and NOT the power port  
  
- Control mouse
```python
from rpizero_hid import Mouse
m = Mouse()
for i in range(5):
    m.move_relative(10, 10)
```
- Control keyboard
```python
from rpizero_hid import Keyboard

k = Keyboard()
k.type('Hello world!')
```
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Pant3x/rpizero-hid",
    "name": "rpizero-hid",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "rpi,zero,raspberry,hid",
    "author": "Pant3x",
    "author_email": "example@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a0/21/93f60f0ffd7eef6b9f897db15e4e20efc314c2724f4015263d8df775a274/rpizero-hid-0.0.1.tar.gz",
    "platform": null,
    "description": "<img src=\"https://user-images.githubusercontent.com/61390950/141596451-c3f69064-7152-4d07-80b0-141b60265c02.png\" style=\"width: 500px; height: 300px; border-radius: 100px\">\n\nHID python library for emulating mouse and keyboard on PI zero.\n\n## Setup - Tested on [Raspbian](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit) lite 5.10\n\n1. Install apt dependencies\n\n```bash\nsudo apt-get update\nsudo apt-get install -y git python3-pip\n```  \n\n\n2. install usb gadget module  https://github.com/Pant3x/rpizero-hid/tree/main/usb_gadget\n3. Install `rpizero-hid` with `pip`\n```bash\npip3 install rpizero-hid\n```\n\n## Usage\nNote: You should connect the data usb port (left one) to the raspberry, and NOT the power port  \n  \n- Control mouse\n```python\nfrom rpizero_hid import Mouse\nm = Mouse()\nfor i in range(5):\n    m.move_relative(10, 10)\n```\n- Control keyboard\n```python\nfrom rpizero_hid import Keyboard\n\nk = Keyboard()\nk.type('Hello world!')\n```",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library for emulate mouse and keyboard on raspberry pi zero",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Pant3x/rpizero-hid"
    },
    "split_keywords": [
        "rpi",
        "zero",
        "raspberry",
        "hid"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a02193f60f0ffd7eef6b9f897db15e4e20efc314c2724f4015263d8df775a274",
                "md5": "b20944e4dd677f6b7fcf85886aadc221",
                "sha256": "79117807deba427b0bf8b2a19980772451e5b90532b1ab3ee4fb07354d2f6168"
            },
            "downloads": -1,
            "filename": "rpizero-hid-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b20944e4dd677f6b7fcf85886aadc221",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 16866,
            "upload_time": "2023-08-29T19:02:40",
            "upload_time_iso_8601": "2023-08-29T19:02:40.882769Z",
            "url": "https://files.pythonhosted.org/packages/a0/21/93f60f0ffd7eef6b9f897db15e4e20efc314c2724f4015263d8df775a274/rpizero-hid-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-29 19:02:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Pant3x",
    "github_project": "rpizero-hid",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rpizero-hid"
}
        
Elapsed time: 0.10721s