simple-module-hosting 0.0.49__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.
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/PKG-INFO +5 -5
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/README.md +1 -1
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/pyproject.toml +4 -4
- simple_module_hosting-0.0.50/simple_module_hosting/__init__.py +72 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_api_version.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_app_boot.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_body_limit.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_csp_dynamic.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_forwarded_host.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_host_services.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_hydrate_step.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_i18n_modules.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_i18n_target.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_module_routes.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_preapp_config.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_route_paths.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_secret_key.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/_tenant.py +13 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/admin_overview/routes.py +2 -2
- simple_module_hosting-0.0.50/simple_module_hosting/admin_surfaces.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/app_builder.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/assets.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/auth/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/_anonymous.py +3 -5
- simple_module_hosting-0.0.50/simple_module_hosting/auth/api_equivalent.py +254 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/auth_policy.py +3 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/csrf.py +50 -3
- simple_module_hosting-0.0.50/simple_module_hosting/auth/host_permissions.py +14 -0
- simple_module_hosting-0.0.50/simple_module_hosting/auth/meta_openapi.py +89 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/permissions.py +17 -12
- simple_module_hosting-0.0.50/simple_module_hosting/auth/principal.py +18 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/resource_deps.py +19 -12
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/auth}/token_guard.py +22 -12
- simple_module_hosting-0.0.50/simple_module_hosting/auth/whoami.py +44 -0
- simple_module_hosting-0.0.50/simple_module_hosting/auth_policy.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/boot/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_app_boot.py +18 -17
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_boot_checks.py +3 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_db_health.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_deferred_startup.py +20 -18
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_dev_boot.py +4 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_hydrate_step.py +4 -4
- simple_module_hosting-0.0.50/simple_module_hosting/boot/_lifespan.py +214 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_module_routes.py +3 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_openapi.py +4 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_phase_helpers.py +8 -8
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_process_services.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_project_root.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_registrations.py +8 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_table_coverage.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/app_builder.py +59 -57
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/data_compatibility.py +5 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/db_options.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/health.py +8 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/host.py +8 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/migrations.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/migrations_env.py +3 -3
- simple_module_hosting-0.0.50/simple_module_hosting/bootstrap_settings.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/config/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_api_version.py +1 -1
- simple_module_hosting-0.0.50/simple_module_hosting/config/_app_name.py +31 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_host_services.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_host_settings_support.py +5 -5
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_preapp_config.py +14 -11
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_secret_key.py +4 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_settings_registration.py +7 -5
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/_stored_identity.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/bootstrap_settings.py +3 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/host_settings.py +6 -6
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/installation.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/config}/settings.py +4 -3
- simple_module_hosting-0.0.50/simple_module_hosting/csrf.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/error_handling/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/_error_handlers.py +16 -11
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/_error_page.py +5 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/errors.py +8 -3
- simple_module_hosting-0.0.50/simple_module_hosting/error_handling/sanitization.py +5 -0
- simple_module_hosting-0.0.50/simple_module_hosting/frontend/__init__.py +1 -0
- simple_module_hosting-0.0.50/simple_module_hosting/frontend/_asset_sources.py +43 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_inertia_setup.py +11 -8
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_inertia_shared.py +24 -5
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_spa_mount.py +8 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/assets.py +20 -30
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/frontend_extensions.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/inertia_deps.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/inertia_utils.py +3 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/manifest.py +8 -8
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/module_tsconfig.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/page_globs.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/pagination.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/shared_props.py +1 -1
- simple_module_hosting-0.0.50/simple_module_hosting/health.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/host.py +13 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/host_cli.py +8 -8
- simple_module_hosting-0.0.50/simple_module_hosting/host_settings.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/i18n/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_build.py +4 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_json.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_modules.py +4 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/_i18n_target.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_deps.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_manifest.py +7 -7
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_routes.py +6 -3
- simple_module_hosting-0.0.50/simple_module_hosting/i18n_deps.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/i18n_manifest.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/inertia_deps.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/inertia_utils.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/installation.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/leases.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locales/de.json +215 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locales/en.json +215 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locales/es.json +215 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locking/__init__.py +1 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locking/_lease_redis.py +295 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locking/_lease_redis_close.py +228 -0
- simple_module_hosting-0.0.50/simple_module_hosting/locking/_lease_redis_scripts.py +63 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/locking}/leases.py +4 -4
- simple_module_hosting-0.0.50/simple_module_hosting/log_sinks.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/logging.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/manifest.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/middleware.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/migrations.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/migrations_env.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/observability/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/_observability.py +14 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/log_sinks.py +8 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/logging.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/sentry.py +4 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/sentry_scrub.py +1 -1
- simple_module_hosting-0.0.50/simple_module_hosting/pagination.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/path_matching.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/permissions.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/pipeline/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_body_limit.py +4 -4
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_cors.py +3 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_csp_dynamic.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_insecure_transport.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_middleware_pipeline.py +21 -21
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_request_guard_responses.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_request_policy.py +3 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_route_access.py +12 -6
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_route_guard.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_security_headers.py +7 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_server_timing.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_tenant.py +2 -2
- simple_module_hosting-0.0.50/simple_module_hosting/pipeline/compression.py +123 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/maintenance.py +10 -7
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/middleware.py +12 -11
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/middleware_config.py +24 -9
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/public_access.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/public_urls.py +1 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/redirects.py +6 -3
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/session.py +2 -2
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/setup_gate.py +8 -8
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/tenancy.py +2 -2
- simple_module_hosting-0.0.50/simple_module_hosting/public_access.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/public_urls.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/rate_limit/__init__.py +1 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/_rate_limit.py +12 -7
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/_rate_limit_store.py +5 -1
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/rate_limit_deps.py +8 -4
- simple_module_hosting-0.0.50/simple_module_hosting/rate_limit_deps.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/redirects.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/resource_deps.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/sentry.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/session.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/settings.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/setup_gate.py +13 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/__init__.py +2 -2
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/composition.py +3 -3
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/migrate.py +6 -6
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/payloads.py +3 -3
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/routes.py +8 -7
- simple_module_hosting-0.0.50/simple_module_hosting/shared_props.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/tenancy.py +13 -0
- simple_module_hosting-0.0.50/simple_module_hosting/token_guard.py +13 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/ui_locales/de.json +12 -1
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/ui_locales/en.json +12 -1
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/ui_locales/es.json +12 -1
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/tests/_resacc_models.py +2 -2
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/tests/_sentry_transport.py +1 -1
- simple_module_hosting-0.0.50/tests/auth/test_api_equivalent.py +252 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_grant_sources.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_csrf.py +33 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_csrf_partial.py +6 -6
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_csrf_shared_prop.py +2 -2
- simple_module_hosting-0.0.50/tests/auth/test_hosting_csrf_tokens.py +124 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_permissions.py +6 -6
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_hosting_platform_permissions.py +2 -2
- simple_module_hosting-0.0.50/tests/auth/test_meta_openapi.py +126 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_permission_any_of.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_principal_builder.py +6 -6
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_principal_permissions_claim.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_resource_deps.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_resource_policy_owned.py +6 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_resource_policy_parity.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_shared_host_policy.py +4 -4
- simple_module_hosting-0.0.50/tests/auth/test_single_tenant_principal.py +94 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_token_guard_effective_route.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/auth}/test_token_route_guard.py +3 -3
- simple_module_hosting-0.0.50/tests/auth/test_whoami.py +36 -0
- simple_module_hosting-0.0.50/tests/backend_cleanup_helpers.py +86 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_admin_surface.py +8 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_app.py +18 -12
- simple_module_hosting-0.0.50/tests/boot/test_app_name.py +163 -0
- simple_module_hosting-0.0.50/tests/boot/test_app_project_root.py +20 -0
- simple_module_hosting-0.0.50/tests/boot/test_backend_resource_cleanup.py +199 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_boot_drift_check.py +8 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_check_migrations.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_check_migrations_expression_note.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_csp_module_sources.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_customize_registries.py +11 -10
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_database_injection.py +10 -8
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_db_health_check.py +2 -2
- simple_module_hosting-0.0.50/tests/boot/test_deferred_startup_serialization.py +43 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_design_packs_wiring.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_dev_boot_exit.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_dev_boot_output.py +19 -11
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_diagnostics_state.py +10 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_fallback_finalization.py +6 -6
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_fallback_routes.py +15 -13
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_file_access_registration.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_health.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_host_factory.py +23 -18
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_data_compatibility.py +16 -14
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_health_bounded.py +10 -5
- simple_module_hosting-0.0.50/tests/boot/test_hosting_layout_shims.py +66 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_lifespan_cleanup.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_openapi.py +7 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_openapi_security.py +13 -10
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_hosting_table_coverage.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_invalidation_wiring.py +2 -2
- simple_module_hosting-0.0.50/tests/boot/test_lifespan_deferred_startup.py +185 -0
- simple_module_hosting-0.0.50/tests/boot/test_lifespan_lease_contention.py +72 -0
- simple_module_hosting-0.0.50/tests/boot/test_lifespan_lease_ownership.py +185 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_lifespan_order.py +5 -5
- simple_module_hosting-0.0.50/tests/boot/test_lifespan_resource_cleanup.py +226 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_migration_listing.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_migration_multihead.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_migration_script_cache.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_migrations_env.py +7 -7
- simple_module_hosting-0.0.50/tests/boot/test_openapi_token_flag.py +47 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_resource_types_wiring.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_setup_public_routes.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_strict_discovery_wiring.py +11 -9
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_tenant_resolver_diagnostic.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_view_prefixes.py +1 -1
- simple_module_hosting-0.0.50/tests/config/test_app_name.py +34 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_auth_provider_setting.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_boot_config_hardening.py +7 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_build_time_settings_marked.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_host_settings_fields.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_hosting_api_version_cache.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_hosting_config_sources.py +7 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_installation_id.py +8 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_login_redirect_setting.py +7 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_merge_host_settings_strict.py +7 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_native_link_prefixes_strip.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_preapp_config.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_preapp_invalid_values.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_preapp_read_failures.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_secret_key_bootstrap.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_settings_i18n.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_settings_secrets.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_setup_secret_key.py +7 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/config}/test_sqlite_path_anchor.py +5 -5
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/tests/conftest.py +1 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_api_error_negotiation.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_error_page_shared_props.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_error_status_coverage.py +7 -7
- simple_module_hosting-0.0.50/tests/error_handling/test_error_surrogates.py +205 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_hosting_error_json_and_session_cookie.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_branding_head.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_favicon_default.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_frontend_extensions.py +8 -8
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_generated_file_writes.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_home_url_default.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_asset_version.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_framework_pages_reserved.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_inertia_body_validation.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_inertia_validation_errors.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_lazy_layout_catalogs.py +12 -12
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_pagination_deps.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_spa_mount_nonce.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_ui_assets.py +22 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_inertia_i18n_shared_props.py +9 -9
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_inertia_protocol_middleware.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_inertia_shared_providers.py +27 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_manifest.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_menu_providers_wiring.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_module_tsconfig.py +16 -14
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_module_tsconfig_coverage.py +13 -6
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_precompressed_static.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_server_rendered_head.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_spa_mounts_541.py +7 -7
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_static_caching.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_hosting_catalog_json_cache.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_build_overrides.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_manifest.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_manifest_published_target.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_routes.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_types_cover_installed_modules.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_i18n_ui_namespace.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_locale_middleware.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_portable_i18n_typecheck.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/i18n}/test_translator_dep.py +3 -3
- simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_cancellation.py +272 -0
- simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_fork_failures.py +96 -0
- simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_handoff.py +263 -0
- simple_module_hosting-0.0.50/tests/locking/test_backend_cleanup_transports.py +294 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/locking}/test_hosting_lease_backends.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/locking}/test_hosting_lease_selection.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/locking}/test_hosting_lease_timeouts.py +7 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_log_sinks.py +9 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_sentry.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_sentry_scrub.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/observability}/test_hosting_sentry_scrub_gaps.py +9 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/observability}/test_logging.py +20 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_forwarded_host.py +3 -3
- simple_module_hosting-0.0.50/tests/pipeline/test_gzip_negotiation.py +107 -0
- simple_module_hosting-0.0.50/tests/pipeline/test_host_gzip.py +117 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_cors_api.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_csp_nonce.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_csp_providers.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_error_handling_policy.py +5 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_public_access.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_public_path_boundaries.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_security_static_headers.py +36 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_server_timing.py +7 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_insecure_transport_warning.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_live_request_guards.py +12 -12
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_maintenance_mode.py +12 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_menu_urls_are_canonical.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_order.py +6 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_overrides.py +34 -10
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_session_replacement.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_middleware_stages.py +2 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_proxy_headers.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_redirects.py +5 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_request_guard_body_limit.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_request_guard_body_limit_middleware_read.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_request_guard_body_limit_started.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_response_compression.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_route_guard.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_route_guard_fastapi_contract.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_route_paths.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_cookie_secure.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_cookie_window.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_root.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_vary_dedupe.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_setup_gate.py +9 -9
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_setup_gate_single_flight.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenancy_api.py +6 -6
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_middleware.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_resolver_types.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_scope_helpers.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_tenant_source.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_rate_limit_rules_redis.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_rate_limit_rules_registry.py +4 -4
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_rate_limit_store_shared.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_request_guard_auth_parity.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/rate_limit}/test_request_guard_rate_limit.py +5 -5
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_hosting_migration_target.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_composition.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_migrate_error_redaction.py +3 -3
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_migrate_worker_lock.py +2 -2
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_registry.py +1 -1
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/setup_wizard}/test_setup_routes.py +3 -3
- simple_module_hosting-0.0.49/simple_module_hosting/__init__.py +0 -64
- simple_module_hosting-0.0.49/simple_module_hosting/_lease_redis.py +0 -174
- simple_module_hosting-0.0.49/simple_module_hosting/_lifespan.py +0 -96
- simple_module_hosting-0.0.49/simple_module_hosting/locales/de.json +0 -36
- simple_module_hosting-0.0.49/simple_module_hosting/locales/en.json +0 -36
- simple_module_hosting-0.0.49/simple_module_hosting/locales/es.json +0 -36
- simple_module_hosting-0.0.49/tests/test_lifespan_deferred_startup.py +0 -98
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/.gitignore +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/LICENSE +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/__main__.py +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/admin_overview/__init__.py +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/admin_overview/pages/Overview.tsx +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/boot}/_fallback_routes.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/error_handling}/_error_negotiation.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_favicon.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/_generated_files.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/admin_surfaces.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/frontend}/static_files.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/i18n}/i18n_middleware.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/observability}/sentry_scrub_text.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_forwarded_host.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/_route_paths.py +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/pipeline}/path_matching.py +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/py.typed +0 -0
- {simple_module_hosting-0.0.49/simple_module_hosting → simple_module_hosting-0.0.50/simple_module_hosting/rate_limit}/_rate_limit_keys.py +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/_migration_lock.py +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/components/ConnectionList.tsx +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/components/StepForm.tsx +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/simple_module_hosting/setup_wizard/pages/Wizard.tsx +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/tests/_hosting_settings_db.py +0 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/boot}/test_host_cli.py +0 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/error_handling}/test_hosting_public_error_page.py +0 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/frontend}/test_hosting_inertia_cache.py +0 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_hosting_cors_unset.py +0 -0
- {simple_module_hosting-0.0.49/tests → simple_module_hosting-0.0.50/tests/pipeline}/test_session_cookie_security.py +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/tests-js/hosting_AdminOverview.test.tsx +0 -0
- {simple_module_hosting-0.0.49 → simple_module_hosting-0.0.50}/tests-js/hosting_SetupWizard.test.tsx +0 -0
- {simple_module_hosting-0.0.49 → 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.
|
|
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.
|
|
30
|
-
Requires-Dist: simple-module-db==0.0.
|
|
31
|
-
Requires-Dist: simple-module-inertia==0.0.
|
|
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.
|
|
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.
|
|
33
|
-
"simple_module_db==0.0.
|
|
34
|
-
"simple_module_inertia==0.0.
|
|
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.
|
|
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
|
|
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
|
|