1
I Use This!
Activity Not Available

Project Summary

bluez-python - A BlueZ python binding on top of dbus-python

Requirements

In order to use bluez-python you need following software packages:

- Python 2.5 or later
- Linux Bluetooth protocol stack (BlueZ)
- Python bindings for D-Bus (dbus-python)
Installation

From a command shell:

# python setup.py install

Notes

- Only supports BlueZ4 API
- Checking the doc directory in the BlueZ source package is always a good idea.
Contact

Li Dongyang

For additional information, check the page on the BlueZ wiki:

http://wiki.bluez.org/wiki/bluez-python
an example on discovering devices:

#!/usr/bin/env python
import bluez
import gobject

def device_found(address, properties):
print "[ " + address + " ]"

for key in properties.keys():
value = properties[key]
if (key == "Class"):
print " %s = 0x%06x" % (key, value)
else:
print " %s = %s" % (key, value)

manager = bluez.Manager('gobject')
adapter = manager.DefaultAdapter()
adapter.HandleSignal(device_found, 'DeviceFound')
adapter.StartDiscovery()
mainloop = gobject.MainLoop()
try:
mainloop.run()
except KeyboardInterrupt:
mainloop.quit()and another example on pairing a device:

#!/usr/bin/env python
import sys
import bluez
import gobject

def reply_device(device):
print device.GetProperties() # print the device's properties on success

def reply_error(error):
raise error

manager = bluez.Manager('gobject')
adapter = manager.DefaultAdapter()
agent = manager.CreateAgent() # use the build-in simple-agent to get a PIN
mainloop = gobject.MainLoop()
adapter.CreatePairedDevice(sys.argv[1], agent, 'DisplayYesNo', reply_handler=reply_device, error_handler=reply_error)
try:
mainloop.run()
except KeyboardInterrupt:
mainloop.quit()

Tags

bluez dbus python

In a Nutshell, bluez-python...

 Code analysis has not completed

The Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. The source code for this project has been located, but the analysis isn't complete. Feel free to check its progress.
MIT
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Use Patent Claims

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

Project Security

Vulnerabilities per Version ( last 10 releases )

There are no reported vulnerabilities

Project Vulnerability Report

Security Confidence Index

Poor security track-record
Favorable security track-record

Vulnerability Exposure Index

Many reported vulnerabilities
Few reported vulnerabilities

Did You Know...

  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project
  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    data presented on the Open Hub is available through our API
About Project Security

 Code analysis has not completed

The Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. The source code for this project has been located, but the analysis isn't complete. Feel free to check its progress.

Community Rating

Be the first to rate this project
Click to add your rating
  
Review this Project!