Skip to main content

aio-rfcomm

Talk to Bluetooth Classic serial devices from asyncio — the same way on Linux, macOS and Windows.

async with (
    aio_rfcomm.open_bluetooth() as bluetooth,
    bluetooth.open_service(DEVICE, MY_SERVICE) as channel,
):
    await channel.send(b"hello\n")

    while True:  # until the connection ends, raising ChannelClosedError
        print((await channel.receive()).decode(), end="")

That is the whole idea. RFCOMM is how many Bluetooth gadgets that predate BLE still talk — printers, GPS units, robots, serial adapters, a great many embedded boards — and reaching one from Python has meant a different library, a different API and a different set of surprises on every platform.

This is one API for all three, running in your own event loop, with every connection owned by an async with block that cleans up after itself.

Install

$ uv add aio-rfcomm

It needs Python 3.11 or newer. The documentation is at https://dlech.github.io/aio-rfcomm/.

Serving, too

Publish a service and let devices connect to you:

async with bluetooth.serve(MY_SERVICE, name="my thing") as service:
    async for request in service.connection_requests():
        ...  # accept it, in a task of your own

Metadata

Release files for aio-rfcomm 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio-rfcomm 1.1.0
File Size Uploaded Provenance Actions
aio_rfcomm-1.1.0.tar.gz 113.1 kB With provenance Details for aio_rfcomm-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aio-rfcomm 1.1.0
File Interpreter ABI Platform Actions
aio_rfcomm-1.1.0-py3-none-any.whl Python 3 none any Details for aio_rfcomm-1.1.0-py3-none-any.whl

Total release size: 255.5 kB

Release files / aio_rfcomm-1.1.0.tar.gz

Download URL aio_rfcomm-1.1.0.tar.gz
Size 113.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8f3bff8e508c6d7b7e05381fbc4a6169e69e2c9a3df5e7d59f4ee641fbd515fd
BLAKE2b-256 checksum
How to use checksums
ae807f0e6deed493c5402bf0b6d23c3107008cf74c621bdb7469dc5becf0e3f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / aio_rfcomm-1.1.0-py3-none-any.whl

Download URL aio_rfcomm-1.1.0-py3-none-any.whl
Size 142.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66d4fcc3132382cf83a89b6822e65e765ce162d71a3c2d79ebd795652a3b21b7
BLAKE2b-256 checksum
How to use checksums
a74f6a8c420806612345afdfda4f36b05cf3f80d6e0211590a0caef25850e77d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for aio-rfcomm 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aio_rfcomm-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page