Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

gatt-link-ble

Latest version: v0.6.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: infoyouth
2 Stars
0 Forks
10 Versions
1.1K Downloads
Python Repo language

Scan summary

gatt-link-ble was last scanned on 29 Nov 2026 at version 0.6.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest 2 were published within 7 days (23–29 Nov 2026).
  • Findings: No rules fired in version 0.6.2.
  • Downloads: 1,097 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.2 LATEST 29 Nov 2026 No rules fired
0.6.1 23 Nov 2026 No rules fired
0.6.0 17 Nov 2026 No rules fired
0.5.0 16 Nov 2026 Not shown
0.4.0 16 Nov 2026 Not shown

No rules fired in 0.6.2

Findings

Findings for v0.6.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

gatt-link-ble

CI PyPI version License

An asynchronous, framework-independent Python library for discovering BLE GATT services, decoding sensor values, and receiving device-state updates.

The package owns BLE transport and parsing. It has no Home Assistant, MQTT, or UI-framework dependencies.

Requirements and installation

  • Python 3.12, 3.13, or 3.14
  • BLE adapter and a device advertising supported GATT services

Install from PyPI:

python -m pip install gatt-link-ble

Poll once

import asyncio

from bleak import BleakScanner

from gatt_link_ble import ConnectionMode, GattLinkClient


async def main() -> None:
    address = "AA:BB:CC:DD:EE:FF"
    device = await BleakScanner.find_device_by_address(address, timeout=10)
    if device is None:
        raise RuntimeError(f"BLE device not found: {address}")

    client = GattLinkClient(device, mode=ConnectionMode.POLL_AND_DISCONNECT)
    state = await client.poll()
    print(state)


asyncio.run(main())

Receive push updates

import asyncio

from bleak import BleakScanner

from gatt_link_ble import GattLinkClient


async def main() -> None:
    address = "AA:BB:CC:DD:EE:FF"
    device = await BleakScanner.find_device_by_address(address, timeout=10)
    if device is None:
        raise RuntimeError(f"BLE device not found: {address}")

    client = GattLinkClient(device, state_callback=print)
    await client.start()
    try:
        await asyncio.Event().wait()
    finally:
        await client.stop()


asyncio.run(main())

PUSH keeps the connection open, sends an initial state after connecting, and reconnects after unexpected disconnects. POLL_AND_DISCONNECT reads available characteristics once and disconnects before returning.

Supported profiles

The parsers below are implemented in this library. Parser and fixture coverage does not imply that a profile has been validated against physical hardware.

Profile Service UUID Characteristics
Battery Service 0x180F Battery Level 0x2A19
Heart Rate Service 0x180D Heart Rate Measurement 0x2A37
Device Information 0x180A Manufacturer 0x2A29, Model 0x2A24, Firmware 0x2A26, Hardware 0x2A27
Environmental Sensing 0x181A Temperature 0x2A6E, Humidity 0x2A6F, Pressure 0x2A6D
Nordic Thingy Environment ef680200-9b35-4933-9b10-52ffa9740042 Temperature, pressure, humidity, eCO2, TVOC, color/illuminance

Parsed values are available through the immutable GattDeviceState, DeviceMetadata, and GattSensorData models.

Hardware validation

The Nordic Thingy:52 is the only device physically validated so far. Recorded live payloads cover its Thingy Environment characteristics and Battery Level. The standard Heart Rate and Environmental Sensing parsers, and Device Information decoding, have automated test coverage; no separate physical validation is claimed for those profiles or for Thingy:53, Thingy:91, or other BLE devices. The Thingy:52 capture did not expose readable Device Information characteristics.

Public API and selective capabilities

The stable public API consists of GattLinkClient, ConnectionMode, GattDeviceState, GattSensorData, DeviceMetadata, GattLinkError, GattConnectionError, GattTimeoutError, and GattParseError.

By default, the client enables all supported sensor characteristics. Pass enabled_capabilities to limit sensor reads and notifications to the fields your application uses:

client = GattLinkClient(
    device,
    enabled_capabilities={"temperature", "humidity", "battery"},
)

Supported capability names are temperature, humidity, pressure, eco2, tvoc, battery, illuminance, and heart_rate. None enables all capabilities; an empty set disables sensor I/O. Device Information is read independently when available.

For devices whose BLEDevice changes during proxy handoffs, pass a provider. Returning None falls back to the original device. connect_timeout is enforced with a minimum of 10 seconds:

client = GattLinkClient(
    device,
    ble_device_provider=get_latest_ble_device,
    connect_timeout=10.0,
)

Each connection attempt creates a fresh BleakClientWithServiceCache. get_diagnostics() returns a snapshot containing the connection mode and status, connection-attempt count, latest error, active services, failed characteristic UUIDs, and the state's ISO-8601 last_updated timestamp. connect_attempts counts connection attempts, including attempts that fail while resolving the current BLE device:

print(client.get_diagnostics())

Inspect a device

The hardware diagnostic script lists nearby devices and, when passed an address, dumps raw bytes from readable characteristics:

uv run python scripts/live_scan.py
uv run python scripts/live_scan.py AA:BB:CC:DD:EE:FF --timeout 10

The output may include MAC addresses or other personal identifiers; redact them before sharing it publicly.

Development

uv sync --locked --all-groups
uv run ruff check .
uv run mypy src tests
uv run pytest
uv build

Tests use mocked BLE clients and GATT services; no hardware is needed. ARCHITECTURE.md is a local implementation guide and is intentionally not included in the public repository.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases gatt-link-ble

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229