{"id":13754950,"url":"https://github.com/avidale/dialogic","last_synced_at":"2026-01-16T11:45:57.023Z","repository":{"id":62568026,"uuid":"344278660","full_name":"avidale/dialogic","owner":"avidale","description":"Yet another common Python wrapper for Alice and Salut skills and bots in Telegram, VK, and Facebook","archived":false,"fork":false,"pushed_at":"2023-03-16T14:13:11.000Z","size":308,"stargazers_count":28,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T22:54:51.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avidale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-03-03T22:15:33.000Z","updated_at":"2025-08-14T07:03:23.000Z","dependencies_parsed_at":"2024-01-13T02:48:31.164Z","dependency_job_id":null,"html_url":"https://github.com/avidale/dialogic","commit_stats":{"total_commits":169,"total_committers":3,"mean_commits":"56.333333333333336","dds":0.4674556213017751,"last_synced_commit":"c5b0da161da5138ce0bea157a98421b148406970"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avidale/dialogic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidale%2Fdialogic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidale%2Fdialogic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidale%2Fdialogic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidale%2Fdialogic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avidale","download_url":"https://codeload.github.com/avidale/dialogic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avidale%2Fdialogic/sbom","scorecard":{"id":218130,"data":{"date":"2025-08-11","repo":{"name":"github.com/avidale/dialogic","commit":"c5b0da161da5138ce0bea157a98421b148406970"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3749-ghw9-m3mg","Warn: Project is vulnerable to: PYSEC-2022-43015 / GHSA-47fc-vmwq-366v","Warn: Project is vulnerable to: PYSEC-2025-41 / GHSA-53q9-r3pm-6pq6","Warn: Project is vulnerable to: PYSEC-2024-252 / GHSA-5pcm-hx3q-hm94","Warn: Project is vulnerable to: GHSA-887c-mr87-cxwp","Warn: Project is vulnerable to: PYSEC-2024-251 / GHSA-pg7h-5qx3-wjr3","Warn: Project is vulnerable to: PYSEC-2024-250","Warn: Project is vulnerable to: PYSEC-2024-259","Warn: Project is vulnerable to: PYSEC-2023-299 / GHSA-282v-666c-3fvg","Warn: Project is vulnerable to: GHSA-37mw-44qp-f5jm","Warn: Project is vulnerable to: GHSA-37q5-v5qm-c9v8","Warn: Project is vulnerable to: PYSEC-2023-300 / GHSA-3863-2447-669p","Warn: Project is vulnerable to: GHSA-6rvg-6v2m-4j46","Warn: Project is vulnerable to: GHSA-9356-575x-2w9m","Warn: Project is vulnerable to: GHSA-fpwr-67px-3qhx","Warn: Project is vulnerable to: PYSEC-2024-229 / GHSA-hxxf-235m-72v3","Warn: Project is vulnerable to: GHSA-jjph-296x-mrcr","Warn: Project is vulnerable to: GHSA-phhr-52qp-3mj4","Warn: Project is vulnerable to: GHSA-q2wp-rjmx-x6x9","Warn: Project is vulnerable to: PYSEC-2025-40 / GHSA-qq3j-4f4f-9583","Warn: Project is vulnerable to: PYSEC-2024-227 / GHSA-qxrp-vhvm-j765","Warn: Project is vulnerable to: PYSEC-2023-301 / GHSA-v68g-wm8c-6x7j","Warn: Project is vulnerable to: PYSEC-2024-228 / GHSA-wrfc-pvp9-mr9g"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T02:01:07.462Z","repository_id":62568026,"created_at":"2025-08-17T02:01:07.462Z","updated_at":"2025-08-17T02:01:07.462Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-08-03T10:00:37.639Z","updated_at":"2026-01-16T11:45:57.004Z","avatar_url":"https://github.com/avidale.png","language":"Python","funding_links":[],"categories":["Разработка"],"sub_categories":["SDK"],"readme":"# dialogic\n[![PyPI version](https://badge.fury.io/py/dialogic.svg)](https://badge.fury.io/py/dialogic)\n\n[readme in english](https://github.com/avidale/dialogic/blob/master/README_en.md)\n\nЭто очередная обёртка на Python для навыков\n[Алисы](https://yandex.ru/dev/dialogs/alice/doc/about.html) и \n[Салюта](https://salute.sber.ru/smartmarket/dev/) (Сбер) и ботов\nв Telegram \u003csup\u003e[*](#footnote1)\u003c/sup\u003e, VK, и Facebook.\n\nОна позволяет как быстро писать прототипы ботов для разных платформ, \nтак и масштабировать их, когда кода и сценариев становится много.\n\nРанее пакет был известен как [tgalice](https://github.com/avidale/tgalice).\n\nУстановка [пакета](https://pypi.org/project/dialogic/): `pip install dialogic`\n\n## Пример кода\n\nНиже описан бот, который на приветствие отвечает приветствием,\nа на все остальные фразы - заглушкой по умолчанию.\n\n```python\nfrom dialogic.dialog_connector import DialogConnector\nfrom dialogic.dialog_manager import TurnDialogManager\nfrom dialogic.server.flask_server import FlaskServer\nfrom dialogic.cascade import DialogTurn, Cascade\n\ncsc = Cascade()\n\n\n@csc.add_handler(priority=10, regexp='(hello|hi|привет|здравствуй)')\ndef hello(turn: DialogTurn):\n    turn.response_text = 'Привет! Это единственная условная ветка диалога.'\n\n\n@csc.add_handler(priority=1)\ndef fallback(turn: DialogTurn):\n    turn.response_text = 'Я вас не понял. Скажите мне \"Привет\"!'\n    turn.suggests.append('привет')\n\n\ndm = TurnDialogManager(cascade=csc)\nconnector = DialogConnector(dialog_manager=dm)\nserver = FlaskServer(connector=connector)\n\nif __name__ == '__main__':\n    server.parse_args_and_run()\n```\n\nЧтобы запустить приложение как веб-сервис, достаточно запустить данный скрипт.\n\nЕсли приложение доступно по адресу `{BASE_URL}`, \nто вебхуки для Алисы, Салюта и Facebook будут доступны, соотвественно, \nна `{BASE_URL}/alice/`, `{BASE_URL}/salut/`, and `{BASE_URL}/fb/` \n(при желании, адреса можно изменить).\nВебхук для бота в Telegram будет установлен автоматически, \nесли выставить в переменную окружения `TOKEN` значение, \nполученное от [@BotFather](https://t.me/BotFather).\n\nЧтобы протестировать приложение локально, можно вызвать его с аргументами:\n* `--cli` - диалог с ботом в командной строке, полностью онлайн\n* `--poll` - запуск бота в Telegram в режиме long polling \n* `--ngrok` - локальный запуск с использованием \n  [ngrok](https://ngrok.com/) \u003csup\u003e[**](#footnote2)\u003c/sup\u003e, \n  чтобы создать туннель из вашего компьютера во внешний Интернет. \n  Удобный способ тестировать навыки Алисы.\n  \nПриложение запускается на порте, взятом из переменной окружения `PORT` (по умолчанию 5000). \nДля правильной работы с вебхуками нужно будет также выставить переменную окружения `BASE_URL`, описывающую префикс урла, на который будут приходить запросы \n(например `https://myapp.herokuapp.com/`).\n  \nЧтобы протестировать работу API для Алисы, не подключая навык, можно сделать такой POST-запрос с помощью CURL:\n```\ncurl http://localhost:5000/alice/ -X POST -H \"Content-Type: application/json\" -d '{\"session\": {\"user_id\":\"123\"}, \"request\": {\"command\": \"hi\"}, \"version\":\"1.0\"}'\n```\nна Windows при этом придется заэскейпить кавычки (ибо там работают [только двойные](https://mkyong.com/web/curl-post-json-data-on-windows/)), примерно так:\n```\ncurl http://localhost:5000/alice/ -X POST -H \"Content-Type: application/json\" -d \"{\\\"session\\\": {\\\"user_id\\\":\\\"123\\\"}, \\\"request\\\": {\\\"command\\\": \\\"hi\\\"}, \\\"version\\\":\\\"1.0\\\"}\"\n```\nПодробнее про формат запроса для Алисы можно почитать [в её документации](https://yandex.ru/dev/dialogs/alice/doc/request.html).\n  \n## Больше возможностей\n\n- Использование встроенных классификаторов интентов или сторонних средств NLU, \n  включая грамматики от Яндекса или любые доступные в Python модели.\n- Подключение собственных поверхностей или настройка имеющихся.\n- Логирование запросов и ответов для последующей аналитики.\n\nБиблиотека возможностей регулярно пополняется.\n\n## Ресурсы и поддержка\n\nВ папе [examples](https://github.com/avidale/dialogic/tree/master/examples) \nсобраны примеры использования компонент и запуска ботов.\n\nВопросы можно задать в чате \n[Dialogic.Digital support](https://t.me/joinchat/WOb48KC6I192zKZu) (Telegram).\n\n\u003ca id=\"footnote1\"\u003e*\u003c/a\u003e Обёртка для Telegram использует пакет \n[pyTelegramBotAPI](https://github.com/eternnoir/pyTelegramBotAPI).\n\n\u003ca id=\"footnote2\"\u003e**\u003c/a\u003e Обёртка для ngrok была взята из пакета\n[flask-ngrok](https://github.com/gstaff/flask-ngrok).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favidale%2Fdialogic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favidale%2Fdialogic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favidale%2Fdialogic/lists"}