{"id":13754954,"url":"https://github.com/K1rL3s/aliceio","last_synced_at":"2025-05-10T00:31:22.658Z","repository":{"id":220361894,"uuid":"737131966","full_name":"K1rL3s/aliceio","owner":"K1rL3s","description":"🐍 Асинхронный фреймворк для разработки навыков Алисы из Яндекс.Диалогов","archived":false,"fork":false,"pushed_at":"2025-02-20T00:32:59.000Z","size":2526,"stargazers_count":60,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T16:54:32.969Z","etag":null,"topics":["alice","alice-skills","aliceio","asyncio","bot","framework","python","yandex","yandex-alice","yandex-dialogs","yandex-dialogs-sdk","yandex-lyceum"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/aliceio/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/K1rL3s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-29T23:21:50.000Z","updated_at":"2025-03-27T17:08:11.000Z","dependencies_parsed_at":"2024-08-03T10:01:55.245Z","dependency_job_id":"3ab55096-6436-426f-b142-c76fa6f12e6c","html_url":"https://github.com/K1rL3s/aliceio","commit_stats":null,"previous_names":["k1rl3s/aliceio"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1rL3s%2Faliceio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1rL3s%2Faliceio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1rL3s%2Faliceio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K1rL3s%2Faliceio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/K1rL3s","download_url":"https://codeload.github.com/K1rL3s/aliceio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253346427,"owners_count":21894263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alice","alice-skills","aliceio","asyncio","bot","framework","python","yandex","yandex-alice","yandex-dialogs","yandex-dialogs-sdk","yandex-lyceum"],"created_at":"2024-08-03T10:00:37.728Z","updated_at":"2025-05-10T00:31:22.628Z","avatar_url":"https://github.com/K1rL3s.png","language":"Python","funding_links":[],"categories":["Разработка"],"sub_categories":["SDK"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/K1rl3s/aliceio\"\u003e\n    \u003cimg width=\"200px\" height=\"200px\" alt=\"aliceio\" src=\"https://raw.githubusercontent.com/K1rL3s/aliceio/master/docs/_static/logo-aliceio-trans-text.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  AliceIO\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![License](https://img.shields.io/pypi/l/aliceio.svg?style=flat)](https://github.com/K1rL3s/aliceio/blob/master/LICENSE)\n[![Status](https://img.shields.io/pypi/status/aliceio.svg?style=flat)](https://pypi.org/project/aliceio/)\n[![PyPI](https://img.shields.io/pypi/v/aliceio?label=pypi\u0026style=flat)](https://pypi.org/project/aliceio/)\n[![Downloads](https://img.shields.io/pypi/dm/aliceio.svg?style=flat)](https://pypi.org/project/aliceio/)\n[![GitHub Repo stars](https://img.shields.io/github/stars/K1rL3s/aliceio?style=flat)](https://github.com/K1rL3s/aliceio/stargazers)\n[![Supported python versions](https://img.shields.io/pypi/pyversions/aliceio.svg?style=flat)](https://pypi.org/project/aliceio/)\n[![Tests](https://img.shields.io/github/actions/workflow/status/K1rL3s/aliceio/tests.yml?style=flat)](https://github.com/K1rL3s/aliceio/actions)\n[![Coverage](https://codecov.io/gh/K1rL3s/aliceio/graph/badge.svg?style=flat)](https://codecov.io/gh/K1rL3s/aliceio)\n\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n    \u003cb\u003e\n        Асинхронный фреймворк для разработки\n        \u003ca target=\"_blank\" href=\"https://dialogs.yandex.ru/store\"\u003eнавыков Алисы\u003c/a\u003e\n        из\n        \u003ca target=\"_blank\" href=\"https://dialogs.yandex.ru/development\"\u003eЯндекс.Диалогов\u003c/a\u003e\n    \u003c/b\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    Based on \u003ca target=\"_blank\" href=\"https://github.com/aiogram/aiogram/tree/dev-3.x\"\u003eaiogram v3\u003c/a\u003e\n\u003c/p\u003e\n\n## Особенности\n- Асинхронность ([asyncio docs](https://docs.python.org/3/library/asyncio.html), [PEP 492](http://www.python.org/dev/peps/pep-0492))\n- Тайп-хинты ([PEP 484](http://www.python.org/dev/peps/pep-0484), может быть использован с [mypy](http://mypy-lang.org/))\n- Поддержка [PyPy](https://www.pypy.org/)\n- Роутеры (Blueprints)\n- Машина состояний (Finite State Machine)\n- Мидлвари (для входящих событий и вызовов API)\n- Мощные [магические фильтры](https://github.com/aiogram/magic-filter)\n- Реакция на [долгое время работы](https://yandex.ru/dev/dialogs/alice/doc/publish-settings.html#troubleshooting)\n- Поддержка [облачных функций Яндекса](https://yandex.cloud/ru/services/functions)\n\n\n### Важно!\nРекомендуется иметь опыт работы с [asyncio](https://docs.python.org/3/library/asyncio.html) перед использованием **aliceio**\n\n\n## Быстрый старт\n\nКак получить `skill_id` и подключить навык к Алисе можно прочитать \u003ca target=\"_blank\" href=\"https://aliceio.readthedocs.io/ru/latest/tutorial/\"\u003eтут\u003c/a\u003e.\n\n### [Yandex Cloud Functions](https://yandex.ru/dev/dialogs/alice/doc/ru/quickstart-programming):\n```python\nfrom aliceio import Dispatcher, Skill\nfrom aliceio.types import Message\nfrom aliceio.webhook.yandex_functions import OneSkillYandexFunctionsRequestHandler\n\ndp = Dispatcher()\nskill = Skill(skill_id=\"...\")\nrequests_handler = OneSkillYandexFunctionsRequestHandler(dispatcher=dp, skill=skill)\n\n@dp.message()\nasync def hello(message: Message) -\u003e str:\n    return f\"Привет, {message.session.application.application_id}!\"\n\nasync def main(event, context):\n    return await requests_handler(event, context)\n```\n\n### Вебхук:\n```python\nfrom aiohttp import web\nfrom aliceio import Dispatcher, Skill\nfrom aliceio.types import Message\nfrom aliceio.webhook.aiohttp_server import OneSkillAiohttpRequestHandler, setup_application\n\ndp = Dispatcher()\nskill = Skill(skill_id=\"...\")\n\n@dp.message()\nasync def hello(message: Message) -\u003e str:\n    return f\"Привет, {message.session.application.application_id}!\"\n\ndef main() -\u003e None:\n    app = web.Application()\n    requests_handler = OneSkillAiohttpRequestHandler(dispatcher=dp, skill=skill)\n\n    WEB_SERVER_HOST = \"127.0.0.1\"\n    WEB_SERVER_PORT = 80\n    WEBHOOK_PATH = \"/alice\"\n\n    requests_handler.register(app, path=WEBHOOK_PATH)\n    setup_application(app, dp, skill=skill)\n    web.run_app(app, host=WEB_SERVER_HOST, port=WEB_SERVER_PORT)\n\nif __name__ == \"__main__\":\n    main()\n```\n\n\n## Материалы\n- [Туториал](https://aliceio.readthedocs.io/ru/latest/tutorial/)\n- [Документация](https://aliceio.readthedocs.io/)\n- [Примеры](https://github.com/K1rL3s/aliceio/tree/master/examples)\n\n\n## Связь\nЕсли у вас есть вопросы, вы можете задать их в Телеграм чате\n- 🇷🇺 [\\@aliceio_chat](https://t.me/aliceio_chat)\n\n\n## Лицензия\nCopyright © 2023-2025 [K1rL3s](https://github.com/K1rL3s) and [ZloyKobra](https://github.com/ZloyKobra) \\\nЭтот проект использует [MIT](https://github.com/K1rL3s/aliceio/blob/master/LICENSE) лицензию\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FK1rL3s%2Faliceio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FK1rL3s%2Faliceio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FK1rL3s%2Faliceio/lists"}