Connect and interact with Bluetooth LE devices on OSX [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm hoping to find a Python interface for working with Bluetooth LE on OSX. I've found bluepy, but it uses bluez which seems to be designed specifically for Linux. As far as I know OSX has its own Bluetooth stack so bluez is no good there.
I've also found Adafruit's BluefruitLE which seems to support OSX.
What is the canonical approach for working with BLE devices on OSX in Python? Which library is recommended?
Thanks

For Mac OS 10.12.X I'd recommend pybluez. I've had some issues in the past with installation on different hosts due to the scheme argument in setup.py, but commenting out that line if it fails tends to do the trick.

Bleak supports Windows/MacOS/Linux all in one neat tidy package.

Related

Python and Bluetooth Low Energy: Is there an alternative to pygatt? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm trying to communicate with an ESP32 microcontroller and my linux desktop using Bluetooth Low Energy.
Right now I'm using the notification example from https://pypi.org/project/pygatt/ (carefully replacing the MAC address and UUID of course).
The pygatt library runs gatttool under the hood, and is pretty flaky. Sometimes the example reports a single value before the program terminates. Sometimes it reports a spate of values and then hangs.
I was wondering if there were any alternatives to pygatt that were more robust?
gatttool is one of the eight tools that BlueZ deprecated.
BlueZ publishes an API using D-Bus and there are various D-Bus bindings for Python
For a BLE client you will need the following API parts of BlueZ:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/adapter-api.txt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/device-api.txt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt
An example of how to do this with pydbus is at:
https://stackoverflow.com/a/63751113/7721752
There are also a number of other BLE Python libraries available on PyPI but not all of them built using the BlueZ supported D-Bus API.

Run Python online but share only the output [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've seen this topic, but it doesn't really answer my question.
The question: Is there any way I can run my Python script (on 2.7) on a server/website (can be free or paid..or course free would be better), but without sharing the source code?
I would like to provide only the output of the script by sharing a link.
I already know some websites, such as www.pythonanywhere.com .
But on this website, I need to share the source code. I would need to protect the source, as it contains sensitive data.
If your Pyhton code contains sensitive data, you should not upload it to a server that you don't own.
So my best advice would be:
Get a server. That could be your desktop via some form of dyndns or an inexpensive virtual host.
Run your script in a Python framework. Common frameworks are Django, Pyramid, Flask. Or execute Python using mod_wsgi directly in apache.

Upnp library for python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have written an application in python 2.7. Now I have to add a feature in it, in which it will find the list of DMRs available in the network and then user will select the device from the list and send data from the application to the device.
For this I searched on google for python upnp libraries, and I got these (coherence, miranda-upnp, miniupnp, pyunpnp).
I also read about them, but i couldn't figure out which library i should use.
Tell me which library I should use and why ?
MiniUPnPc is actively supported (I'm the maintainer), it is a C library but there is a python module. Here is a good example for how to use it : https://github.com/miniupnp/miniupnp/blob/master/miniupnpc/testupnpigd.py
But you would prefer miranda-upnp if you want to use a 100% python library.

why does this command not work in ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am going over this tutorial: https://github.com/lionaneesh/RasPod/wiki/Setting-up-RasPod
However this command does not work: sudo modprobe snd_bcm2835.
I have got a raspberry pi but I am trying this on virtualbox using ubuntu.
Does anyone know why its not working?
snd_bcm2835 is a sound driver for the raspberry hardware. It will not work in virtualbox as virtualbox has a different - virtual - sound architecture.
Testing with virtualbox isn't a good approach, as you need virtualization of the special raspberry hardware. I would try qemu instead: http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/

Python bindings for Microsoft UI Automation? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Anybody know of any Python bindings for Microsoft UI Automation?
http://msdn.microsoft.com/en-us/library/ms747327.aspx
without having to use IronPython. I am aware of the excellent pywin32 work, but Microsoft UI Automation is supposed to be the successor of the Active Accessibility layer, which I have been using on Windows XP. I need to migrate of the "Active Accessibility" functionality (event triggers on open windows, focus controls, etc.) to a Windows 7 platform.
Thanks!
Take a look on Cobra
Cobra WinLDTP is based on Linux Desktop Testing Project -
http://ldtp.freedesktop.org LDTP works on
Windows/Linux/Mac/Solaris/FreeBSD/NetBSD/Palm Source, yes its Cross
Platform GUI testing tool.
They claimed it based on Microsoft DLL's (.NET3.5) - (Interop.UIAutomationClient.dll, UIAComWrapper.dll, WUIATestLibrary.dll)
I manage to use it with python for testing HTMLlayout app.
This maybe what you would like to use.It allows you to call UIAutomation using python and what you need to do is just update the demo file.https://github.com/chengzi/PyUIAutomation

Categories