{ "info": { "author": "Kevin O'Connor", "author_email": "kjoconnor@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: Unix", "Programming Language :: Python :: 3", "Topic :: Home Automation" ], "description": "# Hatch Baby Rest Python Bindings\nThis library will allow you to control a [Hatch Baby Rest device](https://www.hatchbaby.com/rest) (note, /not/ the Hatch Baby Rest+, which is Wi-Fi enabled) over [BLE](https://en.wikipedia.org/wiki/Bluetooth_Low_Energy).\n\n## Requirements\nThe pygatt backend was tested on a Raspberry Pi 3 Model B Rev 1.2, but should work on any Unix system that is compatible with the `GATTToolBackend` of [pygatt](https://github.com/peplin/pygatt).\n\nThe bleak (async) backend was tested on a 2019 MacBook Pro, but should work on any system that [bleak](https://github.com/hbldh/bleak) is compatible with.\n\n## Installation\n`pip install pyhatchbabyrest`\n\n## Examples\n### pygatt backend (synchronous)\n```python3\nIn [1]: from pyhatchbabyrest import PyHatchBabyRest\n\nIn [2]: rest = PyHatchBabyRest()\n\nIn [3]: rest.power\nOut[3]: False\n\nIn [4]: rest.power_on()\n\nIn [5]: rest.volume\nOut[5]: 30\n\nIn [6]: rest.set_volume(10)\n\nIn [7]: rest.volume\nOut[7]: 10\n\nIn [8]: rest.set_color(255, 0, 0)\n\nIn [9]: rest.color\nOut[9]: (255, 0, 0)\n\nIn [10]: rest.set_brightness(100)\n\nIn [11]: rest.set_sound(PyHatchBabyRestSound.stream)\n\nIn [12]: rest.sound\nOut[12]: \n\nIn [13]: rest.set_color(*PyHatchBabyRest.COLOR_GRADIENT)\n\nIn [14]: rest.connected\nOut[14]: True\n\nIn [15]: rest.disconnect()\n\nIn [16]: rest.connected\nOut[16]: False\n```\n\n### bleak backend (async and a little more portable)\n```python3\nIn [1]: from pyhatchbabyrest import PyHatchBabyRestAsync\n\nIn [2]: rest = PyHatchBabyRestAsync()\n\nIn [3]: import asyncio\n\nIn [4]: loop = asyncio.get_event_loop()\n\nIn [5]: r = loop.run_until_complete\n\nIn [6]: r(rest.power_on())\n\nIn [7]: r(rest.set_volume(100))\n\nIn [8]: r(rest.set_volume(10))\n\nIn [9]: r(rest.power_off())\n\nIn [10]: rest.sound\nOut[10]: \n```\n\n## Credits\nHuge thanks to @Marcus-L for their repo at [GitHub - Marcus-L/m4rcus.HatchBaby.Rest: Control Hatch Baby Rest devices using Bluetooth LE](https://github.com/Marcus-L/m4rcus.HatchBaby.Rest) which did all the hard work of finding the right characteristics, commands, etc.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kjoconnor/pyhatchbabyrest", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyhatchbabyrest", "package_url": "https://pypi.org/project/pyhatchbabyrest/", "platform": "", "project_url": "https://pypi.org/project/pyhatchbabyrest/", "project_urls": { "Homepage": "https://github.com/kjoconnor/pyhatchbabyrest" }, "release_url": "https://pypi.org/project/pyhatchbabyrest/2.0.1/", "requires_dist": [ "bleak", "pygatt" ], "requires_python": ">=3.5", "summary": "Python library to control Hatch Baby Rest devices", "version": "2.0.1", "yanked": false, "yanked_reason": null }, "last_serial": 8953753, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0c30aacc4c3356ead7020a614c5cb513", "sha256": "bb1aa59050fec4f5b8aeea236bcdae5a4dfec62da227c0d98e5fdb95a727f760" }, "downloads": -1, "filename": "pyhatchbabyrest-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0c30aacc4c3356ead7020a614c5cb513", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4186, "upload_time": "2019-10-20T04:37:38", "upload_time_iso_8601": "2019-10-20T04:37:38.084404Z", "url": "https://files.pythonhosted.org/packages/77/b2/bea2a6ab30bb4f4407d87598008d3d0234038ee0bfee071d518731e60f3e/pyhatchbabyrest-1.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b68267d40f5ead1e1b19eea36d9f0fd4", "sha256": "29f8ed859337779187ff023392c5fd8fbc70e078cfd02e9ee4797349c887aef6" }, "downloads": -1, "filename": "pyhatchbabyrest-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b68267d40f5ead1e1b19eea36d9f0fd4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2907, "upload_time": "2019-10-20T04:37:40", "upload_time_iso_8601": "2019-10-20T04:37:40.688864Z", "url": "https://files.pythonhosted.org/packages/68/1f/b7d22ea5832f5dc641ccc368f1c2b0366d139a6d16b778c3403e8ea79f05/pyhatchbabyrest-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f6748907975be944872f77807a70daea", "sha256": "f3f55457a2cb31a503c53ac15cf9314e4283e908753a766a3d2d44bc76157516" }, "downloads": -1, "filename": "pyhatchbabyrest-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f6748907975be944872f77807a70daea", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4201, "upload_time": "2019-10-24T21:21:12", "upload_time_iso_8601": "2019-10-24T21:21:12.814780Z", "url": "https://files.pythonhosted.org/packages/8e/30/ce41d360f6b6fa3376e1e0d29ccb00b5e2e7e903bfb9d7f804d7153dec8f/pyhatchbabyrest-1.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e9c17684bb6f26b9ffc3259a631e0e35", "sha256": "efa73d2b0292b79325293a74af2db18764370dbb6c7213f448a52494232a2abf" }, "downloads": -1, "filename": "pyhatchbabyrest-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e9c17684bb6f26b9ffc3259a631e0e35", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2931, "upload_time": "2019-10-24T21:21:15", "upload_time_iso_8601": "2019-10-24T21:21:15.373830Z", "url": "https://files.pythonhosted.org/packages/68/0a/1f98493ddaaee29db4e2852836d487bc9a981bb49c72db4c9f21bb128e55/pyhatchbabyrest-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "6d2deaca8a19521b67c3f39a70211edf", "sha256": "edd96820a3e66fbe94f3641166144a7baae49c2dc2915b1f0663c2af7b66d599" }, "downloads": -1, "filename": "pyhatchbabyrest-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6d2deaca8a19521b67c3f39a70211edf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 8993, "upload_time": "2020-12-21T16:37:46", "upload_time_iso_8601": "2020-12-21T16:37:46.406406Z", "url": "https://files.pythonhosted.org/packages/32/c3/f671c866a4b6bd11e2f44ac698263c5a99a5dfd07b88ecebf3f5dd439d7a/pyhatchbabyrest-2.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "50bfb7c267c20a460b75998dae2c3449", "sha256": "34b6e2b1dee57cb7c6f62c28855bddbc54ba70d30e3b9a8034d127e687e7e3a0" }, "downloads": -1, "filename": "pyhatchbabyrest-2.0.0.tar.gz", "has_sig": false, "md5_digest": "50bfb7c267c20a460b75998dae2c3449", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 6345, "upload_time": "2020-12-21T16:37:47", "upload_time_iso_8601": "2020-12-21T16:37:47.775471Z", "url": "https://files.pythonhosted.org/packages/cb/3f/10c57597cf3218f0cf28d4c4ea7efa9c0a205d6e97ad7f6c9a9efc00f383/pyhatchbabyrest-2.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "eb180d9a3c9aae07b14c0df20a1c0e35", "sha256": "538448fdf46db7ecce4816ad41f37e8604f1f6613663f74a48ef24cf65cc1fb7" }, "downloads": -1, "filename": "pyhatchbabyrest-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "eb180d9a3c9aae07b14c0df20a1c0e35", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6143, "upload_time": "2020-12-21T18:13:21", "upload_time_iso_8601": "2020-12-21T18:13:21.031969Z", "url": "https://files.pythonhosted.org/packages/5d/20/38739c63f55b5ed864cd5e57132264981d25c67363eb647e572883e6f843/pyhatchbabyrest-2.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e7312124f304dd49bfc7a7fcd82c4077", "sha256": "9a078ad2102416cdec8ae20729c2eb01de391b2ad52de04a252ab237e91170ca" }, "downloads": -1, "filename": "pyhatchbabyrest-2.0.1.tar.gz", "has_sig": false, "md5_digest": "e7312124f304dd49bfc7a7fcd82c4077", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 4194, "upload_time": "2020-12-21T18:13:22", "upload_time_iso_8601": "2020-12-21T18:13:22.455448Z", "url": "https://files.pythonhosted.org/packages/f7/00/c23139d421e7f321b72696dc9cc4da730ef1d9f500d6ee7153aed977f82d/pyhatchbabyrest-2.0.1.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb180d9a3c9aae07b14c0df20a1c0e35", "sha256": "538448fdf46db7ecce4816ad41f37e8604f1f6613663f74a48ef24cf65cc1fb7" }, "downloads": -1, "filename": "pyhatchbabyrest-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "eb180d9a3c9aae07b14c0df20a1c0e35", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6143, "upload_time": "2020-12-21T18:13:21", "upload_time_iso_8601": "2020-12-21T18:13:21.031969Z", "url": "https://files.pythonhosted.org/packages/5d/20/38739c63f55b5ed864cd5e57132264981d25c67363eb647e572883e6f843/pyhatchbabyrest-2.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e7312124f304dd49bfc7a7fcd82c4077", "sha256": "9a078ad2102416cdec8ae20729c2eb01de391b2ad52de04a252ab237e91170ca" }, "downloads": -1, "filename": "pyhatchbabyrest-2.0.1.tar.gz", "has_sig": false, "md5_digest": "e7312124f304dd49bfc7a7fcd82c4077", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 4194, "upload_time": "2020-12-21T18:13:22", "upload_time_iso_8601": "2020-12-21T18:13:22.455448Z", "url": "https://files.pythonhosted.org/packages/f7/00/c23139d421e7f321b72696dc9cc4da730ef1d9f500d6ee7153aed977f82d/pyhatchbabyrest-2.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }