Skip to main content
Simple Bluez D-Bus python client interface

Use like:

```
python3 -m blus
```

or

```python
import blus

class Observer(blus.DeviceObserver):

def seen(self, manager, path, device):
alias = device.get("Alias")
print("Seeing %s at %s" % (alias, path))

# device = blus.proxy_for(device)
# device.Pair()
# device.Connect()
# etc ...

blus.DeviceManager(Observer()).scan()
```

Output:

```
> python3 scanner.py

Seeing 4B-CF-80-09-16-72 at /org/bluez/hci0/dev_4B_CF_80_09_16_72
Seeing 77-0C-65-0A-7C-0F at /org/bluez/hci0/dev_77_0C_65_0A_7C_0F
Seeing 42-90-C6-B6-F0-8A at /org/bluez/hci0/dev_42_90_C6_B6_F0_8A
Seeing Apple Pencil at /org/bluez/hci0/dev_68_24_3F_07_9F_F1
Seeing 7C-38-5D-97-D3-10 at /org/bluez/hci0/dev_7C_38_5D_97_D3_10
Seeing Suunto 9 123210000194 at /org/bluez/hci0/dev_0D_8C_DA_37_BC_50
Seeing 64-2D-A9-2D-14-96 at /org/bluez/hci0/dev_64_2D_A9_2D_14_96
Seeing 78-66-CF-91-BC-38 at /org/bluez/hci0/dev_78_66_CF_91_BC_38
Seeing 66-F5-90-3B-76-FD at /org/bluez/hci0/dev_66_F5_90_3B_76_FD
Seeing [AV] Samsung Soundbar MS750 at /org/bluez/hci0/dev_54_BD_79_26_FE_D1
Seeing [TV] Samsung 7 Series (43) at /org/bluez/hci0/dev_FC_03_9F_5B_D1_1A
Seeing [TV] Samsung Q9 Series (65) at /org/bluez/hci0/dev_7C_64_56_9F_14_DF
```

Other example:
https://github.com/molobrakos/toothbrush/blob/master/toothbrush

Metadata

Release files for blus 0.0.19

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

Source distribution (sdist)

Source distribution for blus 0.0.19
File Size Uploaded Provenance
blus-0.0.19.tar.gz 8.7 kB Without provenance Details

Release files / blus-0.0.19.tar.gz

Download URL blus-0.0.19.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b48b6cb04d9cb5f52be1789fafc0b295a7261a07ac43531015d883dd0d4d489a
BLAKE2b-256 checksum
How to use checksums
d0e4d73a9cfa61c534d7f004717bbc7d37e5b1fc9fd63950f65f593eccd7fe46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

Security for blus 0.0.19

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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