Skip to main content

Python package with a wide set of numbers related to Bluetooth

Project description

Continuous Integration Code coverage Python package version Supported Python versions Documentation Status License Companies Services Characteristics Descriptors OUIs

bluetooth-numbers

Python package with a wide set of numbers related to Bluetooth

This project offers a Python package with a wide set of numbers related to Bluetooth, 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 by rolling their own database and keeping it updated.

The following sources are used:

Installation

You can install bluetooth-numbers as a package from PyPI with pip:

pip install bluetooth-numbers

Usage

Get the description of a company ID:

>>> from bluetooth_numbers import company
>>> company[0x0499]
'Ruuvi Innovations Ltd.'

Get the description of a service UUID:

>>> from bluetooth_numbers 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 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 import descriptor
>>> descriptor[0x2901]
'Characteristic User Descriptor'

Get the description of an OUI:

>>> from bluetooth_numbers import oui
>>> oui["58:2D:34"]
'Qingping Electronics (Suzhou) Co., Ltd'

See the module reference for complete documentation.

License

This project is provided by Koen Vervloesem as open source software with the MIT license. See the LICENSE file for more information.

See also the license for the Bluetooth Numbers Database used in this package.

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

bluetooth_numbers-1.1.2.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

bluetooth_numbers-1.1.2-py3-none-any.whl (500.7 kB view details)

Uploaded Python 3

File details

Details for the file bluetooth_numbers-1.1.2.tar.gz.

File metadata

  • Download URL: bluetooth_numbers-1.1.2.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for bluetooth_numbers-1.1.2.tar.gz
Algorithm Hash digest
SHA256 ee447de6de3e1b4389aa60e32bd91e69f964995cd6726e0443f00726b2e3d6c4
MD5 7c14d10258b4704e23f89a8d01766b93
BLAKE2b-256 971edb3bf8fe7f4f15c7110559808112ab06d580a7dfb2e1282e927ecf601f73

See more details on using hashes here.

File details

Details for the file bluetooth_numbers-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for bluetooth_numbers-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4fbd09be00587817eef7abe0c50c71b8842b2a9c7cb438983c156286a7b774bd
MD5 81c3ee1b922e99438ecf433e0060a952
BLAKE2b-256 a157e274f305b7cc2aac88494eac22baa60c7e63355ca6ccdcf3d49a3c6a905e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page