Scapy UsbBluetooth
This package contains code to allow Scapy sockets to communicate with Bluetooth controllers using UsbBluetooth for Python.
For general documentation about the project, please visit usbbluetooth.github.io.
For a barebones Python version of this library, check out UsbBluetooth for Python.
For other programming languages you may visit UsbBluetooth for C or UsbBluetooth for C#.
Installation
Just use pip :)
pip install scapy-usbbluetooth
Usage
See the examples folder for sample code.
A short illustrative sample usage can be as follows:
import usbbluetooth
from scapy_usbbluetooth import UsbBluetoothSocket
from scapy.layers.bluetooth import HCI_Hdr, HCI_Command_Hdr, HCI_Cmd_Reset
# Get a list of all the available devices
devices = usbbluetooth.list_devices()
for dev in devices:
print(dev)
# Open a socket using a device
socket = UsbBluetoothSocket(devices[0])
# Create a reset packet
pkt = HCI_Hdr() / HCI_Command_Hdr() / HCI_Cmd_Reset()
# Send a packet to the controller and await a response
response = socket.sr1(pkt)
response.show()
Plaform quirks
This package has some requirements to work because of different platform particularities. To make sure the package works, please, see https://usbbluetooth.github.io/quirks/.
Metadata
Release files for scapy-usbbluetooth 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scapy_usbbluetooth-0.1.2.tar.gz | 17.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scapy_usbbluetooth-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / scapy_usbbluetooth-0.1.2.tar.gz
| Download URL | scapy_usbbluetooth-0.1.2.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa1b0c57f8e9cd44ccebf00c93faa05c8bc6c0ea4c764e8fae603d0e0f179341
|
|
BLAKE2b-256 checksum How to use checksums |
f3ee396fb98cb18a93a24e2565d895b42a7321e21c6068119e1562ba39ee0e6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency logRelease files / scapy_usbbluetooth-0.1.2-py3-none-any.whl
| Download URL | scapy_usbbluetooth-0.1.2-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7d6866b3faa7215714fc04df1cdbf70b2c159d357dbfbcd9cb8d59a2c828a9b
|
|
BLAKE2b-256 checksum How to use checksums |
91f1cfb2c6504bcf4ae191b96be45dfef4e376fe4861a542338d1039c721cf35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency log