Pygatt

Latest version: v5.0.0

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

Scan your dependencies

Page 2 of 3

3.2.1

------

- Improvement: Officially support Python 3.6.
- Improvement: Permit use of non-standard characteristics in reserved range (140)

3.2.0

------

- Fix: Reliably auto-reconnect after restarting BGAPI device. Fixes a bug in
first attempt at auto-reconnection, only worked in some environments. (144)
- Fix: Remove spurious "no handler for logger" warnings (143)
- Fix: Use enum-compat instead of enum34, to fix installation in Python 3.4+
- Feature: Limit search window size for GATTTool backend, to avoid high CPU
usage for long running connections. (123)
- Feature: Add support for write commands to BGAPIBackend (115)

3.1.1

------

- Improvement: Convert documentation to RST for better PyPI integration.

3.1.0

------

- Fix: Support platforms without ``termios`` (Windows)
- Feature: Add ``char_read_handle`` to GATTTool backend.
- Improvement: Warn if ``hcitool`` requires a sudo authentication.
- Improvement: Allow BGAPI device more time to reboot for more reliable
discovery.
- Improvement: Interpret "invalid file descriptor" as a disconnect
event.
- Fix: Correctly handle service class UUIDs that aren't 16 bytes.
- Improvement: Support BLE devices with any UTF8 character.
- Improvement: Make gatttol prompt timeout configurable.
- Improvement: Gracefully stop ``lescan`` to avoid leaving the adapter
in a bad state.
- Improvement: Allow custom timeout for discovery on GATTTool backend.
- Fix: Make sure responses to char reads on BGAPI backend are from the
requested handle.
- Improvement: Raise and exception if trying to instantiate the
GATTTool backend in Windows.
- Improvement: If no BGAPI device attached, abort immediately.
- Fix: Use user's configured HCI device for connection and scanning in
GATTTool backend.

3.0.0

------

- [API Change] The BGAPIBackend.connect method now takes the same
``address_type`` argument as the GATTTool backend [BGAPI].
- [API Change] The ``address_type`` argument on both backends now
requires a value from a new enum, ``pygatt.BLEAddressType``, instead
of a string.
- Made Python 3 support a priority for both GATTTOOL and BGAPI
backends.
- Improve reliability of BGAPI backend by re-setting device for each
connection.

2.1.0

------

- Added all standard GATT characteristics. [BGAPI]
- Move gatttool monitor to a background thread for increased
performance. [GATTTOOL]

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.