Skip to main content


Project description


Bluetooth with D-Bus API. Dependence: python-dbus.

`make install`

- Bluetooth:

list: [ {"name": Name, "mac_address": MAC-address}, ... ]

Methods of class Bluetooth:
- `start_scanning(timeout)`: `scan` inside thread
- `scan(timeout)`
- `get_devices_to_pair()`, return list
- `get_available_devices()`, return list
- `get_paired_devices()`, return list
- `get_connected_devices()`, return list
- `make_discoverable()`, return bool
- `start_pairing(address)`: `pair` inside thread
- `pair(address)`, return bool
- `connect(address)`, return bool
- `disconnect(address)`, return bool
- `trust(address)`, return bool
- `remove(address)`, return bool

from bluetool import Bluetooth

bluetooth = Bluetooth()


devices = bluetooth.get_available_devices()

print devices

- BluetoothServer:

- Step1: Use `run()` to create SPP.
- Step2: Connect the bluetooth device.
- Step3: TCPServer is available for connection.

BluetoothServer will disconnect your device if you lose TCPconnection. Use `quit()` to stop server.

from bluetool import BluetoothServer

port = 8100
server = BluetoothServer(port)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bluetool-0.1.4.tar.gz (17.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page