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.0.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

bluetooth_numbers-1.0.1-py3-none-any.whl (464.5 kB view details)

Uploaded Python 3

File details

Details for the file bluetooth-numbers-1.0.1.tar.gz.

File metadata

  • Download URL: bluetooth-numbers-1.0.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bluetooth-numbers-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a073b2cc6d48c43a3ddfc791bd628c1fc99ae8fd26819ca7bab901a1851403da
MD5 f853baf6d203ff26734b40cde63627e3
BLAKE2b-256 285a04aee1efb54ee95bb961fbac0470ba7773e2798e7dfd40fc5514a7e98a00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bluetooth_numbers-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e42d4a6194e723cf45792782002ea41ad7c6933ab1ee91cc12b3dcd32a23fea3
MD5 9898dd40abd826d0a5ee19f191aecfd2
BLAKE2b-256 39e473b8f91821ce0f3c31ba1c2557eda0065895adf353ee4cfaec4df39149db

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