$npx skillfedfor your agent

bleak-retry-connector

A connector for Bleak Clients that handles transient connection failures

Worth itPyPI LibrariesReleased Jul 20261.0M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — bleak_retry_connector-4.6.3-py3-none-any.whl
v4.6.3 · released 2026-07-22 · Python >=3.10 · 4 runtime deps: async-timeout, bleak, bluetooth-adapters, dbus-fast

Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a real problem in Bluetooth connectivity. If your application uses Bleak and experiences transient connection failures, this wrapper is a straightforward drop-in that adds retry logic and service caching with minimal overhead. Install it if you need reliable reconnection handling; skip it only if your use case has no tolerance for retries or you manage reconnection logic yourself.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; dbus-fast may require system dbus development libraries on Linux.
  • Low friction: pure Python wheel with four runtime dependencies (bleak, async-timeout, bluetooth-adapters, dbus-fast).
  • Actively maintained as of 2026-07-22, last commit 2026-08-10.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; attribution required.

last release 2026-07-22 (23 days) · last repo commit 2026-08-10 · 25 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,010,703 downloads/mo, #4,514 on PyPI

Verify before relying

pip install bleak-retry-connector

import asyncio
from bleak_retry_connector import establish_connection, BleakClientWithServiceCache

async def connect():
    client = await establish_connection(
        BleakClientWithServiceCache,
        device,
        "Device Name",
        max_attempts=3
    )
    await client.disconnect()

asyncio.run(connect())
  • Whether service caching persists across process restarts or only within a session.
  • Specific backoff strategy and timing between retry attempts.
  • How platform-specific quirks are detected and handled (Windows vs. macOS vs. Linux).
Same gist for agents: .md · .json

What it is and what it does

Bleak Retry Connector is a wrapper around the Bleak Bluetooth Low Energy client that adds automatic retry logic for transient connection failures. Instead of calling BleakClient.connect() directly, you call establish_connection() with your device and a retry count, and the library handles retries with intelligent backoff, service caching, and platform-specific workarounds. It solves common Bluetooth connection problems like timeouts on first attempt, "out of connection slots" errors on ESP32 devices, and interference from other Bluetooth operations.

The package provides BleakClientWithServiceCache, which caches GATT services to speed up reconnections, and establish_connection(), which orchestrates the retry loop and error handling. It's designed for applications that need reliable Bluetooth connectivity across different operating systems and device types, particularly where transient failures are common or connection slots are limited.

Use it for

  • IoT applications connecting to multiple BLE devices where occasional timeouts or slot exhaustion occur.
  • Mobile or desktop apps that need to reconnect to wearables or sensors with automatic retry on failure.
  • Embedded device communication (e.g., ESP32) where connection slots are limited and retries are essential.
  • Long-running services that maintain persistent Bluetooth connections and need resilience to transient network glitches.
  • Testing or debugging Bluetooth devices where connection instability is expected during development.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a real problem in Bluetooth connectivity. If your application uses Bleak and experiences transient connection failures, this wrapper is a straightforward drop-in that adds retry logic and service caching with minimal overhead. Install it if you need reliable reconnection handling; skip it only if your use case has no tolerance for retries or you manage reconnection logic yourself.

Install

bleak-retry-connector on PyPI

Before you install

Low friction: pure Python wheel with four runtime dependencies (bleak, async-timeout, bluetooth-adapters, dbus-fast). Actively maintained as of 2026-07-22, last commit 2026-08-10.

Requires Python 3.10 or later; dbus-fast may require system dbus development libraries on Linux.

License in practice

MIT license permits commercial and private use with minimal restrictions; attribution required.

Quickstart

pip install bleak-retry-connector

import asyncio
from bleak_retry_connector import establish_connection, BleakClientWithServiceCache

async def connect():
    client = await establish_connection(
        BleakClientWithServiceCache,
        device,
        "Device Name",
        max_attempts=3
    )
    await client.disconnect()

asyncio.run(connect())

Verify before relying

  • Whether service caching persists across process restarts or only within a session.
  • Specific backoff strategy and timing between retry attempts.
  • How platform-specific quirks are detected and handled (Windows vs. macOS vs. Linux).

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
async-timeoutbleakbluetooth-adaptersdbus-fast
MaintenanceActively maintained 23 days since the last release
Last repo commit
First released
Downloads1,010,703 / month, #4,514 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries

Evidence: bleak_retry_connector-4.6.3-py3-none-any.whl

Tags

Capabilities
bluetooth connection retry logicbleak client reconnect handlerbluetooth transient failure recoveryBLE connection resilienceautomatic bluetooth reconnectbleak connection wrapperbluetooth service caching
Topics
bluetoothbleasync

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “bluetooth connection retry logic”

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also bleak-esphome · home-assistant-bluetooth · habluetooth · kegtron-ble · govee-ble · bleak · bluetooth-auto-recovery · ibeacon-ble · bluetooth-sensor-state-data · idasen-ha