bluetooth-data-tools
Tools for converting bluetooth data and packets
What it is and what it does
Bluetooth Data Tools is a library for parsing and working with Bluetooth Low Energy (BLE) advertisement data and related metadata. It provides structured access to GAP advertisement fields (local name, service UUIDs, service data, manufacturer data, TX power) via both functional and object-oriented interfaces, plus utilities for converting between integer and MAC address formats, extracting short addresses, and formatting human-readable device names.
The package also includes distance estimation from TX power and RSSI measurements, a fast monotonic clock optimized for Bluetooth event timing (using CLOCK_MONOTONIC_COARSE on Linux via Cython), and private address resolution for BLE random addresses using Identity Resolving Keys. It depends on cryptography for the IRK-based address matching and is actively maintained with support for Python 3.10 through 3.14.
Use it for:
- Parse raw BLE advertisement packets into structured fields for device discovery and filtering.
- Convert between Bluetooth MAC address formats and integers for storage or comparison.
- Estimate distance to a Bluetooth device based on TX power and received signal strength.
- Resolve random private addresses in BLE traffic using an Identity Resolving Key.
- Format device names with short addresses for user-facing display in Bluetooth applications.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses and manipulates Bluetooth Low Energy advertisement data, addresses, and timing, with utilities for distance estimation and private address resolution.
Yes, if you work with Bluetooth Low Energy data parsing or device discovery. The library is actively maintained, has no known vulnerabilities, supports modern Python versions, and provides a clean API for common BLE operations. Medium install friction is typical for platform-specific packages and not a barrier. The Apache-2.0 license is unrestrictive.
Install
bluetooth-data-tools on PyPI
pip
pip install bluetooth-data-toolsuv
uv add bluetooth-data-toolspoetry
poetry add bluetooth-data-toolsInstalling bluetooth-data-tools
Before you install
Medium install friction due to platform-specific wheels; active maintenance with a recent release (19 days ago) and current Python version support through 3.14.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install bluetooth-data-tools
from bluetooth_data_tools import parse_advertisement_data_bytes
parsed = parse_advertisement_data_bytes(raw_bytes)
local_name, service_uuids, service_data, manufacturer_data, tx_power = parsed
Requires Python 3.10 or later; cryptography dependency must be installed.
Verify before relying
- Whether the Cython-optimized monotonic_time_coarse on Linux provides measurable performance benefit for typical workloads.
- Compatibility with non-x86_64 architectures beyond the manylinux wheel provided.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — cryptography |
| Maintenance | actively maintained — 19 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,260,237/month — #2,345 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bluetooth_data_tools-1.29.21-cp314-cp314-manylinux_2_41_x86_64.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
convertertoolsProvides lightweight utilities for manipulating…
permissive · top 15,000 on PyPI
ibeacon-bleParses and decodes iBeacon BLE (Bluetooth Low…
permissive · top 15,000 on PyPI
bthome-bleParses and decodes BLE sensor data in the…
permissive · top 15,000 on PyPI
aioblescanaioblescan listens for and parses Bluetooth Low…
permissive · top 15,000 on PyPI
bluetooth-sensor-state-dataProvides data models for parsing, storing, and…
permissive · top 15,000 on PyPI
home-assistant-bluetoothProvides standardized data models and helpers…
permissive · top 15,000 on PyPI
sensor-state-dataProvides data models for storing and converting…
permissive · top 15,000 on PyPI
oralb-blePassive parser for Oral-B toothbrush Bluetooth…
permissive · top 15,000 on PyPI
govee-bleProvides Python bindings to discover, connect…
permissive · top 15,000 on PyPI
inkbird-bleParses BLE advertisements from INKBIRD…
permissive · top 15,000 on PyPI