r/madeinpython • u/KennyPorto • 31m ago
Handset: I made a Linux app in Python that takes your phone calls over Bluetooth (PySide6 + D-Bus)
You're scrolling on your phone, headset on, and a call comes in. With Handset you click Answer on your PC and talk through your headset, and the phone stays free in your hand.
What it does: it makes a Linux PC act like a car's Bluetooth hands-free kit. Pair the phone once, and calls show up on the desktop: answer from the notification, dial, mute, keypad tones, call waiting and hold. If the phone shares them, it also shows contacts, favourites and recent calls. No app on the phone, so Android and iPhone both work.
How it's built (the Python part):
- PySide6 + QML (Kirigami) for the UI. Python holds the state and exposes it to QML as properties and slots; QML just draws it.
- jeepney for D-Bus. I started with QtDBus, but from Python it can't unpack PipeWire's call list (an
a(oa{sv})reply), so the D-Bus side moved to jeepney, a pure-Python D-Bus library. - No Bluetooth stack of my own. PipeWire 1.4 added Bluetooth telephony, so answering, dialing and hanging up are just D-Bus calls to PipeWire's telephony API, and audio is a normal PipeWire device.
- Contacts over Bluetooth PBAP, through BlueZ's obexd: one session pulls the phonebook, favourites and call history as vCards, which a small Qt-free module parses and matches to caller numbers.
- pytest covers the parsing and telephony logic, and GitHub Actions builds the Flatpak and attaches it to each release.
About 750 lines of Python and 1,000 of QML. MIT licensed, built with Claude Code.
https://github.com/KennyPorto/handset
(The phone numbers in the screenshots are all made up.)





