FastPluggy 0.4.71__tar.gz → 0.4.73__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 (203) hide show
  1. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/PKG-INFO +1 -1
  2. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/pyproject.toml +1 -1
  3. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/FastPluggy.egg-info/PKG-INFO +1 -1
  4. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/FastPluggy.egg-info/SOURCES.txt +1 -0
  5. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/base_module_manager.py +7 -3
  6. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/menu/menu_manager.py +44 -0
  7. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/admin.py +26 -1
  8. fastpluggy-0.4.73/tests/test_sys_path_reload.py +50 -0
  9. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/README.md +0 -0
  10. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/setup.cfg +0 -0
  11. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/FastPluggy.egg-info/dependency_links.txt +0 -0
  12. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/FastPluggy.egg-info/requires.txt +0 -0
  13. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/FastPluggy.egg-info/top_level.txt +0 -0
  14. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/__init__.py +0 -0
  15. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/cli_utils.py +0 -0
  16. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/__init__.py +0 -0
  17. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/auth/__init__.py +0 -0
  18. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/auth/anonymous.py +0 -0
  19. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/auth/auth_interface.py +0 -0
  20. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/auth/delegating_backend.py +0 -0
  21. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/auth/middleware.py +0 -0
  22. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/config.py +0 -0
  23. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/core_metrics.py +0 -0
  24. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/database.py +0 -0
  25. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/dependency.py +0 -0
  26. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/error/__init__.py +0 -0
  27. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/error/degraded_mode_handler.py +0 -0
  28. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/error/degraded_mode_middleware.py +0 -0
  29. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/error/exception.py +0 -0
  30. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/events/__init__.py +0 -0
  31. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/events/bus.py +0 -0
  32. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/events/event.py +0 -0
  33. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/events/spec.py +0 -0
  34. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/flash.py +0 -0
  35. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/global_registry.py +0 -0
  36. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/menu/__init__.py +0 -0
  37. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/menu/decorator.py +0 -0
  38. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/menu/override_service.py +0 -0
  39. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/menu/schema.py +0 -0
  40. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/metrics.py +0 -0
  41. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models.py +0 -0
  42. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models_tools/__init__.py +0 -0
  43. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models_tools/base.py +0 -0
  44. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models_tools/callable.py +0 -0
  45. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models_tools/pydantic.py +0 -0
  46. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models_tools/shared.py +0 -0
  47. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/models_tools/sqlalchemy.py +0 -0
  48. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/module_base.py +0 -0
  49. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/plugin/__init__.py +0 -0
  50. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/plugin/dependency_resolver.py +0 -0
  51. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/plugin/repository.py +0 -0
  52. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/plugin/service.py +0 -0
  53. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/plugin/validator.py +0 -0
  54. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/plugin_state.py +0 -0
  55. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/repository/__init__.py +0 -0
  56. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/repository/app_settings.py +0 -0
  57. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/__init__.py +0 -0
  58. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/actions/__init__.py +0 -0
  59. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/actions/modules.py +0 -0
  60. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/admin_menu.py +0 -0
  61. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/app_static.py +0 -0
  62. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/base_module.py +0 -0
  63. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/home.py +0 -0
  64. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/ready.py +0 -0
  65. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/service_worker.py +0 -0
  66. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/routers/settings.py +0 -0
  67. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/static.py +0 -0
  68. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/__init__.py +0 -0
  69. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/fastapi.py +0 -0
  70. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/fs_tools.py +0 -0
  71. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/inspect_tools.py +0 -0
  72. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/install.py +0 -0
  73. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/jinja_tools.py +0 -0
  74. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/lock.py +0 -0
  75. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/serialize_tools.py +0 -0
  76. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/system.py +0 -0
  77. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/tools/threads_tools.py +0 -0
  78. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/topbar.py +0 -0
  79. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/view_builder/__init__.py +0 -0
  80. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/view_builder/builder.py +0 -0
  81. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/view_builder/form_builder.py +0 -0
  82. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/view_builder/pagination.py +0 -0
  83. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/__init__.py +0 -0
  84. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/base.py +0 -0
  85. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/__init__.py +0 -0
  86. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/custom.py +0 -0
  87. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/__init__.py +0 -0
  88. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/debug.py +0 -0
  89. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/model.py +0 -0
  90. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/raw.py +0 -0
  91. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/table.py +0 -0
  92. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/table_model.py +0 -0
  93. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/data/traceback.py +0 -0
  94. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/__init__.py +0 -0
  95. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/alert.py +0 -0
  96. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/card.py +0 -0
  97. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/code.py +0 -0
  98. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/custom.py +0 -0
  99. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/progress.py +0 -0
  100. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/display/stats.py +0 -0
  101. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/input/__init__.py +0 -0
  102. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/input/button.py +0 -0
  103. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/input/button_list.py +0 -0
  104. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/input/form.py +0 -0
  105. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/layout/__init__.py +0 -0
  106. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/layout/grid.py +0 -0
  107. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/categories/layout/tabbed.py +0 -0
  108. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/fastpluggy_integration.py +0 -0
  109. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/mixins.py +0 -0
  110. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/core/widgets/render_field_tools.py +0 -0
  111. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/fastpluggy.py +0 -0
  112. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/01-tokens.css +0 -0
  113. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/02-tabler-bridge.css +0 -0
  114. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/03-layout.css +0 -0
  115. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/04-components.css +0 -0
  116. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/05-admin.css +0 -0
  117. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/06-widgets.css +0 -0
  118. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/07-responsive.css +0 -0
  119. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/08-json-modal.css +0 -0
  120. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/__init__.py +0 -0
  121. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/fastpluggy.css +0 -0
  122. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/css/styles.css +0 -0
  123. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/favicon.svg +0 -0
  124. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/js/__init__.py +0 -0
  125. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/js/scripts.js +0 -0
  126. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/js/sw-register.js +0 -0
  127. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/service-worker-base.js +0 -0
  128. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/all.min.css +0 -0
  129. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-brands-400.ttf +0 -0
  130. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-brands-400.woff2 +0 -0
  131. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-regular-400.ttf +0 -0
  132. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-regular-400.woff2 +0 -0
  133. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-solid-900.ttf +0 -0
  134. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-solid-900.woff2 +0 -0
  135. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-v4compatibility.ttf +0 -0
  136. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/fontawesome-6.0.0/webfonts/fa-v4compatibility.woff2 +0 -0
  137. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-1.4.0/css/tabler-themes.min.css +0 -0
  138. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-1.4.0/css/tabler-themes.min.css.map +0 -0
  139. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-1.4.0/css/tabler.min.css +0 -0
  140. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-1.4.0/css/tabler.min.css.map +0 -0
  141. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-1.4.0/js/tabler.min.js +0 -0
  142. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-1.4.0/js/tabler.min.js.map +0 -0
  143. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-icons/fonts/tabler-icons.eot +0 -0
  144. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-icons/fonts/tabler-icons.ttf +0 -0
  145. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-icons/fonts/tabler-icons.woff +0 -0
  146. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  147. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/static/vendor/tabler-icons/tabler-icons.min.css +0 -0
  148. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/403.html.j2 +0 -0
  149. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/404.html.j2 +0 -0
  150. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/__init__.py +0 -0
  151. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/admin/admin_menu.html.j2 +0 -0
  152. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/admin/capabilities.html.j2 +0 -0
  153. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/admin/events.html.j2 +0 -0
  154. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/admin/module_overview.html.j2 +0 -0
  155. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/auth/__init__.py +0 -0
  156. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/base.html.j2 +0 -0
  157. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/components/__init__.py +0 -0
  158. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/components/table_filter_component.html.j2 +0 -0
  159. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/degraded_mode.html.j2 +0 -0
  160. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/error.html.j2 +0 -0
  161. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/error_base.html.j2 +0 -0
  162. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/flash_messages.html.j2 +0 -0
  163. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/generic_page.html.j2 +0 -0
  164. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/index.html.j2 +0 -0
  165. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/menu.html.j2 +0 -0
  166. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/plugin_load_error.html.j2 +0 -0
  167. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/data/debug.html.j2 +0 -0
  168. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/data/table.html.j2 +0 -0
  169. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/data/traceback.html.j2 +0 -0
  170. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/data/view_model.html.j2 +0 -0
  171. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/display/alert.html.j2 +0 -0
  172. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/display/card.html.j2 +0 -0
  173. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/display/code.html.j2 +0 -0
  174. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/display/progress.html.j2 +0 -0
  175. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/display/stats.html.j2 +0 -0
  176. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/display/status.html.j2 +0 -0
  177. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/input/button.html.j2 +0 -0
  178. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/input/button_list.html.j2 +0 -0
  179. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/input/form.html.j2 +0 -0
  180. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/layout/grid.html.j2 +0 -0
  181. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/layout/tabbed.html.j2 +0 -0
  182. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/partials/card_header.html.j2 +0 -0
  183. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/partials/pagination_macros.html.j2 +0 -0
  184. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/src/fastpluggy/templates/widgets/widget_renderer.html.j2 +0 -0
  185. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_app.py +0 -0
  186. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_app_static.py +0 -0
  187. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_auth.py +0 -0
  188. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_core_metrics.py +0 -0
  189. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_database_driver.py +0 -0
  190. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_database_pool.py +0 -0
  191. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_degraded_mode.py +0 -0
  192. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_domain_module_manager.py +0 -0
  193. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_dynamic_settings.py +0 -0
  194. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_ensure_index.py +0 -0
  195. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_event_bus.py +0 -0
  196. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_event_bus_ownership.py +0 -0
  197. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_execute_removed.py +0 -0
  198. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_fast_pluggy_init.py +0 -0
  199. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_flash.py +0 -0
  200. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_metrics.py +0 -0
  201. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_module_base_router_guard.py +0 -0
  202. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_simple_example.py +0 -0
  203. {fastpluggy-0.4.71 → fastpluggy-0.4.73}/tests/test_topbar.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FastPluggy
