معرفی شرکت ها


beward-1.1.7


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Constants.
ویژگی مقدار
سیستم عامل -
نام فایل beward-1.1.7
نام beward
نسخه کتابخانه 1.1.7
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Andrey "Limych" Khrolenok
ایمیل نویسنده andrey@khrolenok.ru
آدرس صفحه اصلی https://github.com/Limych/py-beward
آدرس اینترنتی https://pypi.org/project/beward/
مجوز Creative Commons BY-NC-SA License
*Please :star: this repo if you find it useful* # py-beward [![PyPI version][pypi-shield]][pypi] [![PyPI Python version][pypi-pyversion]][pypi] [![Maintained][Maintained]](#) [![Project Maintenance][maintenance-shield]][user_profile] [![Support me on Patreon][patreon-shield]][patreon] _Python API for Beward Cameras and Doorbells. This is used in [Home Assistant component](https://github.com/Limych/ha-beward/) but should be generic enough that can be used elsewhere._ ## Installation ```bash pip install beward ``` ## Usage example Discovery devices: ```python from beward import Beward for dev in Beward.discovery().values(): print(f"Found device \"{dev.name}\" at http://{dev.host_ip}:{dev.http_port}") ``` Initialize one device and listen for events: ```python import time from beward import Beward from beward.const import ALARM_ONLINE, ALARM_MOTION, ALARM_SENSOR def handler(device, timestamp, alarm, state): print('Handling alarm "%s". State: %d' % (alarm, state)) DEVICE_HOST = '192.168.1.100' DEVICE_USER = 'admin' DEVICE_PASS = 'password' bwd = Beward.factory(DEVICE_HOST, DEVICE_USER, DEVICE_PASS, stream=1) bwd.add_alarms_handler(handler) bwd.listen_alarms(alarms=(ALARM_ONLINE, ALARM_MOTION, ALARM_SENSOR)) print('Live image URL:', bwd.live_image_url) print('RTSP live video URL:', bwd.rtsp_live_video_url) print('Live image:', bwd.camera_image()) for decade in range(10): print('Time: %ds' % (decade * 10)) time.sleep(10) print('Bye') ``` ## Contributions are welcome! This is an active open-source project. We are always open to people who want to use the code or contribute to it. We have set up a separate document containing our [contribution guidelines](CONTRIBUTING.md). Thank you for being involved! :heart_eyes: ## Authors & contributors The original setup of this library is by [Andrey "Limych" Khrolenok](https://github.com/Limych). For a full list of all authors and contributors, check [the contributor's page][contributors]. This project was created and is updated using the [Py-Blueprint template](https://github.com/Limych/py-blueprint). You can use this template to maintain your own projects. ## License creative commons Attribution-NonCommercial-ShareAlike 4.0 International License See separate [license file](LICENSE.md) for full text. [contributors]: https://github.com/Limych/py-beward/graphs/contributors [license]: https://github.com/Limych/ha-beward/blob/main/LICENSE.md [license-shield]: https://img.shields.io/badge/license-Creative_Commons_BY--NC--SA_License-lightgray.svg?style=popout [maintained]: https://img.shields.io/maintenance/yes/2022.svg?style=popout [maintenance-shield]: https://img.shields.io/badge/maintainer-Andrey%20Khrolenok%20%40Limych-blue.svg?style=popout [user_profile]: https://github.com/Limych [pypi]: https://pypi.org/project/beward/ [pypi-pyversion]: https://img.shields.io/pypi/pyversions/beward.svg?style=popout [pypi-shield]: https://img.shields.io/pypi/v/beward.svg?style=popout [patreon-shield]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3DLimych%26type%3Dpatrons&style=popout [patreon]: https://www.patreon.com/join/limych


نیازمندی

مقدار نام
~=2.25 requests
==3.3 hexdump


نحوه نصب


نصب پکیج whl beward-1.1.7:

    pip install beward-1.1.7.whl


نصب پکیج tar.gz beward-1.1.7:

    pip install beward-1.1.7.tar.gz