Name | mr-star-ble JSON |
Version |
0.4.1
JSON |
| download |
home_page | None |
Summary | Integrating MR Star light into Python |
upload_time | 2024-12-13 21:24:59 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT |
keywords |
light
led
bleak
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# MR Star BLE [![Quality assurance](https://github.com/mishamyrt/mr-star-ble/actions/workflows/qa.yaml/badge.svg)](https://github.com/mishamyrt/mr-star-ble/actions/workflows/qa.yaml)
This library allows you to control BLE devices supported by MR Star application via Python.
## Installation
```bash
pip install mr_star_ble
```
## Usage
```python
import asyncio
from mr_star_ble import MrStarLight
async def main():
# Find and connect to a MR Star light device
device = await MrStarLight.discover()
await device.connect()
# Set the light state
await device.set_power(False)
await device.set_brightness(0.01)
await device.set_rgb_color((255, 0, 0))
asyncio.run(main())
```
Raw data
{
"_id": null,
"home_page": null,
"name": "mr-star-ble",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "light, led, bleak",
"author": null,
"author_email": "Mikhael Khrustik <misha@myrt.co>",
"download_url": "https://files.pythonhosted.org/packages/8c/ac/fa230c5310e2f9b10f47863b909c9d0fd96271a96295229c75839e3c5046/mr_star_ble-0.4.1.tar.gz",
"platform": null,
"description": "# MR Star BLE [![Quality assurance](https://github.com/mishamyrt/mr-star-ble/actions/workflows/qa.yaml/badge.svg)](https://github.com/mishamyrt/mr-star-ble/actions/workflows/qa.yaml)\n\nThis library allows you to control BLE devices supported by MR Star application via Python.\n\n## Installation\n\n```bash\npip install mr_star_ble\n```\n\n## Usage\n\n```python\nimport asyncio\nfrom mr_star_ble import MrStarLight\n\nasync def main():\n # Find and connect to a MR Star light device\n device = await MrStarLight.discover()\n await device.connect()\n # Set the light state\n await device.set_power(False)\n await device.set_brightness(0.01)\n await device.set_rgb_color((255, 0, 0))\n\nasyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Integrating MR Star light into Python",
"version": "0.4.1",
"project_urls": null,
"split_keywords": [
"light",
" led",
" bleak"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7dd935fcc74f6dadf1845e34a118d5171f9fd506ab9e3cc11c1a823c56c4a85f",
"md5": "d0a0a737646146bb6f7a481d0b6ea015",
"sha256": "47dcec932a6f5b33704b4a91f5e4be8b4372683656d9fcfc43b81efbfaf7f675"
},
"downloads": -1,
"filename": "mr_star_ble-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d0a0a737646146bb6f7a481d0b6ea015",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 8380,
"upload_time": "2024-12-13T21:24:58",
"upload_time_iso_8601": "2024-12-13T21:24:58.269003Z",
"url": "https://files.pythonhosted.org/packages/7d/d9/35fcc74f6dadf1845e34a118d5171f9fd506ab9e3cc11c1a823c56c4a85f/mr_star_ble-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8cacfa230c5310e2f9b10f47863b909c9d0fd96271a96295229c75839e3c5046",
"md5": "4b04e877804fe50c113ea8839e2f7c74",
"sha256": "cc939bf246e9e26d358fce5e64e0e581e329966de8a292cf5bb52b1d74de4504"
},
"downloads": -1,
"filename": "mr_star_ble-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "4b04e877804fe50c113ea8839e2f7c74",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 10510,
"upload_time": "2024-12-13T21:24:59",
"upload_time_iso_8601": "2024-12-13T21:24:59.336672Z",
"url": "https://files.pythonhosted.org/packages/8c/ac/fa230c5310e2f9b10f47863b909c9d0fd96271a96295229c75839e3c5046/mr_star_ble-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-13 21:24:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "mr-star-ble"
}