3
- Version: 0.4.71
3
+ Version: 0.4.73
4
4
  Summary: A FastAPI-based framework with plugin management.
5
5
  Project-URL: Homepage, https://fastpluggy.xyz
6
6
  Project-URL: Documentation, https://docs.fastpluggy.xyz
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "FastPluggy"
9
- version = "0.4.71"
9
+ version = "0.4.73"
10
10
  description = "A FastAPI-based framework with plugin management."
11
11
  readme = "README.md"
12
12
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FastPluggy
3
- Version: 0.4.71
3
+ Version: 0.4.73
4
4
  Summary: A FastAPI-based framework with plugin management.
5
5
  Project-URL: Homepage, https://fastpluggy.xyz
6
6
  Project-URL: Documentation, https://docs.fastpluggy.xyz
@@ -197,4 +197,5 @@ tests/test_flash.py
197
197
  tests/test_metrics.py
198
198
  tests/test_module_base_router_guard.py
199
199
  tests/test_simple_example.py
200
+ tests/test_sys_path_reload.py
200
201
  tests/test_topbar.py
@@ -226,9 +226,13 @@ class BaseModuleManager(ABC):
226
226
  folder_path = Path(folder)
227
227
 
228
228
  if folder_path.exists():
229
- # Add folder to module search path
230
- domain_path = folder_path.resolve()
231
- sys.path.append(str(domain_path))
229
+ # Add folder to module search path, once: discover_plugins() re-runs on
230
+ # every load_app() (settings save, enable/disable, reload), and an
231
+ # unconditional append grew sys.path by one entry per folder each time
232
+ # (fast_pluggy#33).
233
+ domain_path = str(folder_path.resolve())
234
+ if domain_path not in sys.path:
235
+ sys.path.append(domain_path)
232
236
 
