simple-module-hosting 0.0.48__tar.gz → 0.0.50__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 (406) hide show
  1. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/PKG-INFO +5 -5
  2. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/README.md +1 -1
  3. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/pyproject.toml +4 -4
  4. simple_module_hosting-0.0.50/simple_module_hosting/__init__.py +72 -0
  5. simple_module_hosting-0.0.50/simple_module_hosting/_api_version.py +13 -0
  6. simple_module_hosting-0.0.50/simple_module_hosting/_app_boot.py +13 -0
  7. simple_module_hosting-0.0.50/simple_module_hosting/_body_limit.py +13 -0
  8. simple_module_hosting-0.0.50/simple_module_hosting/_csp_dynamic.py +13 -0
  9. simple_module_hosting-0.0.50/simple_module_hosting/_forwarded_host.py +13 -0
  10. simple_module_hosting-0.0.50/simple_module_hosting/_host_services.py +13 -0
  11. simple_module_hosting-0.0.50/simple_module_hosting/_hydrate_step.py +13 -0
  12. simple_module_hosting-0.0.50/simple_module_hosting/_i18n_modules.py +13 -0
  13. simple_module_hosting-0.0.50/simple_module_hosting/_i18n_target.py +13 -0
  14. simple_module_hosting-0.0.50/simple_module_hosting/_module_routes.py +13 -0
  15. simple_module_hosting-0.0.50/simple_module_hosting/_preapp_config.py +13 -0
  16. simple_module_hosting-0.0.50/simple_module_hosting/_route_paths.py +13 -0
  17. simple_module_hosting-0.0.50/simple_module_hosting/_secret_key.py +13 -0
  18. simple_module_hosting-0.0.50/simple_module_hosting/_tenant.py +13 -0
  19. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/admin_overview/routes.py +2 -2
  20. simple_module_hosting-0.0.50/simple_module_hosting/admin_surfaces.py +13 -0
  21. simple_module_hosting-0.0.50/simple_module_hosting/app_builder.py +13 -0
  22. simple_module_hosting-0.0.50/simple_module_hosting/assets.py +13 -0
  23. simple_module_hosting-0.0.50/simple_module_hosting/auth/__init__.py +1 -0
  24. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/_anonymous.py +3 -5
  25. simple_module_hosting-0.0.50/simple_module_hosting/auth/api_equivalent.py +254 -0
  26. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/auth_policy.py +3 -3
  27. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/csrf.py +50 -3
  28. simple_module_hosting-0.0.50/simple_module_hosting/auth/host_permissions.py +14 -0
  29. simple_module_hosting-0.0.50/simple_module_hosting/auth/meta_openapi.py +89 -0
  30. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/permissions.py +17 -12
  31. simple_module_hosting-0.0.50/simple_module_hosting/auth/principal.py +18 -0
  32. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/resource_deps.py +19 -12
  33. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/token_guard.py +22 -12
  34. simple_module_hosting-0.0.50/simple_module_hosting/auth/whoami.py +44 -0
  35. simple_module_hosting-0.0.50/simple_module_hosting/auth_policy.py +13 -0
  36. simple_module_hosting-0.0.50/simple_module_hosting/boot/__init__.py +1 -0
  37. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_app_boot.py +18 -17
  38. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_boot_checks.py +3 -3
  39. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_db_health.py +1 -1
  40. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_deferred_startup.py +20 -18
  41. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_dev_boot.py +4 -4
  42. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_hydrate_step.py +4 -4
  43. simple_module_hosting-0.0.50/simple_module_hosting/boot/_lifespan.py +214 -0
  44. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_module_routes.py +3 -3
  45. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_openapi.py +4 -3
  46. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_phase_helpers.py +8 -8
  47. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_process_services.py +2 -2
  48. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_project_root.py +2 -2
  49. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_registrations.py +8 -4
  50. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_table_coverage.py +2 -2
  51. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/app_builder.py +59 -57
  52. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/data_compatibility.py +5 -2
  53. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/db_options.py +1 -1
  54. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/health.py +8 -3
  55. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/host.py +8 -4
  56. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/migrations.py +2 -2
  57. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/migrations_env.py +3 -3
  58. simple_module_hosting-0.0.50/simple_module_hosting/bootstrap_settings.py +13 -0
  59. simple_module_hosting-0.0.50/simple_module_hosting/config/__init__.py +1 -0
  60. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_api_version.py +1 -1
  61. simple_module_hosting-0.0.50/simple_module_hosting/config/_app_name.py +31 -0
  62. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_host_services.py +2 -2
  63. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_host_settings_support.py +5 -5
  64. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_preapp_config.py +14 -11
  65. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_secret_key.py +4 -4
  66. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_settings_registration.py +7 -5
  67. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_stored_identity.py +1 -1
  68. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/bootstrap_settings.py +3 -3
  69. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/host_settings.py +6 -6
  70. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/installation.py +2 -2
  71. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/settings.py +4 -3
  72. simple_module_hosting-0.0.50/simple_module_hosting/csrf.py +13 -0
  73. simple_module_hosting-0.0.50/simple_module_hosting/error_handling/__init__.py +1 -0
  74. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/_error_handlers.py +16 -11
  75. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/_error_page.py +5 -2
  76. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/errors.py +8 -3
  77. simple_module_hosting-0.0.50/simple_module_hosting/error_handling/sanitization.py +5 -0
  78. simple_module_hosting-0.0.50/simple_module_hosting/frontend/__init__.py +1 -0
  79. simple_module_hosting-0.0.50/simple_module_hosting/frontend/_asset_sources.py +43 -0
  80. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_inertia_setup.py +11 -8
  81. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_inertia_shared.py +24 -5
  82. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_spa_mount.py +8 -4
  83. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/assets.py +20 -30
  84. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/frontend_extensions.py +1 -1
  85. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/inertia_deps.py +2 -2
  86. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/inertia_utils.py +3 -2
  87. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/manifest.py +8 -8
  88. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/module_tsconfig.py +2 -2
  89. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/page_globs.py +1 -1
  90. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/pagination.py +1 -1
  91. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/shared_props.py +1 -1
  92. simple_module_hosting-0.0.50/simple_module_hosting/health.py +13 -0
  93. simple_module_hosting-0.0.50/simple_module_hosting/host.py +13 -0
  94. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/host_cli.py +8 -8
  95. simple_module_hosting-0.0.50/simple_module_hosting/host_settings.py +13 -0
  96. simple_module_hosting-0.0.50/simple_module_hosting/i18n/__init__.py +1 -0
  97. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_build.py +4 -4
  98. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_json.py +2 -2
  99. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_modules.py +4 -4
  100. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_target.py +1 -1
  101. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_deps.py +1 -1
  102. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_manifest.py +7 -7
  103. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_routes.py +6 -3
  104. simple_module_hosting-0.0.50/simple_module_hosting/i18n_deps.py +13 -0
  105. simple_module_hosting-0.0.50/simple_module_hosting/i18n_manifest.py +13 -0
  106. simple_module_hosting-0.0.50/simple_module_hosting/inertia_deps.py +13 -0
  107. simple_module_hosting-0.0.50/simple_module_hosting/inertia_utils.py +13 -0
  108. simple_module_hosting-0.0.50/simple_module_hosting/installation.py +13 -0
  109. simple_module_hosting-0.0.50/simple_module_hosting/leases.py +13 -0
  110. simple_module_hosting-0.0.50/simple_module_hosting/locales/de.json +215 -0
  111. simple_module_hosting-0.0.50/simple_module_hosting/locales/en.json +215 -0
  112. simple_module_hosting-0.0.50/simple_module_hosting/locales/es.json +215 -0
  113. simple_module_hosting-0.0.50/simple_module_hosting/locking/__init__.py +1 -0
  114. simple_module_hosting-0.0.50/simple_module_hosting/locking/_lease_redis.py +295 -0
  115. simple_module_hosting-0.0.50/simple_module_hosting/locking/_lease_redis_close.py +228 -0
  116. simple_module_hosting-0.0.50/simple_module_hosting/locking/_lease_redis_scripts.py +63 -0
  117. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/locking}/leases.py +4 -4
  118. simple_module_hosting-0.0.50/simple_module_hosting/log_sinks.py +13 -0
  119. simple_module_hosting-0.0.50/simple_module_hosting/logging.py +13 -0
  120. simple_module_hosting-0.0.50/simple_module_hosting/manifest.py +13 -0
  121. simple_module_hosting-0.0.50/simple_module_hosting/middleware.py +13 -0
  122. simple_module_hosting-0.0.50/simple_module_hosting/migrations.py +13 -0
  123. simple_module_hosting-0.0.50/simple_module_hosting/migrations_env.py +13 -0
  124. simple_module_hosting-0.0.50/simple_module_hosting/observability/__init__.py +1 -0
  125. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/_observability.py +14 -4
  126. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/log_sinks.py +8 -3
  127. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/logging.py +1 -1
  128. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/sentry.py +4 -4
  129. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/sentry_scrub.py +1 -1
  130. simple_module_hosting-0.0.50/simple_module_hosting/pagination.py +13 -0
  131. simple_module_hosting-0.0.50/simple_module_hosting/path_matching.py +13 -0
  132. simple_module_hosting-0.0.50/simple_module_hosting/permissions.py +13 -0
  133. simple_module_hosting-0.0.50/simple_module_hosting/pipeline/__init__.py +1 -0
  134. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_body_limit.py +4 -4
  135. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_cors.py +3 -3
  136. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_csp_dynamic.py +1 -1
  137. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_insecure_transport.py +1 -1
  138. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_middleware_pipeline.py +21 -21
  139. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_request_guard_responses.py +2 -2
  140. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_request_policy.py +3 -3
  141. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_route_access.py +12 -6
  142. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_route_guard.py +1 -1
  143. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_security_headers.py +7 -3
  144. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_server_timing.py +1 -1
  145. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_tenant.py +2 -2
  146. simple_module_hosting-0.0.50/simple_module_hosting/pipeline/compression.py +123 -0
  147. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/maintenance.py +10 -7
  148. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/middleware.py +12 -11
  149. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/middleware_config.py +24 -9
  150. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/public_access.py +1 -1
  151. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/public_urls.py +1 -1
  152. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/redirects.py +6 -3
  153. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/session.py +2 -2
  154. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/setup_gate.py +8 -8
  155. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/tenancy.py +2 -2
  156. simple_module_hosting-0.0.50/simple_module_hosting/public_access.py +13 -0
  157. simple_module_hosting-0.0.50/simple_module_hosting/public_urls.py +13 -0
  158. simple_module_hosting-0.0.50/simple_module_hosting/rate_limit/__init__.py +1 -0
  159. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/_rate_limit.py +12 -7
  160. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/_rate_limit_store.py +5 -1
  161. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/rate_limit_deps.py +8 -4
  162. simple_module_hosting-0.0.50/simple_module_hosting/rate_limit_deps.py +13 -0
  163. simple_module_hosting-0.0.50/simple_module_hosting/redirects.py +13 -0
  164. simple_module_hosting-0.0.50/simple_module_hosting/resource_deps.py +13 -0
  165. simple_module_hosting-0.0.50/simple_module_hosting/sentry.py +13 -0
  166. simple_module_hosting-0.0.50/simple_module_hosting/session.py +13 -0
  167. simple_module_hosting-0.0.50/simple_module_hosting/settings.py +13 -0
  168. simple_module_hosting-0.0.50/simple_module_hosting/setup_gate.py +13 -0
  169. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/__init__.py +2 -2
  170. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/composition.py +3 -3
  171. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/migrate.py +6 -6
  172. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/payloads.py +3 -3
  173. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/routes.py +8 -7
  174. simple_module_hosting-0.0.50/simple_module_hosting/shared_props.py +13 -0
  175. simple_module_hosting-0.0.50/simple_module_hosting/tenancy.py +13 -0
  176. simple_module_hosting-0.0.50/simple_module_hosting/token_guard.py +13 -0
  177. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/ui_locales/de.json +12 -1
  178. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/ui_locales/en.json +12 -1
  179. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/ui_locales/es.json +12 -1
  180. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tests/_resacc_models.py +2 -2
  181. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tests/_sentry_transport.py +1 -1
  182. simple_module_hosting-0.0.50/tests/auth/test_api_equivalent.py +252 -0
  183. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_grant_sources.py +5 -5
  184. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_csrf.py +33 -4
  185. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_csrf_partial.py +6 -6
  186. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_csrf_shared_prop.py +2 -2
  187. simple_module_hosting-0.0.50/tests/auth/test_hosting_csrf_tokens.py +124 -0
  188. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_permissions.py +6 -6
  189. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_platform_permissions.py +2 -2
  190. simple_module_hosting-0.0.50/tests/auth/test_meta_openapi.py +126 -0
  191. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_permission_any_of.py +2 -2
  192. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_principal_builder.py +6 -6
  193. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_principal_permissions_claim.py +2 -2
  194. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_resource_deps.py +3 -3
  195. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_resource_policy_owned.py +6 -2
  196. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_resource_policy_parity.py +2 -2
  197. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_shared_host_policy.py +4 -4
  198. simple_module_hosting-0.0.50/tests/auth/test_single_tenant_principal.py +94 -0
  199. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_token_guard_effective_route.py +4 -4
  200. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/auth}/test_token_route_guard.py +3 -3
  201. simple_module_hosting-0.0.50/tests/auth/test_whoami.py +36 -0
  202. simple_module_hosting-0.0.50/tests/backend_cleanup_helpers.py +86 -0
  203. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_admin_surface.py +8 -5
  204. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_app.py +18 -12
  205. simple_module_hosting-0.0.50/tests/boot/test_app_name.py +163 -0
  206. simple_module_hosting-0.0.50/tests/boot/test_app_project_root.py +20 -0
  207. simple_module_hosting-0.0.50/tests/boot/test_backend_resource_cleanup.py +199 -0
  208. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_boot_drift_check.py +8 -4
  209. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_check_migrations.py +1 -1
  210. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_check_migrations_expression_note.py +4 -4
  211. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_csp_module_sources.py +4 -4
  212. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_customize_registries.py +11 -10
  213. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_database_injection.py +10 -8
  214. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_db_health_check.py +2 -2
  215. simple_module_hosting-0.0.50/tests/boot/test_deferred_startup_serialization.py +43 -0
  216. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_design_packs_wiring.py +4 -4
  217. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_dev_boot_exit.py +1 -1
  218. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_dev_boot_output.py +19 -11
  219. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_diagnostics_state.py +10 -7
  220. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_fallback_finalization.py +6 -6
  221. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_fallback_routes.py +15 -13
  222. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_file_access_registration.py +2 -2
  223. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_health.py +1 -1
  224. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_host_factory.py +23 -18
  225. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_data_compatibility.py +16 -14
  226. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_health_bounded.py +10 -5
  227. simple_module_hosting-0.0.50/tests/boot/test_hosting_layout_shims.py +66 -0
  228. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_lifespan_cleanup.py +1 -1
  229. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_openapi.py +7 -7
  230. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_openapi_security.py +13 -10
  231. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_table_coverage.py +4 -4
  232. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_invalidation_wiring.py +2 -2
  233. simple_module_hosting-0.0.50/tests/boot/test_lifespan_deferred_startup.py +185 -0
  234. simple_module_hosting-0.0.50/tests/boot/test_lifespan_lease_contention.py +72 -0
  235. simple_module_hosting-0.0.50/tests/boot/test_lifespan_lease_ownership.py +185 -0
  236. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_lifespan_order.py +5 -5
  237. simple_module_hosting-0.0.50/tests/boot/test_lifespan_resource_cleanup.py +226 -0
  238. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_migration_listing.py +1 -1
  239. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_migration_multihead.py +2 -2
  240. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_migration_script_cache.py +2 -2
  241. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_migrations_env.py +7 -7
  242. simple_module_hosting-0.0.50/tests/boot/test_openapi_token_flag.py +47 -0
  243. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_resource_types_wiring.py +5 -5
  244. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_setup_public_routes.py +2 -2
  245. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_strict_discovery_wiring.py +11 -9
  246. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_tenant_resolver_diagnostic.py +2 -2
  247. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_view_prefixes.py +1 -1
  248. simple_module_hosting-0.0.50/tests/config/test_app_name.py +34 -0
  249. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_auth_provider_setting.py +2 -2
  250. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_boot_config_hardening.py +7 -7
  251. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_build_time_settings_marked.py +3 -3
  252. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_host_settings_fields.py +3 -3
  253. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_hosting_api_version_cache.py +1 -1
  254. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_hosting_config_sources.py +7 -7
  255. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_installation_id.py +8 -5
  256. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_login_redirect_setting.py +7 -5
  257. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_merge_host_settings_strict.py +7 -4
  258. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_native_link_prefixes_strip.py +1 -1
  259. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_preapp_config.py +2 -2
  260. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_preapp_invalid_values.py +4 -4
  261. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_preapp_read_failures.py +4 -4
  262. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_secret_key_bootstrap.py +3 -3
  263. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_settings_i18n.py +1 -1
  264. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_settings_secrets.py +2 -2
  265. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_setup_secret_key.py +7 -7
  266. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/config}/test_sqlite_path_anchor.py +5 -5
  267. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tests/conftest.py +1 -5
  268. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_api_error_negotiation.py +1 -1
  269. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_error_page_shared_props.py +2 -2
  270. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_error_status_coverage.py +7 -7
  271. simple_module_hosting-0.0.50/tests/error_handling/test_error_surrogates.py +205 -0
  272. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_hosting_error_json_and_session_cookie.py +1 -1
  273. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_branding_head.py +2 -2
  274. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_favicon_default.py +1 -1
  275. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_frontend_extensions.py +8 -8
  276. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_generated_file_writes.py +3 -3
  277. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_home_url_default.py +1 -1
  278. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_asset_version.py +4 -4
  279. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_framework_pages_reserved.py +1 -1
  280. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_inertia_body_validation.py +1 -1
  281. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_inertia_validation_errors.py +1 -1
  282. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_lazy_layout_catalogs.py +12 -12
  283. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_pagination_deps.py +1 -1
  284. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_spa_mount_nonce.py +1 -1
  285. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_ui_assets.py +22 -7
  286. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_inertia_i18n_shared_props.py +9 -9
  287. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_inertia_protocol_middleware.py +1 -1
  288. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_inertia_shared_providers.py +27 -7
  289. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_manifest.py +3 -3
  290. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_menu_providers_wiring.py +4 -4
  291. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_module_tsconfig.py +16 -14
  292. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_module_tsconfig_coverage.py +13 -6
  293. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_precompressed_static.py +1 -1
  294. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_server_rendered_head.py +2 -2
  295. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_spa_mounts_541.py +7 -7
  296. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_static_caching.py +1 -1
  297. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_hosting_catalog_json_cache.py +3 -3
  298. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_build_overrides.py +2 -2
  299. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_manifest.py +4 -4
  300. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_manifest_published_target.py +2 -2
  301. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_routes.py +2 -2
  302. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_types_cover_installed_modules.py +4 -4
  303. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_ui_namespace.py +2 -2
  304. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_locale_middleware.py +1 -1
  305. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_portable_i18n_typecheck.py +4 -4
  306. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/i18n}/test_translator_dep.py +3 -3
  307. simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_cancellation.py +272 -0
  308. simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_fork_failures.py +96 -0
  309. simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_handoff.py +263 -0
  310. simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_transports.py +294 -0
  311. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/locking}/test_hosting_lease_backends.py +3 -3
  312. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/locking}/test_hosting_lease_selection.py +3 -3
  313. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/locking}/test_hosting_lease_timeouts.py +7 -2
  314. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_log_sinks.py +9 -5
  315. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_sentry.py +4 -4
  316. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_sentry_scrub.py +2 -2
  317. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_sentry_scrub_gaps.py +9 -4
  318. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/observability}/test_logging.py +20 -2
  319. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_forwarded_host.py +3 -3
  320. simple_module_hosting-0.0.50/tests/pipeline/test_gzip_negotiation.py +107 -0
  321. simple_module_hosting-0.0.50/tests/pipeline/test_host_gzip.py +117 -0
  322. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_cors_api.py +1 -1
  323. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_csp_nonce.py +4 -4
  324. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_csp_providers.py +4 -4
  325. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_error_handling_policy.py +5 -3
  326. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_public_access.py +3 -3
  327. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_public_path_boundaries.py +4 -4
  328. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_security_static_headers.py +36 -2
  329. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_server_timing.py +7 -4
  330. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_insecure_transport_warning.py +4 -4
  331. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_live_request_guards.py +12 -12
  332. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_maintenance_mode.py +12 -5
  333. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_menu_urls_are_canonical.py +1 -1
  334. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_order.py +6 -5
  335. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_overrides.py +34 -10
  336. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_session_replacement.py +5 -5
  337. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_stages.py +2 -1
  338. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_proxy_headers.py +3 -3
  339. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_redirects.py +5 -1
  340. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_request_guard_body_limit.py +2 -2
  341. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_request_guard_body_limit_middleware_read.py +1 -1
  342. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_request_guard_body_limit_started.py +1 -1
  343. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_response_compression.py +4 -4
  344. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_route_guard.py +2 -2
  345. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_route_guard_fastapi_contract.py +3 -3
  346. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_route_paths.py +2 -2
  347. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_cookie_secure.py +3 -3
  348. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_cookie_window.py +4 -4
  349. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_root.py +4 -4
  350. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_vary_dedupe.py +1 -1
  351. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_setup_gate.py +9 -9
  352. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_setup_gate_single_flight.py +5 -5
  353. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenancy_api.py +6 -6
  354. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_middleware.py +3 -3
  355. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_resolver_types.py +2 -2
  356. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_scope_helpers.py +5 -5
  357. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_source.py +2 -2
  358. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_rate_limit_rules_redis.py +2 -2
  359. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_rate_limit_rules_registry.py +4 -4
  360. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_rate_limit_store_shared.py +5 -5
  361. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_request_guard_auth_parity.py +2 -2
  362. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_request_guard_rate_limit.py +5 -5
  363. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_hosting_migration_target.py +3 -3
  364. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_composition.py +2 -2
  365. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_migrate_error_redaction.py +3 -3
  366. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_migrate_worker_lock.py +2 -2
  367. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_registry.py +1 -1
  368. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_routes.py +3 -3
  369. simple_module_hosting-0.0.48/simple_module_hosting/__init__.py +0 -64
  370. simple_module_hosting-0.0.48/simple_module_hosting/_lease_redis.py +0 -174
  371. simple_module_hosting-0.0.48/simple_module_hosting/_lifespan.py +0 -96
  372. simple_module_hosting-0.0.48/simple_module_hosting/locales/de.json +0 -36
  373. simple_module_hosting-0.0.48/simple_module_hosting/locales/en.json +0 -36
  374. simple_module_hosting-0.0.48/simple_module_hosting/locales/es.json +0 -36
  375. simple_module_hosting-0.0.48/tests/test_lifespan_deferred_startup.py +0 -98
  376. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/.gitignore +0 -0
  377. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/LICENSE +0 -0
  378. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/__main__.py +0 -0
  379. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/admin_overview/__init__.py +0 -0
  380. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/admin_overview/pages/Overview.tsx +0 -0
  381. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_fallback_routes.py +0 -0
  382. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/_error_negotiation.py +0 -0
  383. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_favicon.py +0 -0
  384. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_generated_files.py +0 -0
  385. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/admin_surfaces.py +0 -0
  386. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/static_files.py +0 -0
  387. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_middleware.py +0 -0
  388. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/sentry_scrub_text.py +0 -0
  389. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_forwarded_host.py +0 -0
  390. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_route_paths.py +0 -0
  391. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/path_matching.py +0 -0
  392. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/py.typed +0 -0
  393. {simple_module_hosting-0.0.48/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/_rate_limit_keys.py +0 -0
  394. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/_migration_lock.py +0 -0
  395. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/components/ConnectionList.tsx +0 -0
  396. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/components/StepForm.tsx +0 -0
  397. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/pages/Wizard.tsx +0 -0
  398. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tests/_hosting_settings_db.py +0 -0
  399. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/boot}/test_host_cli.py +0 -0
  400. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_hosting_public_error_page.py +0 -0
  401. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_inertia_cache.py +0 -0
  402. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_cors_unset.py +0 -0
  403. {simple_module_hosting-0.0.48/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_cookie_security.py +0 -0
  404. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tests-js/hosting_AdminOverview.test.tsx +0 -0
  405. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tests-js/hosting_SetupWizard.test.tsx +0 -0
  406. {simple_module_hosting-0.0.48 → simple_module_hosting-0.0.50}/tsconfig.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: simple_module_hosting
3
- Version: 0.0.48
3
+ Version: 0.0.50
4
4
  Summary: FastAPI + Inertia.js host runtime for simple_module — app_builder, middleware stack, CLI (sm / simple-module), scaffolding
5
5
  Project-URL: Homepage, https://github.com/antosubash/simple_module_python
6
6
  Project-URL: Repository, https://github.com/antosubash/simple_module_python
@@ -26,9 +26,9 @@ Requires-Dist: fastapi<0.163,>=0.140
26
26
  Requires-Dist: httpx<0.29,>=0.27
27
27
  Requires-Dist: itsdangerous<3,>=2.0
28
28
  Requires-Dist: jinja2<4,>=3.1
29
- Requires-Dist: simple-module-core==0.0.48
30
- Requires-Dist: simple-module-db==0.0.48
31
- Requires-Dist: simple-module-inertia==0.0.48
29
+ Requires-Dist: simple-module-core==0.0.50
30
+ Requires-Dist: simple-module-db==0.0.50
31
+ Requires-Dist: simple-module-inertia==0.0.50
32
32
  Requires-Dist: starlette<2,>=0.44
33
33
  Requires-Dist: tomlkit<0.16,>=0.13
34
34
  Requires-Dist: uvicorn[standard]<0.55,>=0.34
@@ -67,7 +67,7 @@ Minimal `main.py`:
67
67
 
68
68
  ```python
69
69
  from simple_module_hosting import create_app
70
- from simple_module_hosting.settings import Settings
70
+ from simple_module_hosting.config.settings import Settings
71
71
 
72
72
  settings = Settings() # reads SM_* env vars
73
73
  app = create_app(settings) # discovers + registers every installed module
@@ -27,7 +27,7 @@ Minimal `main.py`:
27
27
 
28
28
  ```python
29
29
  from simple_module_hosting import create_app
30
- from simple_module_hosting.settings import Settings
30
+ from simple_module_hosting.config.settings import Settings
31
31
 
32
32
  settings = Settings() # reads SM_* env vars
33
33
  app = create_app(settings) # discovers + registers every installed module
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "simple_module_hosting"
3
- version = "0.0.48"
3
+ version = "0.0.50"
4
4
  description = "FastAPI + Inertia.js host runtime for simple_module — app_builder, middleware stack, CLI (sm / simple-module), scaffolding"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -29,9 +29,9 @@ dependencies = [
29
29
  # it directly — out-of-tree hosts have nothing else pulling it in.
30
30
  "itsdangerous>=2.0,<3",
31
31
  "jinja2>=3.1,<4",
32
- "simple_module_core==0.0.48",
33
- "simple_module_db==0.0.48",
34
- "simple_module_inertia==0.0.48",
32
+ "simple_module_core==0.0.50",
33
+ "simple_module_db==0.0.50",
34
+ "simple_module_inertia==0.0.50",
35
35
  "starlette>=0.44,<2",
36
36
  "tomlkit>=0.13,<0.16",
37
37
  "uvicorn[standard]>=0.34,<0.55",
@@ -0,0 +1,72 @@
1
+ """SimpleModule Hosting - App builder, module loader, middleware pipeline."""
2
+
3
+ from importlib import import_module
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from simple_module_hosting.boot.app_builder import create_app as create_app
8
+ from simple_module_hosting.config._preapp_config import (
9
+ merge_host_settings as merge_host_settings,
10
+ )
11
+ from simple_module_hosting.config.settings import Settings as Settings
12
+ from simple_module_hosting.error_handling.errors import render_error_page as render_error_page
13
+ from simple_module_hosting.frontend.shared_props import (
14
+ SharedPropsProvider as SharedPropsProvider,
15
+ )
16
+ from simple_module_hosting.frontend.shared_props import (
17
+ register_inertia_shared_provider as register_inertia_shared_provider,
18
+ )
19
+ from simple_module_hosting.frontend.shared_props import (
20
+ replace_inertia_shared_prop as replace_inertia_shared_prop,
21
+ )
22
+ from simple_module_hosting.observability.logging import correlation_id as correlation_id
23
+ from simple_module_hosting.observability.logging import setup_logging as setup_logging
24
+ from simple_module_hosting.pipeline.middleware_config import MiddlewareStage as MiddlewareStage
25
+ from simple_module_hosting.pipeline.middleware_config import add_middleware as add_middleware
26
+ from simple_module_hosting.pipeline.middleware_config import (
27
+ disable_middleware as disable_middleware,
28
+ )
29
+ from simple_module_hosting.pipeline.middleware_config import (
30
+ replace_middleware as replace_middleware,
31
+ )
32
+
33
+ __all__ = [
34
+ "MiddlewareStage",
35
+ "Settings",
36
+ "SharedPropsProvider",
37
+ "add_middleware",
38
+ "correlation_id",
39
+ "create_app",
40
+ "disable_middleware",
41
+ "merge_host_settings",
42
+ "register_inertia_shared_provider",
43
+ "render_error_page",
44
+ "replace_inertia_shared_prop",
45
+ "replace_middleware",
46
+ "setup_logging",
47
+ ]
48
+
49
+ _EXPORT_MODULES = {
50
+ "MiddlewareStage": "pipeline.middleware_config",
51
+ "add_middleware": "pipeline.middleware_config",
52
+ "disable_middleware": "pipeline.middleware_config",
53
+ "replace_middleware": "pipeline.middleware_config",
54
+ "Settings": "config.settings",
55
+ "SharedPropsProvider": "frontend.shared_props",
56
+ "correlation_id": "observability.logging",
57
+ "create_app": "boot.app_builder",
58
+ "merge_host_settings": "config._preapp_config",
59
+ "register_inertia_shared_provider": "frontend.shared_props",
60
+ "replace_inertia_shared_prop": "frontend.shared_props",
61
+ "render_error_page": "error_handling.errors",
62
+ "setup_logging": "observability.logging",
63
+ }
64
+
65
+
66
+ def __getattr__(name: str):
67
+ # The host factory must load dotenv before importing settings or app_builder.
68
+ if name not in _EXPORT_MODULES:
69
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
70
+ value = getattr(import_module(f"{__name__}.{_EXPORT_MODULES[name]}"), name)
71
+ globals()[name] = value
72
+ return value
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.config._api_version."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._api_version",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.config._api_version",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.config._api_version")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.boot._app_boot."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._app_boot",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.boot._app_boot",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.boot._app_boot")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.pipeline._body_limit."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._body_limit",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.pipeline._body_limit",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.pipeline._body_limit")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.pipeline._csp_dynamic."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._csp_dynamic",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.pipeline._csp_dynamic",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.pipeline._csp_dynamic")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.pipeline._forwarded_host."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._forwarded_host",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.pipeline._forwarded_host",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.pipeline._forwarded_host")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.config._host_services."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._host_services",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.config._host_services",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.config._host_services")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.boot._hydrate_step."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._hydrate_step",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.boot._hydrate_step",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.boot._hydrate_step")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.i18n._i18n_modules."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._i18n_modules",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.i18n._i18n_modules",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.i18n._i18n_modules")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.i18n._i18n_target."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._i18n_target",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.i18n._i18n_target",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.i18n._i18n_target")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.boot._module_routes."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._module_routes",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.boot._module_routes",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.boot._module_routes")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.config._preapp_config."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._preapp_config",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.config._preapp_config",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.config._preapp_config")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.pipeline._route_paths."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._route_paths",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.pipeline._route_paths",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.pipeline._route_paths")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.config._secret_key."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._secret_key",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.config._secret_key",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.config._secret_key")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.pipeline._tenant."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting._tenant",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.pipeline._tenant",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.pipeline._tenant")
@@ -3,11 +3,11 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from fastapi import APIRouter, HTTPException, Request
6
- from simple_module_core.permissions import is_admin_principal
6
+ from simple_module_core.access.permissions import is_admin_principal
7
7
  from simple_module_inertia import InertiaResponse
