zrb 1.0.0a21__py3-none-any.whl → 1.0.0b1__py3-none-any.whl

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 (132) hide show
  1. zrb/__init__.py +2 -1
  2. zrb/builtin/llm/llm_chat.py +2 -2
  3. zrb/builtin/llm/tool/web.py +1 -1
  4. zrb/builtin/project/add/fastapp/fastapp_task.py +2 -0
  5. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/config.py +4 -1
  6. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/entity/add_entity_task.py +16 -1
  7. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/entity/add_entity_util.py +91 -9
  8. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/entity/template/app_template/module/my_module/service/my_entity/{my_entity_usecase.py → my_entity_service.py} +7 -13
  9. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/entity/template/app_template/module/my_module/service/my_entity/my_entity_service_factory.py +8 -0
  10. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/entity/template/gateway_subroute.py +37 -0
  11. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/format_task.py +1 -1
  12. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/input.py +13 -0
  13. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/add_module_task.py +22 -0
  14. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/add_module_util.py +42 -0
  15. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/template/app_template/module/gateway/subroute/my_module.py +7 -0
  16. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/template/app_template/module/my_module/client/api_client.py +1 -1
  17. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/template/app_template/module/my_module/client/direct_client.py +1 -2
  18. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/template/app_template/module/my_module/client/factory.py +3 -3
  19. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/module/template/app_template/module/my_module/route.py +10 -10
  20. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/task.py +4 -4
  21. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/common/app.py +42 -5
  22. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/common/{base_usecase.py → base_service.py} +3 -3
  23. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/common/view.py +37 -0
  24. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/config.py +24 -0
  25. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/auth/client/api_client.py +2 -2
  26. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/auth/client/direct_client.py +2 -2
  27. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/auth/route.py +2 -2
  28. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/auth/service/user/{user_usecase.py → user_service.py} +7 -7
  29. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/auth/service/user/user_service_factory.py +6 -0
  30. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/route.py +42 -13
  31. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/util/view.py +74 -0
  32. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/content/error.html +6 -0
  33. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/content/homepage.html +6 -0
  34. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/images/android-chrome-192x192.png +0 -0
  35. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/images/android-chrome-512x512.png +0 -0
  36. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/images/favicon-32x32.png +0 -0
  37. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.amber.min.css +4 -0
  38. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.blue.min.css +4 -0
  39. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.cyan.min.css +4 -0
  40. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.fuchsia.min.css +4 -0
  41. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.green.min.css +4 -0
  42. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.grey.min.css +4 -0
  43. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.indigo.min.css +4 -0
  44. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.jade.min.css +4 -0
  45. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.lime.min.css +4 -0
  46. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.min.css +4 -0
  47. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.orange.min.css +4 -0
  48. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.pink.min.css +4 -0
  49. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.pumpkin.min.css +4 -0
  50. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.purple.min.css +4 -0
  51. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.red.min.css +4 -0
  52. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.sand.min.css +4 -0
  53. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.slate.min.css +4 -0
  54. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.violet.min.css +4 -0
  55. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.yellow.min.css +4 -0
  56. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/static/pico-css/pico.zinc.min.css +4 -0
  57. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/gateway/view/template/default.html +34 -0
  58. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/requirements.txt +1 -0
  59. zrb/builtin/python.py +1 -1
  60. zrb/content_transformer/any_content_transformer.py +7 -0
  61. zrb/content_transformer/content_transformer.py +6 -0
  62. zrb/runner/cli.py +4 -6
  63. zrb/runner/web_app.py +28 -280
  64. zrb/runner/web_config/config.py +91 -0
  65. zrb/runner/web_config/config_factory.py +26 -0
  66. zrb/runner/web_route/docs_route.py +17 -0
  67. zrb/runner/web_route/error_page/serve_default_404.py +28 -0
  68. zrb/runner/{web_controller/error_page/controller.py → web_route/error_page/show_error_page.py} +2 -2
  69. zrb/runner/{web_controller → web_route}/error_page/view.html +5 -0
  70. zrb/runner/web_route/home_page/home_page_route.py +51 -0
  71. zrb/runner/web_route/login_api_route.py +31 -0
  72. zrb/runner/web_route/login_page/login_page_route.py +39 -0
  73. zrb/runner/web_route/logout_api_route.py +18 -0
  74. zrb/runner/web_route/logout_page/logout_page_route.py +40 -0
  75. zrb/runner/{web_controller/group_info_page/controller.py → web_route/node_page/group/show_group_page.py} +3 -3
  76. zrb/runner/web_route/node_page/node_page_route.py +50 -0
  77. zrb/runner/{web_controller/session_page/controller.py → web_route/node_page/task/show_task_page.py} +3 -3
  78. zrb/runner/web_route/refresh_token_api_route.py +38 -0
  79. zrb/runner/web_route/static/static_route.py +44 -0
  80. zrb/runner/web_route/task_input_api_route.py +47 -0
  81. zrb/runner/web_route/task_session_api_route.py +102 -0
  82. zrb/runner/web_schema/session.py +5 -0
  83. zrb/runner/web_schema/token.py +11 -0
  84. zrb/runner/web_schema/user.py +32 -0
  85. zrb/runner/web_util/cookie.py +29 -0
  86. zrb/runner/{web_util.py → web_util/html.py} +1 -23
  87. zrb/runner/web_util/token.py +68 -0
  88. zrb/runner/web_util/user.py +63 -0
  89. zrb/session/session.py +6 -4
  90. zrb/session_state_logger/{default_session_state_logger.py → session_state_logger_factory.py} +1 -1
  91. zrb/task/base_task.py +29 -4
  92. zrb/task/base_trigger.py +2 -0
  93. zrb/task/cmd_task.py +2 -0
  94. zrb/task/http_check.py +2 -0
  95. zrb/task/llm_task.py +2 -0
  96. zrb/task/make_task.py +2 -0
  97. zrb/task/rsync_task.py +2 -0
  98. zrb/task/scaffolder.py +8 -5
  99. zrb/task/scheduler.py +2 -0
  100. zrb/task/tcp_check.py +2 -0
  101. zrb/task_status/task_status.py +4 -3
  102. {zrb-1.0.0a21.dist-info → zrb-1.0.0b1.dist-info}/METADATA +1 -1
  103. {zrb-1.0.0a21.dist-info → zrb-1.0.0b1.dist-info}/RECORD +125 -81
  104. zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/module/auth/service/user/user_usecase_factory.py +0 -6
  105. zrb/runner/web_config.py +0 -274
  106. zrb/runner/web_controller/home_page/__init__.py +0 -0
  107. zrb/runner/web_controller/home_page/controller.py +0 -33
  108. zrb/runner/web_controller/login_page/controller.py +0 -25
  109. zrb/runner/web_controller/logout_page/controller.py +0 -26
  110. zrb/runner/web_controller/session_page/__init__.py +0 -0
  111. /zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/column/{create_column_task.py → add_column_task.py} +0 -0
  112. /zrb/builtin/project/add/fastapp/fastapp_template/my_app_name/_zrb/entity/template/app_template/module/my_module/service/my_entity/repository/{factory.py → my_entity_repository_factory.py} +0 -0
  113. /zrb/runner/{web_controller → web_route}/__init__.py +0 -0
  114. /zrb/runner/{web_controller/group_info_page → web_route/home_page}/__init__.py +0 -0
  115. /zrb/runner/{web_controller → web_route}/home_page/view.html +0 -0
  116. /zrb/runner/{web_controller → web_route}/login_page/view.html +0 -0
  117. /zrb/runner/{web_controller → web_route}/logout_page/view.html +0 -0
  118. /zrb/runner/{web_controller/group_info_page → web_route/node_page/group}/view.html +0 -0
  119. /zrb/runner/{web_controller/session_page → web_route/node_page/task}/partial/input.html +0 -0
  120. /zrb/runner/{web_controller/session_page → web_route/node_page/task}/view.html +0 -0
  121. /zrb/runner/{refresh-token.template.js → web_route/static/refresh-token.template.js} +0 -0
  122. /zrb/runner/{web_controller/static → web_route/static/resources}/common.css +0 -0
  123. /zrb/runner/{web_controller/static → web_route/static/resources}/favicon-32x32.png +0 -0
  124. /zrb/runner/{web_controller/static → web_route/static/resources}/login/event.js +0 -0
  125. /zrb/runner/{web_controller/static → web_route/static/resources}/logout/event.js +0 -0
  126. /zrb/runner/{web_controller/static → web_route/static/resources}/pico.min.css +0 -0
  127. /zrb/runner/{web_controller/static → web_route/static/resources}/session/common-util.js +0 -0
  128. /zrb/runner/{web_controller/static → web_route/static/resources}/session/current-session.js +0 -0
  129. /zrb/runner/{web_controller/static → web_route/static/resources}/session/event.js +0 -0
  130. /zrb/runner/{web_controller/static → web_route/static/resources}/session/past-session.js +0 -0
  131. {zrb-1.0.0a21.dist-info → zrb-1.0.0b1.dist-info}/WHEEL +0 -0
  132. {zrb-1.0.0a21.dist-info → zrb-1.0.0b1.dist-info}/entry_points.txt +0 -0