233
237
  logger.info(f"🔍 Discovering {module_type} modules in {domain_path}")
234
238
 
@@ -241,6 +241,50 @@ class MenuManager:
241
241
 
242
242
  return sorted_flat
243
243
 
244
+ def get_hidden_items(self, menu_types: tuple[str, ...] = ("main", "user", "admin")) -> list[dict[str, Any]]:
245
+ """Return the navigable pages that a menu override has hidden.
246
+
247
+ ``get_menu``/``get_flat_menu`` drop an entry whose override has
248
+ ``hidden=True`` (and a hidden dropdown takes its children with it), so
249
+ the page becomes unreachable from the UI. This lists exactly those
250
+ pages so the admin can still open them (Manage Plugins page).
251
+
252
+ Each entry: ``label`` (label override applied), ``url``, ``icon``,
253
+ ``menu_type``. Items without a real URL (``#`` parents) are skipped;
254
+ URLs are de-duplicated; order follows the menu order.
255
+ """
256
+ hidden: list[dict[str, Any]] = []
257
+ seen: set[str] = set()
258
+
259
+ def _add(item: MenuItem, menu_type: str) -> None:
260
+ if not item.url or item.url == "#" or item.url in seen:
261
+ return
262
+ seen.add(item.url)
263
+ override = self._overrides.get((menu_type, item.url))
264
+ hidden.append({
265
+ "label": (override.label_override if override and override.label_override else item.label),
266
+ "url": item.url,
267
+ "icon": item.icon,
268
+ "menu_type": menu_type,
269
+ })
270
+
271
+ def _is_hidden(item: MenuItem, menu_type: str) -> bool:
272
+ override = self._overrides.get((menu_type, item.url or ""))
273
+ return bool(override and override.hidden)
274
+
275
+ for menu_type in menu_types:
276
+ for item in self.menus.get(menu_type, []):
277
+ if _is_hidden(item, menu_type):
278
+ _add(item, menu_type)
279
+ # A hidden dropdown hides all of its children with it.
280
+ for child in item.children:
281
+ _add(child, menu_type)
282
+ continue
283
+ for child in item.children:
284
+ if _is_hidden(child, menu_type):
285
+ _add(child, menu_type)
286
+ return hidden
287
+
244
288
  def update_menu_from_routes(self, app_routes: list[APIRoute],
245
289
  module_manager: BaseModuleManager, # <— now pass this in
246
290
  menu_type: str = "main", ):