8
8
 
9
9
  from simple_module_hosting.admin_overview import PAGE_OVERVIEW
10
- from simple_module_hosting.inertia_deps import InertiaDep
10
+ from simple_module_hosting.frontend.inertia_deps import InertiaDep
11
11
 
12
12
  router = APIRouter()
13
13
 
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.frontend.admin_surfaces."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting.admin_surfaces",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.frontend.admin_surfaces",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.frontend.admin_surfaces")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.boot.app_builder."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting.app_builder",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.boot.app_builder",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.boot.app_builder")
@@ -0,0 +1,13 @@
1
+ """Deprecated alias for simple_module_hosting.frontend.assets."""
2
+
3
+ import sys
4
+ from importlib import import_module
5
+
6
+ from simple_module_core.runtime.deprecation import deprecated_module
7
+
8
+ deprecated_module(
9
+ "simple_module_hosting.assets",
10
+ remove_in="0.0.52",
11
+ use="simple_module_hosting.frontend.assets",
12
+ )
13
+ sys.modules[__name__] = import_module("simple_module_hosting.frontend.assets")
@@ -0,0 +1 @@
1
+ """Hosting auth area."""
@@ -10,17 +10,15 @@ pinned.
10
10
 
11
11
  from __future__ import annotations
12
12
 
13
- from simple_module_db.listeners import current_user_id
14
13
  from starlette.requests import HTTPConnection
15
14
 
16
- from simple_module_hosting._tenant import reresolve_tenant
15
+ from simple_module_hosting.auth.principal import forget_principal
16
+ from simple_module_hosting.pipeline._tenant import reresolve_tenant
17
17
 
18
18
 
19
19
  async def demote_to_anonymous(request: HTTPConnection) -> None:
20
20
  """Drop the principal and re-run tenant resolution as anonymous."""
21
- request.state.user = None
22
- request.state.resolved_permissions = set()
23
- current_user_id.set(None)
21
+ forget_principal(request)
24
22
  await reresolve_tenant(request)
25
23
 
26
24