Bluetooth Python extension module
Project description
PyBluez2
The PyBluez module allows Python code to access the host machine's Bluetooth resources. It supports scanning for devices and opening bluetooth sockets (via native sockets on win/linux)
Platform Support
Linux | macOS | Windows |
---|---|---|
:heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Python Version Support
- Windows: >= 3.9
- Mac: >= 3.5
- Linux: >= 3.5
Examples
# simple inquiry example
import bluetooth
nearby_devices = bluetooth.discover_devices(lookup_names=True)
print("Found {} devices.".format(len(nearby_devices)))
for addr, name in nearby_devices:
print(" {} - {}".format(addr, name))
Installation
Install using pip:
pip install pybluez2
License
This library is based on the work that has been put into the original 'PyBluez' library by:
- Piotr Karulis
- Albert Huang (ashuang@alum.mit.edu)
PyBluez is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
PyBluez is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with PyBluez; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
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
Built Distributions
File details
Details for the file pybluez2-0.46.tar.gz
.
File metadata
- Download URL: pybluez2-0.46.tar.gz
- Upload date:
- Size: 50.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fffca90bd9a6329f01772c2ae66ead2b6b6dbf3daed7670890f6b8b462ab72a5 |
|
MD5 | b0dc88501fa31bb6d05feb540ae5d011 |
|
BLAKE2b-256 | ddf9980b70642ba99f1cc8cdc9042ad1bb68355bcf5bc68c892ced3bc3360e72 |
File details
Details for the file pybluez2-0.46-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 32.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b633df0fb1ef37ae4b6badb8b6f1015cf1f425e218faa182602a57679793a4d3 |
|
MD5 | fb1911e6d3872ca617e03eb4036c5fd6 |
|
BLAKE2b-256 | 760029ff3deb498078be8c2b1e308081ca67f5e53983aaa89cf5f182e658a1ec |
File details
Details for the file pybluez2-0.46-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 190.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10294ea5aec397a468bf6fdec2944d4b9ee428657dfd95f4aee42a5e675ae34a |
|
MD5 | f6b9098a9d44142cac01989ecdcdbe57 |
|
BLAKE2b-256 | 55b59e5b99aabc1a58767d146166233b4a388b55a1bec8f803c367c774aa585a |
File details
Details for the file pybluez2-0.46-cp310-cp310-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp310-cp310-macosx_10_15_x86_64.whl
- Upload date:
- Size: 31.9 kB
- Tags: CPython 3.10, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771bb4a424eee1901f8ed977fbf9e4a5027cdfaa05a742861f1780517435d35b |
|
MD5 | cd3ea4329fbbf57e422e39ac495792e2 |
|
BLAKE2b-256 | 7de9fe9e159aab5440a1e5e8592e5b86fca8d59e4a67d1d95ee75025f329889b |
File details
Details for the file pybluez2-0.46-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 33.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd95e51063e7dab613f95f28f6ce5a811cf1b9d508c9f88c9cf1298c457783dc |
|
MD5 | acea363e5569fd0c461fd6ed8ed51807 |
|
BLAKE2b-256 | eadd61b5191fb6516cd7476f258d507d0eedec02192c86653324d6789079700f |
File details
Details for the file pybluez2-0.46-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 189.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c68f0bfb7fe9b3766b23a0893635ee5b254ac50ef337a9bd3cd6db42358ce22 |
|
MD5 | 3f033cfa69edcbfd4f8abf7796dd0967 |
|
BLAKE2b-256 | 60baf390911a84ede63e90fd128402f67fd21c899b28a10b327bb6594b1494cc |
File details
Details for the file pybluez2-0.46-cp39-cp39-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp39-cp39-macosx_10_15_x86_64.whl
- Upload date:
- Size: 31.9 kB
- Tags: CPython 3.9, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88250fb4c113deb93f8c57884eb1ebe8feb9763d1477e3a3636585bfb6465bac |
|
MD5 | e84d8d866e9be2eed52683bcfad6ecfb |
|
BLAKE2b-256 | 2bad0da8b2c4942e3f0c76db9895b660427094da4e5d57e09e559270fb64f1e7 |
File details
Details for the file pybluez2-0.46-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 33.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54b52745931772080e54e308137221923a809fe1f220b04ce177ffdf8d1ffc3 |
|
MD5 | 118d5207d85c2312f88499030188798b |
|
BLAKE2b-256 | a93ea291a730d8a2f7424f4e73e54f8c401aec5c62acafef3f6392cd1ec69de7 |
File details
Details for the file pybluez2-0.46-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 191.1 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d6e01ec8dbfe629aebf89aa989678a0eec503256c3b42d91b1382509f4dabd |
|
MD5 | cf6501b6e942b636ffd72722b228e42c |
|
BLAKE2b-256 | 2e7eff1fea45f2da1e16d209dc3a9431e5dbfc973ce8b2c1bfa77c52d97a39c8 |
File details
Details for the file pybluez2-0.46-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 31.8 kB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e7513ccaebac1f75706cb5efc2d18a0877eeb04dc990eb9d4f54b9a8723983c |
|
MD5 | d79f00f51af34a33b42b18587e5afe72 |
|
BLAKE2b-256 | de5f5a12497c80f8ef01fe6fa70d4ed38f49f9cd387f769732442a4c6a4814bf |
File details
Details for the file pybluez2-0.46-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 33.0 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff5173268f4c6de5cd8addb90fa46f243b9afba7f92c42f4f4f349d0fbada28 |
|
MD5 | 2f42aa6133c3d07ebfd625c2e7d78a8a |
|
BLAKE2b-256 | 6deeded077ad0fdb540d65fc593dafea556cfff42e1a8c9b9419be2d5f9a6654 |
File details
Details for the file pybluez2-0.46-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 190.1 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6131541bc3160f1dce49435cd920c95ca4b9d07436750db33bcb0688ec72b63 |
|
MD5 | 790981d47d87f5a0bb33d6b9a72ccf12 |
|
BLAKE2b-256 | a47511f40c5ab0de9f8631bebaa4333f36f11ee219250c68ad23485373844786 |
File details
Details for the file pybluez2-0.46-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: pybluez2-0.46-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 31.8 kB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3079e5394cd2bae9bbeda03243bd41e1eaa5515dcc7b4cce1bc56a966e5c3311 |
|
MD5 | f033dc055fbb26b4534f9ccc283074dd |
|
BLAKE2b-256 | dcecfc43461b75790f742710631ea2705c74f96b8240c654ab6207682a2861bf |