@@ -1,4 +1,5 @@
1
1
  from fastapi import APIRouter, Depends, Request
2
+ from markupsafe import escape
2
3
 
3
4
  from fastpluggy.core.base_module_manager import BaseModuleManager
4
5
  from fastpluggy.core.dependency import get_view_builder, get_fastpluggy, get_module_manager
@@ -8,7 +9,7 @@ from fastpluggy.core.tools.fastapi import handle_action_result
8
9
  from fastpluggy.core.widgets import TableWidget
9
10
  from fastpluggy.core.widgets.categories.data.debug import DebugWidget
10
11
  from fastpluggy.core.widgets.categories.display.custom import CustomTemplateWidget
11
- from fastpluggy.core.widgets.categories.input.button import AutoLinkWidget
12
+ from fastpluggy.core.widgets.categories.input.button import AutoLinkWidget, ButtonWidget
12
13
  from fastpluggy.core.widgets.categories.input.button_list import ButtonListWidget
13
14
  from fastpluggy.core.widgets.render_field_tools import RenderFieldTools
14
15
 
@@ -172,6 +173,30 @@ def list_plugins(
172
173
  ButtonListWidget(
173
174
  buttons=buttons,
174
175
  ),
176
+ ]
177
+
178
+ # Pages hidden from the menu via Menu Management are otherwise unreachable
179
+ # from the UI — give the admin a way back to them here.
180
+ hidden_pages = fast_pluggy.menu_manager.get_hidden_items()
181
+ if hidden_pages:
182
+ items.append(
183
+ ButtonListWidget(
184
+ title='Pages hidden from the menu',
185
+ buttons=[
186
+ ButtonWidget(
187
+ url=page['url'],
188
+ # Button template renders the label raw (autoescape is off)
189
+ # and label overrides are admin-typed text.
190
+ label=str(escape(page['label'])),
191
+ icon=page['icon'] or 'ti ti-eye-off',
192
+ css_class='btn btn-outline-secondary',
193
+ )
194
+ for page in hidden_pages
195
+ ],
196
+ )
197
+ )
198
+
199
+ items += [
175
200
  TableWidget(
176
201
  title='Plugin List',
177
202
  fields=["module_menu_icon", 'have_update', 'module_name', 'module_type', 'version_html', 'status_html'],
@@ -0,0 +1,50 @@
1
+ """sys.path must not grow on load_app() reloads (fast_pluggy#33).
2
+
3
+ discover_plugins() runs on every load_app() (settings save, enable/disable,
4
+ remove, admin reload) and used to append each module folder unconditionally.
5
+ """
6
+ import sys
7
+ import tempfile
8
+ from pathlib import Path
9
+
10
+ from fastpluggy.core.base_module_manager import BaseModuleManager
11
+
12
+
13
+ def _manager():
14
+ # discover_plugins only needs plugin_states + modules; skip __init__'s DB read.
15
+ mm = BaseModuleManager.__new__(BaseModuleManager)
16
+ mm.plugin_states = {}
17
+ mm.modules = {}
18
+ return mm
19
+
20
+
21
+ def test_discover_plugins_adds_folder_to_sys_path_once(monkeypatch):
22
+ folder = Path(tempfile.mkdtemp(prefix="fp33_")) / "plugins"
23
+ folder.mkdir()
24
+ resolved = str(folder.resolve())
25
+ monkeypatch.setattr(sys, "path", list(sys.path)) # restored after the test
26
+
27
+ mm = _manager()
28
+ for _ in range(10): # one discover per load_app()
29
+ mm.discover_plugins(folder=str(folder), module_type="plugin")
30
+
31
+ assert sys.path.count(resolved) == 1
32
+
33
+
34
+ def test_discover_plugins_keeps_preexisting_entry_position(monkeypatch):
35
+ folder = Path(tempfile.mkdtemp(prefix="fp33_")) / "domains"
36
+ folder.mkdir()
37
+ resolved = str(folder.resolve())
38
+ monkeypatch.setattr(sys, "path", [resolved] + list(sys.path))
39
+
40
+ _manager().discover_plugins(folder=str(folder), module_type="domain")
41
+
42
+ assert sys.path.count(resolved) == 1
43
+ assert sys.path[0] == resolved # not moved / re-appended
44
+
45
+
46
+ def test_missing_folder_does_not_touch_sys_path(monkeypatch):
47
+ monkeypatch.setattr(sys, "path", list(sys.path))
48
+ before = list(sys.path)
49
+ _manager().discover_plugins(folder="/nonexistent/fp33/plugins", module_type="plugin")
50
+ assert sys.path == before
File without changes
File without changes