Evdev

Latest version: v1.9.1

Safety actively analyzes 723166 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 7

1.6.0

====================

- Fix Python 3.11 compatibility (`174 <https://github.com/gvalkov/python-evdev/pull/174>`_).

1.5.0

====================

- Fix documentation (`163 <https://github.com/gvalkov/python-evdev/pull/163>`_, `#160 <https://github.com/gvalkov/python-evdev/pull/160>`_).

- Re-enable TTY echo at evtest exit (`155 <https://github.com/gvalkov/python-evdev/pull/155>`_).

- Fix ``ImportError: sys.meta_path is None, Python is likely shutting down`` (`154 <https://github.com/gvalkov/python-evdev/pull/154>`_).

- Closing the input device file descriptor in ``InputDevice.close()`` now
happens in the main thread, instead of in a new thread (reverts `146
<https://github.com/gvalkov/python-evdev/pull/146>`_).

- Fix ``util.find_ecodes_by_regex`` not working across all supported Python versions (`152 <https://github.com/gvalkov/python-evdev/pull/152>`_).

1.4.0

====================

- Fix ``InputDevice.set_absinfo`` to allow setting parameters to zero.

- Fix off-by-one in ``ioctl_EVIOCG_bits``, which causes value at the end of the
list to not be reported back (`131 <https://github.com/gvalkov/python-evdev/pull/131>`_).

- Fix ``set_absinfo`` to allow setting parameters to zero (`128 <https://github.com/gvalkov/python-evdev/pull/128>`_).

- Fix leak when returning ``BlockingIOError`` from a read (`143 <https://github.com/gvalkov/python-evdev/pull/143>`_).

- Fix "There is no current event loop in thread" error for non asyncio code
(`146 <https://github.com/gvalkov/python-evdev/pull/146>`_).

- Prevent ``InputDevice`` destructor from blocking (`145 <https://github.com/gvalkov/python-evdev/pull/145>`_).

- Add missing return codes to ``os.strerror()`` calls and fix force feedback
example in docs (`138 <https://github.com/gvalkov/python-evdev/pull/137>`_).

- Add the ``util.find_ecodes_by_regex()`` helper function.

1.3.0

====================

- Fix build on 32bit arches with 64bit time_t

- Add functionality to query device properties. See ``InputDevice.input_props``
and the ``input_props`` argument to ``Uinput``.

- ``KeyEvent`` received an ``allow_unknown`` constructor argument, which
determines what will happen when an event code cannot be mapped to a keycode.
The default and behavior so far has been to raise ``KeyError``. If set to
``True``, the keycode will be set to the event code formatted as a hex number.

- Add ``InputDevice.set_absinfo()`` and ``InputDevice.absinfo()``.

- Instruct the asyncio event loop to stop monitoring the fd of the input device
when the device is closed.

1.2.0

====================

- Add UInput support for the resolution parameter in AbsInfo. This brings
support for the new method of uinput device setup, which was `introduced in
Linux 4.5`_ (thanks to `LinusCDE`_).

- Vendor and product identifiers can be greater or equal to `0x8000` (thanks
`ivaradi`_).

1.1.2

====================

- Fix installation on kernels <= 4.4.

- Fix uinput creation ignoring absinfo settings.

Page 2 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.