# KeyRT
Не знаю, зачем тебе может понадобиться автоматизация открытия дверей и выдачи кодов,
но это твоё право, я даю тебе удобный инструмент для его реализации. Да здравствует питон.
## Установка
```shell
python -m pip install -U keyrt
```
## Использование
### Открытие двери
```python
from keyrt import KeyRT
async def main():
keyrt_client = KeyRT(access_token='YOUR_ACCESS_TOKEN')
# Список устройств: домофон, шлагбаум, ворота
devices = await keyrt_client.get_devices()
for i, device in enumerate(devices):
example = devices[i]
assert example is device
example = devices[device.]
assert await keyrt_client.open_device(devices[0].id)
# Камеры
cameras = await keyrt_client.get_cameras()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/WhiteApfel/keyrt",
"name": "keyrt",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "WhiteApfel",
"author_email": "white@pfel.ru",
"download_url": "https://files.pythonhosted.org/packages/35/a7/9209af5d3d192c09ce6c67c65b28bd609e56a21510d86720fed9f932f740/keyrt-0.0.4a2.tar.gz",
"platform": null,
"description": "# KeyRT\n\n\u041d\u0435 \u0437\u043d\u0430\u044e, \u0437\u0430\u0447\u0435\u043c \u0442\u0435\u0431\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0432\u0435\u0440\u0435\u0439 \u0438 \u0432\u044b\u0434\u0430\u0447\u0438 \u043a\u043e\u0434\u043e\u0432,\n\u043d\u043e \u044d\u0442\u043e \u0442\u0432\u043e\u0451 \u043f\u0440\u0430\u0432\u043e, \u044f \u0434\u0430\u044e \u0442\u0435\u0431\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0414\u0430 \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0438\u0442\u043e\u043d.\n\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\n\n```shell\npython -m pip install -U keyrt\n```\n\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\n\n### \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0434\u0432\u0435\u0440\u0438\n\n```python\nfrom keyrt import KeyRT\n\nasync def main():\n keyrt_client = KeyRT(access_token='YOUR_ACCESS_TOKEN')\n \n # \u0421\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432: \u0434\u043e\u043c\u043e\u0444\u043e\u043d, \u0448\u043b\u0430\u0433\u0431\u0430\u0443\u043c, \u0432\u043e\u0440\u043e\u0442\u0430\n devices = await keyrt_client.get_devices()\n \n for i, device in enumerate(devices):\n example = devices[i]\n assert example is device\n \n example = devices[device.]\n \n assert await keyrt_client.open_device(devices[0].id)\n \n # \u041a\u0430\u043c\u0435\u0440\u044b \n cameras = await keyrt_client.get_cameras()\n \n```\n",
"bugtrack_url": null,
"license": "Mozilla Public License 2.0",
"summary": "KeyRT",
"version": "0.0.4a2",
"project_urls": {
"Homepage": "https://github.com/WhiteApfel/keyrt"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ea41791a3c093f9ac18ad55a6c9c47acccfeb164a733072e8b4f2ce9829ae126",
"md5": "f6b38cb17c4a559d0d7d8d09f2cce105",
"sha256": "366cbf3dc5cf52936fbe8d6ad4be7846ea341ba5e56b3809387cf1729fa25681"
},
"downloads": -1,
"filename": "keyrt-0.0.4a2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f6b38cb17c4a559d0d7d8d09f2cce105",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7441,
"upload_time": "2023-05-06T13:19:12",
"upload_time_iso_8601": "2023-05-06T13:19:12.941486Z",
"url": "https://files.pythonhosted.org/packages/ea/41/791a3c093f9ac18ad55a6c9c47acccfeb164a733072e8b4f2ce9829ae126/keyrt-0.0.4a2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "35a79209af5d3d192c09ce6c67c65b28bd609e56a21510d86720fed9f932f740",
"md5": "9d5dc774e93a1ceae5e4b7b30e4bfcd4",
"sha256": "b8592df35715ccc1cf52944bac8bb6f3db66ea31f6d17abbb83267c53d8da21f"
},
"downloads": -1,
"filename": "keyrt-0.0.4a2.tar.gz",
"has_sig": false,
"md5_digest": "9d5dc774e93a1ceae5e4b7b30e4bfcd4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7222,
"upload_time": "2023-05-06T13:19:15",
"upload_time_iso_8601": "2023-05-06T13:19:15.125193Z",
"url": "https://files.pythonhosted.org/packages/35/a7/9209af5d3d192c09ce6c67c65b28bd609e56a21510d86720fed9f932f740/keyrt-0.0.4a2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-06 13:19:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "WhiteApfel",
"github_project": "keyrt",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "keyrt"
}