pybotx 0.76.4__tar.gz → 0.77.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. pybotx-0.77.0/.github/dependabot.yml +8 -0
  2. pybotx-0.77.0/.github/pull_request_template.md +8 -0
  3. pybotx-0.77.0/.github/workflows/publish-pypi.yml +35 -0
  4. pybotx-0.77.0/.github/workflows/python-app.yml +85 -0
  5. pybotx-0.77.0/.gitignore +10 -0
  6. pybotx-0.76.4/README.md → pybotx-0.77.0/PKG-INFO +640 -50
  7. pybotx-0.76.4/PKG-INFO → pybotx-0.77.0/README.md +621 -76
  8. pybotx-0.77.0/docs/production_presets.md +163 -0
  9. pybotx-0.77.0/docs/retry_safety.md +355 -0
  10. pybotx-0.77.0/docs/widgets/WIDGETS.md +1209 -0
  11. pybotx-0.77.0/docs/widgets/img.png +0 -0
  12. pybotx-0.77.0/docs/widgets/img_1.png +0 -0
  13. pybotx-0.77.0/docs/widgets/img_10.png +0 -0
  14. pybotx-0.77.0/docs/widgets/img_11.png +0 -0
  15. pybotx-0.77.0/docs/widgets/img_12.png +0 -0
  16. pybotx-0.77.0/docs/widgets/img_13.png +0 -0
  17. pybotx-0.77.0/docs/widgets/img_14.png +0 -0
  18. pybotx-0.77.0/docs/widgets/img_15.png +0 -0
  19. pybotx-0.77.0/docs/widgets/img_2.png +0 -0
  20. pybotx-0.77.0/docs/widgets/img_3.png +0 -0
  21. pybotx-0.77.0/docs/widgets/img_4.png +0 -0
  22. pybotx-0.77.0/docs/widgets/img_5.png +0 -0
  23. pybotx-0.77.0/docs/widgets/img_6.png +0 -0
  24. pybotx-0.77.0/docs/widgets/img_7.png +0 -0
  25. pybotx-0.77.0/docs/widgets/img_8.png +0 -0
  26. pybotx-0.77.0/docs/widgets/img_9.png +0 -0
  27. pybotx-0.77.0/example/main.py +873 -0
  28. pybotx-0.77.0/mkdocs.yml +30 -0
  29. pybotx-0.77.0/poetry.lock +502 -0
  30. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/__init__.py +114 -3
  31. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/bot.py +342 -80
  32. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/bot_accounts_storage.py +38 -0
  33. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/callbacks/callback_manager.py +52 -4
  34. pybotx-0.77.0/pybotx/bot/command_processing.py +62 -0
  35. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/contextvars.py +2 -0
  36. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/exceptions.py +6 -0
  37. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/handler_collector.py +330 -17
  38. pybotx-0.77.0/pybotx/bot/healthcheck.py +291 -0
  39. pybotx-0.77.0/pybotx/bot/ingress_observability.py +276 -0
  40. pybotx-0.77.0/pybotx/cli.py +491 -0
  41. pybotx-0.77.0/pybotx/client/botx_method.py +518 -0
  42. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/create_chat.py +1 -1
  43. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/files_api/upload_file.py +1 -0
  44. pybotx-0.77.0/pybotx/client/http_config.py +436 -0
  45. pybotx-0.77.0/pybotx/client/observability.py +335 -0
  46. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/upload_file.py +1 -0
  47. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_email.py +5 -0
  48. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_emails.py +5 -0
  49. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_huid.py +19 -2
  50. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_login.py +16 -1
  51. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/search_user_by_other_id.py +19 -2
  52. pybotx-0.77.0/pybotx/client/users_api/trusted_search.py +7 -0
  53. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/user_from_csv.py +18 -6
  54. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/user_from_search.py +14 -1
  55. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/voex_api/get_call.py +2 -2
  56. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/voex_api/get_conference.py +3 -3
  57. pybotx-0.77.0/pybotx/constants.py +27 -0
  58. pybotx-0.77.0/pybotx/integrations/__init__.py +11 -0
  59. pybotx-0.77.0/pybotx/integrations/fastapi.py +287 -0
  60. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/logger.py +38 -1
  61. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/conference.py +1 -1
  62. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/enums.py +3 -1
  63. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/mentions.py +1 -0
  64. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/users.py +21 -1
  65. pybotx-0.77.0/pybotx/presets.py +217 -0
  66. pybotx-0.77.0/pybotx/py.typed +0 -0
  67. pybotx-0.77.0/pybotx/scaffold/__init__.py +75 -0
  68. pybotx-0.77.0/pybotx/scaffold/_shared.py +75 -0
  69. pybotx-0.77.0/pybotx/scaffold/command.py +173 -0
  70. pybotx-0.77.0/pybotx/scaffold/fsm_flow.py +289 -0
  71. pybotx-0.77.0/pybotx/scaffold/manifest.py +223 -0
  72. pybotx-0.77.0/pybotx/scaffold/port.py +76 -0
  73. pybotx-0.77.0/pybotx/scaffold/project.py +323 -0
  74. pybotx-0.77.0/pybotx/scaffold/repository.py +235 -0
  75. pybotx-0.77.0/pybotx/scaffold/service.py +134 -0
  76. pybotx-0.77.0/pybotx/scaffold/templates.py +3245 -0
  77. pybotx-0.77.0/pybotx/scaffold/widget.py +395 -0
  78. pybotx-0.77.0/pybotx/scaffold/widget_flow.py +433 -0
  79. pybotx-0.77.0/pybotx/widgets/__init__.py +94 -0
  80. pybotx-0.77.0/pybotx/widgets/approval.py +58 -0
  81. pybotx-0.77.0/pybotx/widgets/async_job.py +93 -0
  82. pybotx-0.77.0/pybotx/widgets/base.py +241 -0
  83. pybotx-0.77.0/pybotx/widgets/calendar.py +255 -0
  84. pybotx-0.77.0/pybotx/widgets/carousel.py +267 -0
  85. pybotx-0.77.0/pybotx/widgets/checklist.py +76 -0
  86. pybotx-0.77.0/pybotx/widgets/checktable.py +82 -0
  87. pybotx-0.77.0/pybotx/widgets/confirm.py +54 -0
  88. pybotx-0.77.0/pybotx/widgets/date_range.py +137 -0
  89. pybotx-0.77.0/pybotx/widgets/factory.py +464 -0
  90. pybotx-0.77.0/pybotx/widgets/file_batch.py +198 -0
  91. pybotx-0.77.0/pybotx/widgets/form_wizard.py +163 -0
  92. pybotx-0.77.0/pybotx/widgets/markup.py +102 -0
  93. pybotx-0.77.0/pybotx/widgets/messages_pager.py +44 -0
  94. pybotx-0.77.0/pybotx/widgets/multi_select.py +71 -0
  95. pybotx-0.77.0/pybotx/widgets/observability.py +262 -0
  96. pybotx-0.77.0/pybotx/widgets/pagination.py +224 -0
  97. pybotx-0.77.0/pybotx/widgets/presets.py +99 -0
  98. pybotx-0.77.0/pybotx/widgets/range.py +98 -0
  99. pybotx-0.77.0/pybotx/widgets/runner.py +473 -0
  100. pybotx-0.77.0/pybotx/widgets/search_select.py +121 -0
  101. pybotx-0.77.0/pybotx/widgets/select.py +60 -0
  102. pybotx-0.77.0/pybotx/widgets/service.py +37 -0
  103. pybotx-0.77.0/pybotx/widgets/strings.py +41 -0
  104. pybotx-0.77.0/pybotx/widgets/table.py +176 -0
  105. pybotx-0.77.0/pybotx/widgets/undefined.py +13 -0
  106. pybotx-0.77.0/pyproject.toml +91 -0
  107. pybotx-0.77.0/scripts/docs-lint +27 -0
  108. pybotx-0.77.0/scripts/format +6 -0
  109. pybotx-0.77.0/scripts/lint +8 -0
  110. pybotx-0.77.0/scripts/test +5 -0
  111. pybotx-0.77.0/scripts/wip-marks +9 -0
  112. pybotx-0.77.0/setup.cfg +58 -0
  113. pybotx-0.77.0/tests/__init__.py +0 -0
  114. pybotx-0.77.0/tests/client/__init__.py +0 -0
  115. pybotx-0.77.0/tests/client/bots_api/__init__.py +0 -0
  116. pybotx-0.77.0/tests/client/bots_api/test_bots_list.py +84 -0
  117. pybotx-0.77.0/tests/client/bots_api/test_get_token.py +78 -0
  118. pybotx-0.77.0/tests/client/chats_api/__init__.py +0 -0
  119. pybotx-0.77.0/tests/client/chats_api/factories.py +72 -0
  120. pybotx-0.77.0/tests/client/chats_api/test_add_admin.py +142 -0
  121. pybotx-0.77.0/tests/client/chats_api/test_add_user.py +112 -0
  122. pybotx-0.77.0/tests/client/chats_api/test_chat_info.py +448 -0
  123. pybotx-0.77.0/tests/client/chats_api/test_chat_info_validation.py +35 -0
  124. pybotx-0.77.0/tests/client/chats_api/test_create_chat.py +272 -0
  125. pybotx-0.77.0/tests/client/chats_api/test_create_chat_link.py +221 -0
  126. pybotx-0.77.0/tests/client/chats_api/test_create_thread.py +228 -0
  127. pybotx-0.77.0/tests/client/chats_api/test_disable_stealth.py +101 -0
  128. pybotx-0.77.0/tests/client/chats_api/test_list_chats.py +155 -0
  129. pybotx-0.77.0/tests/client/chats_api/test_list_chats_validation.py +41 -0
  130. pybotx-0.77.0/tests/client/chats_api/test_personal_chat.py +150 -0
  131. pybotx-0.77.0/tests/client/chats_api/test_personal_chat_additional.py +133 -0
  132. pybotx-0.77.0/tests/client/chats_api/test_pin_message.py +112 -0
  133. pybotx-0.77.0/tests/client/chats_api/test_remove_user.py +112 -0
  134. pybotx-0.77.0/tests/client/chats_api/test_set_stealth.py +117 -0
  135. pybotx-0.77.0/tests/client/chats_api/test_unpin_message.py +109 -0
  136. pybotx-0.77.0/tests/client/events_api/__init__.py +0 -0
  137. pybotx-0.77.0/tests/client/events_api/test_delete_event.py +96 -0
  138. pybotx-0.77.0/tests/client/events_api/test_edit_event.py +306 -0
  139. pybotx-0.77.0/tests/client/events_api/test_message_status_event.py +123 -0
  140. pybotx-0.77.0/tests/client/events_api/test_reply_event.py +289 -0
  141. pybotx-0.77.0/tests/client/events_api/test_stop_typing_event.py +47 -0
  142. pybotx-0.77.0/tests/client/events_api/test_typing_event.py +47 -0
  143. pybotx-0.77.0/tests/client/exceptions/test_callbacks.py +26 -0
  144. pybotx-0.77.0/tests/client/exceptions/test_http.py +25 -0
  145. pybotx-0.77.0/tests/client/files_api/__init__.py +0 -0
  146. pybotx-0.77.0/tests/client/files_api/test_download_file.py +256 -0
  147. pybotx-0.77.0/tests/client/files_api/test_upload_file.py +131 -0
  148. pybotx-0.77.0/tests/client/notifications_api/__init__.py +0 -0
  149. pybotx-0.77.0/tests/client/notifications_api/test_direct_notification.py +839 -0
  150. pybotx-0.77.0/tests/client/notifications_api/test_direct_notification_sync.py +132 -0
  151. pybotx-0.77.0/tests/client/notifications_api/test_internal_bot_notification.py +194 -0
  152. pybotx-0.77.0/tests/client/notifications_api/test_markup.py +495 -0
  153. pybotx-0.77.0/tests/client/openid_api/__init__.py +0 -0
  154. pybotx-0.77.0/tests/client/openid_api/test_resfesh_access_token.py +52 -0
  155. pybotx-0.77.0/tests/client/smartapps_api/__init__.py +0 -0
  156. pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_custom_notification.py +72 -0
  157. pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_event.py +191 -0
  158. pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_manifest.py +541 -0
  159. pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_notification.py +59 -0
  160. pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_unread_counter.py +66 -0
  161. pybotx-0.77.0/tests/client/smartapps_api/test_smartapp_upload_file.py +106 -0
  162. pybotx-0.77.0/tests/client/smartapps_api/test_smartapps_list.py +71 -0
  163. pybotx-0.77.0/tests/client/stickers_api/__init__.py +0 -0
  164. pybotx-0.77.0/tests/client/stickers_api/test_add_sticker.py +319 -0
  165. pybotx-0.77.0/tests/client/stickers_api/test_create_sticker_pack.py +75 -0
  166. pybotx-0.77.0/tests/client/stickers_api/test_delete_sticker.py +99 -0
  167. pybotx-0.77.0/tests/client/stickers_api/test_delete_sticker_pack.py +92 -0
  168. pybotx-0.77.0/tests/client/stickers_api/test_edit_sticker_pack.py +161 -0
  169. pybotx-0.77.0/tests/client/stickers_api/test_get_sticker.py +110 -0
  170. pybotx-0.77.0/tests/client/stickers_api/test_get_sticker_pack.py +205 -0
  171. pybotx-0.77.0/tests/client/stickers_api/test_get_sticker_packs.py +228 -0
  172. pybotx-0.77.0/tests/client/test_authorized_botx_method.py +106 -0
  173. pybotx-0.77.0/tests/client/test_botx_method.py +838 -0
  174. pybotx-0.77.0/tests/client/test_botx_method_callback.py +984 -0
  175. pybotx-0.77.0/tests/client/test_botx_method_stream.py +182 -0
  176. pybotx-0.77.0/tests/client/test_botx_method_undefined_cleaned.py +113 -0
  177. pybotx-0.77.0/tests/client/test_http_config.py +186 -0
  178. pybotx-0.77.0/tests/client/test_metrics_api/__init__.py +0 -0
  179. pybotx-0.77.0/tests/client/test_metrics_api/test_collect_metric.py +54 -0
  180. pybotx-0.77.0/tests/client/test_open_telemetry_tracing_collector.py +350 -0
  181. pybotx-0.77.0/tests/client/test_prometheus_metrics_collector.py +218 -0
  182. pybotx-0.77.0/tests/client/users_api/__init__.py +0 -0
  183. pybotx-0.77.0/tests/client/users_api/conftest.py +6 -0
  184. pybotx-0.77.0/tests/client/users_api/convert_to_datetime.py +9 -0
  185. pybotx-0.77.0/tests/client/users_api/test_search_user_by_email_post.py +239 -0
  186. pybotx-0.77.0/tests/client/users_api/test_search_user_by_emails.py +129 -0
  187. pybotx-0.77.0/tests/client/users_api/test_search_user_by_huid.py +193 -0
  188. pybotx-0.77.0/tests/client/users_api/test_search_user_by_login.py +161 -0
  189. pybotx-0.77.0/tests/client/users_api/test_search_user_by_other_id.py +156 -0
  190. pybotx-0.77.0/tests/client/users_api/test_trusted_search.py +81 -0
  191. pybotx-0.77.0/tests/client/users_api/test_update_user_profile.py +216 -0
  192. pybotx-0.77.0/tests/client/users_api/test_users_as_csv.py +201 -0
  193. pybotx-0.77.0/tests/client/voex_api/__init__.py +0 -0
  194. pybotx-0.77.0/tests/client/voex_api/test_call.py +113 -0
  195. pybotx-0.77.0/tests/client/voex_api/test_conference.py +120 -0
  196. pybotx-0.77.0/tests/conftest.py +479 -0
  197. pybotx-0.77.0/tests/deprecated/test_authorized_botx_method_v1.py +210 -0
  198. pybotx-0.77.0/tests/deprecated/test_lifespan_v1.py +126 -0
  199. pybotx-0.77.0/tests/deprecated/test_search_user_by_email_get.py +183 -0
  200. pybotx-0.77.0/tests/deprecated/test_verify_request_v1.py +581 -0
  201. pybotx-0.77.0/tests/fixtures/users_api.py +145 -0
  202. pybotx-0.77.0/tests/models/__init__.py +0 -0
  203. pybotx-0.77.0/tests/models/test_api_base_property.py +59 -0
  204. pybotx-0.77.0/tests/models/test_bot_account.py +24 -0
  205. pybotx-0.77.0/tests/models/test_bot_account_with_secret.py +42 -0
  206. pybotx-0.77.0/tests/models/test_botx_api_markup.py +151 -0
  207. pybotx-0.77.0/tests/models/test_enums.py +58 -0
  208. pybotx-0.77.0/tests/models/test_enums_property.py +138 -0
  209. pybotx-0.77.0/tests/models/test_incoming_message.py +101 -0
  210. pybotx-0.77.0/tests/models/test_incoming_message_validation.py +52 -0
  211. pybotx-0.77.0/tests/models/test_markup.py +15 -0
  212. pybotx-0.77.0/tests/models/test_mentions_list.py +60 -0
  213. pybotx-0.77.0/tests/models/test_status_recipient.py +24 -0
  214. pybotx-0.77.0/tests/models/test_sync_smartapp_event.py +49 -0
  215. pybotx-0.77.0/tests/models/test_users.py +58 -0
  216. pybotx-0.77.0/tests/system_events/factories.py +89 -0
  217. pybotx-0.77.0/tests/system_events/test_added_to_chat.py +99 -0
  218. pybotx-0.77.0/tests/system_events/test_chat_created.py +128 -0
  219. pybotx-0.77.0/tests/system_events/test_chat_deleted_by_user.py +89 -0
  220. pybotx-0.77.0/tests/system_events/test_conference_changed.py +92 -0
  221. pybotx-0.77.0/tests/system_events/test_conference_created.py +67 -0
  222. pybotx-0.77.0/tests/system_events/test_conference_deleted.py +67 -0
  223. pybotx-0.77.0/tests/system_events/test_cts_login.py +206 -0
  224. pybotx-0.77.0/tests/system_events/test_cts_logout.py +88 -0
  225. pybotx-0.77.0/tests/system_events/test_deleted_from_chat.py +98 -0
  226. pybotx-0.77.0/tests/system_events/test_event_delete.py +73 -0
  227. pybotx-0.77.0/tests/system_events/test_event_edit.py +128 -0
  228. pybotx-0.77.0/tests/system_events/test_internal_bot_notification.py +107 -0
  229. pybotx-0.77.0/tests/system_events/test_join_to_chat.py +71 -0
  230. pybotx-0.77.0/tests/system_events/test_left_from_chat.py +98 -0
  231. pybotx-0.77.0/tests/system_events/test_smartapp_event.py +169 -0
  232. pybotx-0.77.0/tests/test_async_buffer.py +115 -0
  233. pybotx-0.77.0/tests/test_attachments.py +398 -0
  234. pybotx-0.77.0/tests/test_base_command.py +260 -0
  235. pybotx-0.77.0/tests/test_bot_constructing.py +491 -0
  236. pybotx-0.77.0/tests/test_bot_edge_cases.py +67 -0
  237. pybotx-0.77.0/tests/test_command_processing.py +19 -0
  238. pybotx-0.77.0/tests/test_end_to_end.py +395 -0
  239. pybotx-0.77.0/tests/test_exception_middleware.py +112 -0
  240. pybotx-0.77.0/tests/test_fastapi_adapter.py +310 -0
  241. pybotx-0.77.0/tests/test_files.py +363 -0
  242. pybotx-0.77.0/tests/test_handler_collector.py +1083 -0
  243. pybotx-0.77.0/tests/test_healthcheck.py +244 -0
  244. pybotx-0.77.0/tests/test_incoming_message.py +618 -0
  245. pybotx-0.77.0/tests/test_ingress_observability.py +178 -0
  246. pybotx-0.77.0/tests/test_lifespan.py +88 -0
  247. pybotx-0.77.0/tests/test_logger.py +70 -0
  248. pybotx-0.77.0/tests/test_logs.py +139 -0
  249. pybotx-0.77.0/tests/test_middlewares.py +208 -0
  250. pybotx-0.77.0/tests/test_personal_chat_ensure.py +163 -0
  251. pybotx-0.77.0/tests/test_presets.py +245 -0
  252. pybotx-0.77.0/tests/test_scaffold.py +1426 -0
  253. pybotx-0.77.0/tests/test_scaffold_edge_cases.py +334 -0
  254. pybotx-0.77.0/tests/test_state.py +93 -0
  255. pybotx-0.77.0/tests/test_status.py +343 -0
  256. pybotx-0.77.0/tests/test_stickers.py +79 -0
  257. pybotx-0.77.0/tests/test_system_events_routing.py +138 -0
  258. pybotx-0.77.0/tests/test_verify_request.py +549 -0
  259. pybotx-0.77.0/tests/testkit/__init__.py +15 -0
  260. pybotx-0.77.0/tests/testkit/botx.py +94 -0
  261. pybotx-0.77.0/tests/widgets/test_approval.py +57 -0
  262. pybotx-0.77.0/tests/widgets/test_async_job.py +96 -0
  263. pybotx-0.77.0/tests/widgets/test_base.py +216 -0
  264. pybotx-0.77.0/tests/widgets/test_calendar.py +253 -0
  265. pybotx-0.77.0/tests/widgets/test_carousel.py +355 -0
  266. pybotx-0.77.0/tests/widgets/test_checklist.py +94 -0
  267. pybotx-0.77.0/tests/widgets/test_checktable.py +86 -0
  268. pybotx-0.77.0/tests/widgets/test_confirm.py +56 -0
  269. pybotx-0.77.0/tests/widgets/test_date_range.py +123 -0
  270. pybotx-0.77.0/tests/widgets/test_factory.py +681 -0
  271. pybotx-0.77.0/tests/widgets/test_file_batch.py +132 -0
  272. pybotx-0.77.0/tests/widgets/test_form_wizard.py +188 -0
  273. pybotx-0.77.0/tests/widgets/test_markup.py +50 -0
  274. pybotx-0.77.0/tests/widgets/test_messages_pager.py +70 -0
  275. pybotx-0.77.0/tests/widgets/test_module.py +95 -0
  276. pybotx-0.77.0/tests/widgets/test_multi_select.py +108 -0
  277. pybotx-0.77.0/tests/widgets/test_observability.py +183 -0
  278. pybotx-0.77.0/tests/widgets/test_pagination.py +317 -0
  279. pybotx-0.77.0/tests/widgets/test_presets.py +150 -0
  280. pybotx-0.77.0/tests/widgets/test_range.py +160 -0
  281. pybotx-0.77.0/tests/widgets/test_runner.py +529 -0
  282. pybotx-0.77.0/tests/widgets/test_search_select.py +127 -0
  283. pybotx-0.77.0/tests/widgets/test_select.py +49 -0
  284. pybotx-0.77.0/tests/widgets/test_service.py +47 -0
  285. pybotx-0.77.0/tests/widgets/test_table.py +120 -0
  286. pybotx-0.77.0/uv.lock +1302 -0
  287. pybotx-0.76.4/pybotx/client/botx_method.py +0 -207
  288. pybotx-0.76.4/pybotx/constants.py +0 -10
  289. pybotx-0.76.4/pyproject.toml +0 -83
  290. {pybotx-0.76.4 → pybotx-0.77.0}/LICENSE +0 -0
  291. {pybotx-0.76.4/pybotx/bot → pybotx-0.77.0/example}/__init__.py +0 -0
  292. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/async_buffer.py +0 -0
  293. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/auth.py +0 -0
  294. {pybotx-0.76.4/pybotx/bot/api → pybotx-0.77.0/pybotx/bot}/__init__.py +0 -0
  295. {pybotx-0.76.4/pybotx/bot/api/responses → pybotx-0.77.0/pybotx/bot/api}/__init__.py +0 -0
  296. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/exceptions.py +0 -0
  297. {pybotx-0.76.4/pybotx/bot/callbacks → pybotx-0.77.0/pybotx/bot/api/responses}/__init__.py +0 -0
  298. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/responses/bot_disabled.py +0 -0
  299. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/responses/command_accepted.py +0 -0
  300. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/api/responses/unverified_request.py +0 -0
  301. {pybotx-0.76.4/pybotx/bot/middlewares → pybotx-0.77.0/pybotx/bot/callbacks}/__init__.py +0 -0
  302. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/callbacks/callback_memory_repo.py +0 -0
  303. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/callbacks/callback_repo_proto.py +0 -0
  304. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/handler.py +0 -0
  305. {pybotx-0.76.4/pybotx/client → pybotx-0.77.0/pybotx/bot/middlewares}/__init__.py +0 -0
  306. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/middlewares/exception_middleware.py +0 -0
  307. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/bot/testing.py +0 -0
  308. {pybotx-0.76.4/pybotx/client/bots_api → pybotx-0.77.0/pybotx/client}/__init__.py +0 -0
  309. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/authorized_botx_method.py +0 -0
  310. {pybotx-0.76.4/pybotx/client/chats_api → pybotx-0.77.0/pybotx/client/bots_api}/__init__.py +0 -0
  311. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/bots_api/bot_catalog.py +0 -0
  312. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/bots_api/get_token.py +0 -0
  313. {pybotx-0.76.4/pybotx/client/events_api → pybotx-0.77.0/pybotx/client/chats_api}/__init__.py +0 -0
  314. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/add_admin.py +0 -0
  315. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/add_user.py +0 -0
  316. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/chat_info.py +0 -0
  317. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/create_chat_link.py +0 -0
  318. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/create_thread.py +0 -0
  319. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/disable_stealth.py +0 -0
  320. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/list_chats.py +0 -0
  321. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/personal_chat.py +0 -0
  322. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/pin_message.py +0 -0
  323. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/remove_user.py +0 -0
  324. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/set_stealth.py +0 -0
  325. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/chats_api/unpin_message.py +0 -0
  326. {pybotx-0.76.4/pybotx/client/exceptions → pybotx-0.77.0/pybotx/client/events_api}/__init__.py +0 -0
  327. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/delete_event.py +0 -0
  328. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/edit_event.py +0 -0
  329. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/message_status_event.py +0 -0
  330. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/reply_event.py +0 -0
  331. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/stop_typing_event.py +0 -0
  332. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/events_api/typing_event.py +0 -0
  333. {pybotx-0.76.4/pybotx/client/files_api → pybotx-0.77.0/pybotx/client/exceptions}/__init__.py +0 -0
  334. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/base.py +0 -0
  335. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/callbacks.py +0 -0
  336. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/chats.py +0 -0
  337. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/common.py +0 -0
  338. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/event.py +0 -0
  339. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/files.py +0 -0
  340. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/http.py +0 -0
  341. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/message.py +0 -0
  342. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/notifications.py +0 -0
  343. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/exceptions/users.py +0 -0
  344. {pybotx-0.76.4/pybotx/client/mertics_api → pybotx-0.77.0/pybotx/client/files_api}/__init__.py +0 -0
  345. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/files_api/download_file.py +0 -0
  346. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/get_token.py +0 -0
  347. {pybotx-0.76.4/pybotx/client/notifications_api → pybotx-0.77.0/pybotx/client/mertics_api}/__init__.py +0 -0
  348. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/mertics_api/collect_bot_function.py +0 -0
  349. {pybotx-0.76.4/pybotx/client/openid_api → pybotx-0.77.0/pybotx/client/notifications_api}/__init__.py +0 -0
  350. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/notifications_api/direct_notification.py +0 -0
  351. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/notifications_api/internal_bot_notification.py +0 -0
  352. {pybotx-0.76.4/pybotx/client/smartapps_api → pybotx-0.77.0/pybotx/client/openid_api}/__init__.py +0 -0
  353. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/openid_api/refresh_access_token.py +0 -0
  354. {pybotx-0.76.4/pybotx/client/stickers_api → pybotx-0.77.0/pybotx/client/smartapps_api}/__init__.py +0 -0
  355. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/exceptions.py +0 -0
  356. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_custom_notification.py +0 -0
  357. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_event.py +0 -0
  358. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_manifest.py +0 -0
  359. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_notification.py +0 -0
  360. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapp_unread_counter.py +0 -0
  361. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/smartapps_api/smartapps_list.py +0 -0
  362. {pybotx-0.76.4/pybotx/client/users_api → pybotx-0.77.0/pybotx/client/stickers_api}/__init__.py +0 -0
  363. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/add_sticker.py +0 -0
  364. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/create_sticker_pack.py +0 -0
  365. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/delete_sticker.py +0 -0
  366. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/delete_sticker_pack.py +0 -0
  367. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/edit_sticker_pack.py +0 -0
  368. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/exceptions.py +0 -0
  369. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/get_sticker.py +0 -0
  370. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/get_sticker_pack.py +0 -0
  371. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/get_sticker_packs.py +0 -0
  372. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/stickers_api/sticker_pack.py +0 -0
  373. {pybotx-0.76.4/pybotx/client/voex_api → pybotx-0.77.0/pybotx/client/users_api}/__init__.py +0 -0
  374. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/update_user_profile.py +0 -0
  375. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/users_api/users_as_csv.py +0 -0
  376. {pybotx-0.76.4/pybotx/models → pybotx-0.77.0/pybotx/client/voex_api}/__init__.py +0 -0
  377. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/client/voex_api/exceptions.py +0 -0
  378. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/converters.py +0 -0
  379. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/image_validators.py +0 -0
  380. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/missing.py +0 -0
  381. {pybotx-0.76.4/pybotx/models/message → pybotx-0.77.0/pybotx/models}/__init__.py +0 -0
  382. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/api_base.py +0 -0
  383. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/async_files.py +0 -0
  384. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/attachments.py +0 -0
  385. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/base_command.py +0 -0
  386. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/bot_account.py +0 -0
  387. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/bot_catalog.py +0 -0
  388. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/bot_sender.py +0 -0
  389. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/call.py +0 -0
  390. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/chats.py +0 -0
  391. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/commands.py +0 -0
  392. {pybotx-0.76.4/pybotx/models/system_events → pybotx-0.77.0/pybotx/models/message}/__init__.py +0 -0
  393. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/edit_message.py +0 -0
  394. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/forward.py +0 -0
  395. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/incoming_message.py +0 -0
  396. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/markup.py +0 -0
  397. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/message_status.py +0 -0
  398. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/outgoing_message.py +0 -0
  399. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/reply.py +0 -0
  400. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/message/reply_message.py +0 -0
  401. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/method_callbacks.py +0 -0
  402. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/smartapps.py +0 -0
  403. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/status.py +0 -0
  404. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/stickers.py +0 -0
  405. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/sync_smartapp_event.py +0 -0
  406. /pybotx-0.76.4/pybotx/py.typed → /pybotx-0.77.0/pybotx/models/system_events/__init__.py +0 -0
  407. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/added_to_chat.py +0 -0
  408. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/chat_created.py +0 -0
  409. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/chat_deleted_by_user.py +0 -0
  410. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/conference_changed.py +0 -0
  411. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/conference_created.py +0 -0
  412. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/conference_deleted.py +0 -0
  413. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/cts_login.py +0 -0
  414. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/cts_logout.py +0 -0
  415. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/deleted_from_chat.py +0 -0
  416. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/event_delete.py +0 -0
  417. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/event_edit.py +0 -0
  418. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/internal_bot_notification.py +0 -0
  419. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/left_from_chat.py +0 -0
  420. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/smartapp_event.py +0 -0
  421. {pybotx-0.76.4 → pybotx-0.77.0}/pybotx/models/system_events/user_joined_to_chat.py +0 -0
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ labels:
8
+ - dependencies
@@ -0,0 +1,8 @@
1
+ ## PR checklist
2
+
3
+ - [ ] I've written good commit message for all commits
4
+ - [ ] I've split changes into separate commits where it's appropriate
5
+ - [ ] I've added the description of function to documentation
6
+ - [ ] I've updated project version in `pyproject.toml`
7
+ - [ ] I'll make a release when PR is merged
8
+ - [ ] I'll bump `pybotx` in `bot-template`
@@ -0,0 +1,35 @@
1
+ name: Publish python package
2
+ on:
3
+ push:
4
+ tags:
5
+ - "*.*.*"
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-22.04
9
+ steps:
10
+ - uses: actions/checkout@v7
11
+ with:
12
+ fetch-depth: 0
13
+ - name: Assert tag is from master or release-candidate
14
+ run: |
15
+ if ! git merge-base --is-ancestor HEAD origin/master &&
16
+ ! git merge-base --is-ancestor HEAD origin/release-candidate; then
17
+ echo "Tag must point to a commit on master or release-candidate" >&2
18
+ exit 1
19
+ fi
20
+
21
+ - name: Setup Python
22
+ uses: actions/setup-python@v7
23
+ with:
24
+ python-version: "3.13"
25
+
26
+ - name: Install uv
27
+ run: python -m pip install --upgrade pip uv
28
+
29
+ - name: Build package
30
+ run: uv build
31
+
32
+ - name: Publish to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
+ with:
35
+ password: ${{ secrets.PYPI_TOKEN }}
@@ -0,0 +1,85 @@
1
+ name: Python application
2
+ on: push
3
+ jobs:
4
+
5
+ test:
6
+ name: Test
7
+ runs-on: ubuntu-22.04
8
+ strategy:
9
+ matrix:
10
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
11
+
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v7
15
+
16
+ - name: Setup Python
17
+ uses: actions/setup-python@v7
18
+ with:
19
+ python-version: ${{ matrix.python-version }}
20
+
21
+ - name: Install uv
22
+ run: python -m pip install --upgrade pip uv
23
+
24
+ - name: Install dependencies
25
+ run: uv sync --dev
26
+
27
+ - name: Run tests
28
+ env:
29
+ BOT_CREDENTIALS: ${{ secrets.END_TO_END_TESTS_BOT_CREDENTIALS }}
30
+ run: |
31
+ uv run ./scripts/test --cov=pybotx --cov-report=xml
32
+
33
+ - name: Upload coverage to Codecov
34
+ uses: codecov/codecov-action@v7
35
+ with:
36
+ fail_ci_if_error: true
37
+ files: ./coverage.xml
38
+ flags: unittests
39
+ token: ${{ secrets.CODECOV_TOKEN }}
40
+
41
+ lint:
42
+ name: Lint
43
+ runs-on: ubuntu-22.04
44
+
45
+ steps:
46
+ - name: Checkout repository
47
+ uses: actions/checkout@v7
48
+
49
+ - name: Setup Python
50
+ uses: actions/setup-python@v7
51
+ with:
52
+ python-version: "3.13"
53
+
54
+ - name: Install uv
55
+ run: python -m pip install --upgrade pip uv
56
+
57
+ - name: Install dependencies
58
+ run: uv sync --dev
59
+
60
+ - name: Run linters
61
+ run: |
62
+ uv run ./scripts/lint
63
+
64
+ docs-lint:
65
+ name: Docs lint
66
+ runs-on: ubuntu-22.04
67
+
68
+ steps:
69
+ - name: Checkout repository
70
+ uses: actions/checkout@v7
71
+
72
+ - name: Setup Python
73
+ uses: actions/setup-python@v7
74
+ with:
75
+ python-version: "3.13"
76
+
77
+ - name: Install uv
78
+ run: python -m pip install --upgrade pip uv
79
+
80
+ - name: Install dependencies
81
+ run: uv sync --dev
82
+
83
+ - name: Run linters
84
+ run: |
85
+ uv run bash ./scripts/docs-lint
@@ -0,0 +1,10 @@
1
+ .coverage
2
+ .env
3
+ .venv/
4
+ venv/
5
+ __pycache__
6
+ htmlcov
7
+ site
8
+ .snippets*/
9
+ .idea/
10
+ .hypothesis