@@ -1,33 +0,0 @@
1
- import os
2
-
3
- from zrb.group.any_group import AnyGroup
4
- from zrb.runner.web_config import User
5
- from zrb.runner.web_util import (
6
- get_html_auth_link,
7
- get_html_subgroup_info,
8
- get_html_subtask_info,
9
- )
10
- from zrb.util.file import read_file
11
- from zrb.util.string.format import fstring_format
12
-
13
-
14
- def show_home_page(user: User, root_group: AnyGroup):
15
- from fastapi.responses import HTMLResponse
16
-
17
- _DIR = os.path.dirname(__file__)
18
- _VIEW_TEMPLATE = read_file(os.path.join(_DIR, "view.html"))
19
- group_info = get_html_subgroup_info(user, "/ui/", root_group)
20
- task_info = get_html_subtask_info(user, "/ui/", root_group)
21
- auth_link = get_html_auth_link(user)
22
- return HTMLResponse(
23
- fstring_format(
24
- _VIEW_TEMPLATE,
25
- {
26
- "group_info": group_info,
27
- "task_info": task_info,
28
- "name": root_group.name,
29
- "description": root_group.description,
30
- "auth_link": auth_link,
31
- },
32
- )
33
- )
@@ -1,25 +0,0 @@
1
- import os
2
-
3
- from zrb.group.any_group import AnyGroup
4
- from zrb.runner.web_config import User
5
- from zrb.runner.web_util import get_html_auth_link
6
- from zrb.util.file import read_file
7
- from zrb.util.string.format import fstring_format
8
-
9
-
10
- def show_login_page(user: User, root_group: AnyGroup):
11
- from fastapi.responses import HTMLResponse
12
-
13
- _DIR = os.path.dirname(__file__)
14
- _VIEW_TEMPLATE = read_file(os.path.join(_DIR, "view.html"))
15
- auth_link = get_html_auth_link(user)
16
- return HTMLResponse(
17
- fstring_format(
18
- _VIEW_TEMPLATE,
19
- {
20
- "name": root_group.name,
21
- "description": root_group.description,
22
- "auth_link": auth_link,
23
- },
24
- )
25
- )
@@ -1,26 +0,0 @@
1
- import os
2
-
3
- from zrb.group.any_group import AnyGroup
4
- from zrb.runner.web_config import User
5
- from zrb.runner.web_util import get_html_auth_link
6
- from zrb.util.file import read_file
7
- from zrb.util.string.format import fstring_format
8
-
9
-
10
- def show_logout_page(user: User, root_group: AnyGroup):
11
- from fastapi.responses import HTMLResponse
12
-
13
- _DIR = os.path.dirname(__file__)
14
- _VIEW_TEMPLATE = read_file(os.path.join(_DIR, "view.html"))
15
- auth_link = get_html_auth_link(user)
16
- return HTMLResponse(
17
- fstring_format(
18
- _VIEW_TEMPLATE,
19
- {
20
- "name": root_group.name,
21
- "description": root_group.description,
22
- "auth_link": auth_link,
23
- "user": user,
24
- },
25
- )
26
- )
File without changes
File without changes
File without changes