Database of all relevant numbers in the Bluetooth specification
Project description
Bluetooth numbers for Python
This project offers a Python package with a subset of Bluetooth Assigned Numbers, so Python projects can easily use these numbers. The goal of this project is to provide a shared resource so various Python projects that deal with Bluetooth don't have to replicate this effort.
The source of the numbers in this package is Nordic Semiconductor's Bluetooth Numbers Database, an up-to-date listing of all the various Bluetooth Specification-related elements that are defined by the Bluetooth industry (Company IDs, Service UUIDs, Characteristic UUIDs and Descriptor UUIDs), that you can use instead of rolling your own.
Installation
The package can be installed from PyPI:
pip3 install bluetooth-numbers
Usage
Get the description of a company ID:
>>> from bluetooth_numbers.companies import company
>>> company[0x0499]
'Ruuvi Innovations Ltd.'
Get the description of a service UUID:
>>> from bluetooth_numbers.services import service
>>> from uuid import UUID
>>> service[0x180F]
'Battery Service'
>>> service[UUID("6E400001-B5A3-F393-E0A9-E50E24DCCA9E")]
'Nordic UART Service'
Get the description of a characteristic UUID:
>>> from bluetooth_numbers.characteristics import characteristic
>>> from uuid import UUID
>>> characteristic[0x2A37]
'Heart Rate Measurement'
>>> characteristic[UUID("6E400002-B5A3-F393-E0A9-E50E24DCCA9E")]
'UART RX Characteristic'
Get the description of a descriptor UUID:
>>> from bluetooth_numbers.descriptors import descriptor
>>> descriptor[0x2901]
'Characteristic User Descriptor'
License
This project is provided by Koen Vervloesem as open source software with the MIT license. See the LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bluetooth-numbers-0.1.1.tar.gz
.
File metadata
- Download URL: bluetooth-numbers-0.1.1.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57724092295befe3a855fc13555a2658caab8621c4a52fa6c8d74dc1b6de4b09 |
|
MD5 | 10046dadac3bf9340ecb33b5f031440a |
|
BLAKE2b-256 | 286765aeae026c84a99f7373aae15eedc46950fc6dedd9644e784ecbca3e8615 |
File details
Details for the file bluetooth_numbers-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: bluetooth_numbers-0.1.1-py3-none-any.whl
- Upload date:
- Size: 48.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841c1bfe94529dab4499cf3f046921a7b4a9d918287bfee525f2105efb3283b7 |
|
MD5 | 8b57bd5828ca6e5f7057b7cbf3fa60fe |
|
BLAKE2b-256 | 650fdc9794ac581cf8b349c70fcef6180bc7c51127902e38a47689375d5e9019 |