You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

led-ble

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

led-ble - pypi Package Compare versions

Comparing version
1.0.0
to
1.0.1
+9
src/led_ble/util.py
"""Utils."""
from __future__ import annotations
import sys
if sys.version_info[:2] < (3, 11):
from async_timeout import timeout as asyncio_timeout # noqa: F401
else:
from asyncio import timeout as asyncio_timeout # noqa: F401
+5
-5
Metadata-Version: 2.1
Name: led-ble
Version: 1.0.0
Version: 1.0.1
Summary: Control a wide range of LED BLE devices

@@ -21,9 +21,9 @@ Home-page: https://github.com/bluetooth-devices/led-ble

Provides-Extra: docs
Requires-Dist: Sphinx (>=5.0,<6.0); extra == "docs"
Requires-Dist: async-timeout (>=4.0.1)
Requires-Dist: Sphinx (>=5.0,<6.0) ; extra == "docs"
Requires-Dist: async-timeout (>=3.0.0) ; python_version < "3.11"
Requires-Dist: bleak (>=0.19.0)
Requires-Dist: bleak-retry-connector (>=2.3.0)
Requires-Dist: flux-led (>=0.28.32)
Requires-Dist: myst-parser (>=0.18,<0.19); extra == "docs"
Requires-Dist: sphinx-rtd-theme (>=1.0,<2.0); extra == "docs"
Requires-Dist: myst-parser (>=0.18,<0.19) ; extra == "docs"
Requires-Dist: sphinx-rtd-theme (>=1.0,<2.0) ; extra == "docs"
Project-URL: Bug Tracker, https://github.com/bluetooth-devices/led-ble/issues

@@ -30,0 +30,0 @@ Project-URL: Changelog, https://github.com/bluetooth-devices/led-ble/blob/main/CHANGELOG.md

[tool.poetry]
name = "led-ble"
version = "1.0.0"
version = "1.0.1"
description = "Control a wide range of LED BLE devices"

@@ -34,3 +34,3 @@ authors = ["J. Nick Koston <nick@koston.org>"]

bleak = ">=0.19.0"
async-timeout = ">=4.0.1"
async-timeout = {version = ">=3.0.0", python = "<3.11"}
flux-led = ">=0.28.32"

@@ -37,0 +37,0 @@

from __future__ import annotations
__version__ = "1.0.0"
__version__ = "1.0.1"

@@ -5,0 +5,0 @@

@@ -10,3 +10,2 @@ from __future__ import annotations

import async_timeout
from bleak.backends.device import BLEDevice

@@ -39,2 +38,3 @@ from bleak.backends.scanner import AdvertisementData

from .models import LEDBLEState
from .util import asyncio_timeout

@@ -503,3 +503,9 @@ BLEAK_BACKOFF_TIME = 0.25

if client and client.is_connected:
await client.stop_notify(read_char)
if read_char:
try:
await client.stop_notify(read_char)
except BleakError:
_LOGGER.debug(
"%s: Failed to stop notifications", self.name, exc_info=True
)
await client.disconnect()

@@ -611,3 +617,3 @@

await self._send_command_while_connected([STATE_COMMAND])
async with async_timeout.timeout(10):
async with asyncio_timeout(10):
await self._resolve_protocol_event.wait()

@@ -614,0 +620,0 @@

# -*- coding: utf-8 -*-
from setuptools import setup
package_dir = \
{'': 'src'}
packages = \
['led_ble']
package_data = \
{'': ['*']}
install_requires = \
['async-timeout>=4.0.1',
'bleak-retry-connector>=2.3.0',
'bleak>=0.19.0',
'flux-led>=0.28.32']
extras_require = \
{'docs': ['Sphinx>=5.0,<6.0',
'sphinx-rtd-theme>=1.0,<2.0',
'myst-parser>=0.18,<0.19']}
setup_kwargs = {
'name': 'led-ble',
'version': '1.0.0',
'description': 'Control a wide range of LED BLE devices',
'long_description': '# LED BLE\n\n<p align="center">\n <a href="https://github.com/bluetooth-devices/led-ble/actions?query=workflow%3ACI">\n <img src="https://img.shields.io/github/workflow/status/bluetooth-devices/led-ble/CI/main?label=CI&logo=github&style=flat-square" alt="CI Status" >\n </a>\n <a href="https://led-ble.readthedocs.io">\n <img src="https://img.shields.io/readthedocs/led-ble.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">\n </a>\n <a href="https://codecov.io/gh/bluetooth-devices/led-ble">\n <img src="https://img.shields.io/codecov/c/github/bluetooth-devices/led-ble.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">\n </a>\n</p>\n<p align="center">\n <a href="https://python-poetry.org/">\n <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">\n </a>\n <a href="https://github.com/ambv/black">\n <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">\n </a>\n <a href="https://github.com/pre-commit/pre-commit">\n <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">\n </a>\n</p>\n<p align="center">\n <a href="https://pypi.org/project/led-ble/">\n <img src="https://img.shields.io/pypi/v/led-ble.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">\n </a>\n <img src="https://img.shields.io/pypi/pyversions/led-ble.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">\n <img src="https://img.shields.io/pypi/l/led-ble.svg?style=flat-square" alt="License">\n</p>\n\nControl a wide range of LED BLE devices\n\n## Installation\n\nInstall this via pip (or your favourite package manager):\n\n`pip install led-ble`\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- prettier-ignore-start -->\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n<!-- prettier-ignore-end -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## Credits\n\nThis package was created with\n[Cookiecutter](https://github.com/audreyr/cookiecutter) and the\n[browniebroke/cookiecutter-pypackage](https://github.com/browniebroke/cookiecutter-pypackage)\nproject template.\n',
'author': 'J. Nick Koston',
'author_email': 'nick@koston.org',
'maintainer': 'None',
'maintainer_email': 'None',
'url': 'https://github.com/bluetooth-devices/led-ble',
'package_dir': package_dir,
'packages': packages,
'package_data': package_data,
'install_requires': install_requires,
'extras_require': extras_require,
'python_requires': '>=3.9,<4.0',
}
setup(**setup_kwargs)