Metadata-Version: 2.1
Name: python-input
Version: 0.1.4
Summary: 
Home-page: https://github.com/Will-J-Gale/python-input
Author: Will Gale
Author-email: willjgale@outlook.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: pynput (>=1.7.6,<2.0.0)
Description-Content-Type: text/markdown

# Python-Input
Simple mouse and keyboard input for python.

## Usage

```python
from python_input import Input, MouseButton

inp = Input()

while(not inp.get_key("q")):
    #Keyboard
    if inp.get_key("space"):
        print("Space pressed!")
    elif(inp.get_key_down("a")):
        print("A down")
    elif(inp.get_key_up("d")):
        print("D up")
    
    #Mouse
    if(inp.get_mouse(MouseButton.left)):
        print("Left pressed")
    elif(inp.get_mouse_down(MouseButton.middle)):
        print("Middle down")
    elif(inp.get_mouse_up(MouseButton.right)):
        print("Right up")
```

## Keys
Keys are the simple string representation of the keys.  
To list all available keyboard key strings use `print_available_keys`

```python
from python_input import Input, MouseButton

inp = Input()
inp.print_available_keys()

```

## Installing from source
```bash
poetry init
poetry build
pip install dist/python_input-<VERSION>.tar.gz
```



