swiftpy-framework 0.4.4__tar.gz → 0.4.6__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.
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/.env.example +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/.github/workflows/ci.yml +197 -2
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/CHANGELOG.md +36 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/PKG-INFO +5 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/README.md +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/app.py +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-14-installation-quick-start.md +4 -4
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-cache-events-and-queues.md +87 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-core-application-di-and-config.md +13 -5
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-filesystem-storage-and-mail.md +3 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-helpers-and-support-utilities.md +360 -9
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +21 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-validation-and-form-requests.md +15 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-20-error-handling.md +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-20-request-and-responses.md +4 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-22-task-scheduling.md +1 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/pyproject.toml +6 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/__init__.py +147 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/new.py +5 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/seed.py +6 -4
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/loader.py +5 -2
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/application.py +64 -9
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/exceptions.py +11 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/paths.py +4 -2
- swiftpy_framework-0.4.6/swiftpy/helpers/__init__.py +155 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/helpers/helper.py +150 -5
- swiftpy_framework-0.4.6/swiftpy/helpers/paths.py +77 -0
- swiftpy_framework-0.4.6/swiftpy/helpers/urls.py +655 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/http/exceptions.py +59 -5
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/http/router.py +17 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/facade.py +3 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/mailable.py +3 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/manager.py +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/message.py +8 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/queue/job.py +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/templates/renderer.py +9 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/queue/worker.py +59 -35
- swiftpy_framework-0.4.6/swiftpy/support/__init__.py +86 -0
- swiftpy_framework-0.4.6/swiftpy/support/benchmark.py +306 -0
- swiftpy_framework-0.4.6/swiftpy/support/crypt.py +223 -0
- swiftpy_framework-0.4.6/swiftpy/support/dates.py +59 -0
- swiftpy_framework-0.4.6/swiftpy/support/debug.py +279 -0
- swiftpy_framework-0.4.6/swiftpy/support/defer.py +291 -0
- swiftpy_framework-0.4.6/swiftpy/support/flow.py +390 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/support/keys.py +13 -6
- swiftpy_framework-0.4.6/swiftpy/support/sleep.py +535 -0
- swiftpy_framework-0.4.6/swiftpy/support/timebox.py +158 -0
- swiftpy_framework-0.4.6/swiftpy/support/uri.py +569 -0
- swiftpy_framework-0.4.6/swiftpy/support/values.py +407 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/__init__.py +2 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/validator.py +43 -1
- swiftpy_framework-0.4.6/swiftpy/views/__init__.py +21 -0
- swiftpy_framework-0.4.6/swiftpy/views/engine.py +825 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_phase9_cli_remediation.py +7 -1
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/test_helpers.py +347 -0
- swiftpy_framework-0.4.6/tests/core/test_path_helpers.py +194 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_paths.py +1 -0
- swiftpy_framework-0.4.6/tests/http/test_abort_helpers.py +121 -0
- swiftpy_framework-0.4.6/tests/http/test_url_helpers.py +544 -0
- swiftpy_framework-0.4.6/tests/mail/test_mailable.py +198 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_templates.py +8 -0
- swiftpy_framework-0.4.6/tests/support/test_benchmark.py +279 -0
- swiftpy_framework-0.4.6/tests/support/test_crypt.py +295 -0
- swiftpy_framework-0.4.6/tests/support/test_dates.py +175 -0
- swiftpy_framework-0.4.6/tests/support/test_debug.py +222 -0
- swiftpy_framework-0.4.6/tests/support/test_defer.py +558 -0
- swiftpy_framework-0.4.6/tests/support/test_flow.py +621 -0
- swiftpy_framework-0.4.6/tests/support/test_sleep.py +435 -0
- swiftpy_framework-0.4.6/tests/support/test_timebox.py +261 -0
- swiftpy_framework-0.4.6/tests/support/test_uri.py +297 -0
- swiftpy_framework-0.4.6/tests/support/test_values.py +394 -0
- swiftpy_framework-0.4.6/tests/typing/test_v045_helpers_typing.py +214 -0
- swiftpy_framework-0.4.6/tests/typing/test_v046_helpers_typing.py +183 -0
- swiftpy_framework-0.4.6/tests/validation/test_validator_helper.py +148 -0
- swiftpy_framework-0.4.6/tests/views/test_views.py +670 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/uv.lock +133 -1
- swiftpy_framework-0.4.4/swiftpy/helpers/__init__.py +0 -55
- swiftpy_framework-0.4.4/swiftpy/support/__init__.py +0 -41
- swiftpy_framework-0.4.4/tests/mail/test_mailable.py +0 -87
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/.dockerignore +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/.github/workflows/publish.yml +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/.gitignore +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/CONTRIBUTING.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/Dockerfile +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/LICENSE +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/ai/agents/assistant_agent.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/ai/observers/.gitkeep +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/ai/pipelines/.gitkeep +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/ai/providers/.gitkeep +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/ai/tools/system_status_tool.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/ai/vectorstores/.gitkeep +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/events/user_registered.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/controllers/user_controller.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/handler/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/middleware/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/middleware/admin_middleware.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/middleware/auth_middleware.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/middleware/test_middleware.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/requests/create_user_request.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/http/resources/user_resource.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/jobs/send_notification_job.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/listeners/send_welcome_notification.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/mail/welcome_email.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/models/profile.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/models/user.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/app_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/auth_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/cache_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/database_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/event_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/filesystem_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/mail_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/providers/queue_service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/repositories/user_repository.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/schemas/user_schema.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/app/services/user_service.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/bootstrap/cache/.gitkeep +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/ai.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/auth.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/cache.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/cors.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/database.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/events.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/filesystems.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/http.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/logging.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/mail.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/queue.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/config/schedule.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/database/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/database/migrations/2026_11_26_180006_create_profiles_table.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/database/seeders/database_seeder.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/docker-compose.yml +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-ai-subsystem.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-authentication-and-security.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-database-query-builder-and-migrations.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-orm-models-and-relationships.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-15-websockets-and-admin.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-19-application-schemas.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-19-cli-and-testing.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-19-database-schema-and-blueprint.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-20-logging.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-21-application-architecture-and-project-structure.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/documentations/2026-11-21-cors.md +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/main.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/prompts/classify.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/prompts/summarise.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/red-black.png +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/routes/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/routes/api.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/.gitignore +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/_deterministic.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/_fake.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/agents/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/agents/base_agent.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/agents/memory.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/client.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/conversation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/embeddings.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/history_strategies.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/middleware.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/observability/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/observability/drivers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/observability/observer.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/pool.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/pricing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/prompts/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/prompts/loader.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/anthropic_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/openai_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/context_formatter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/pipeline_builder.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/reranker.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/result.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/retriever.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/redis_store.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/streaming.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/base_tool.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/first_party.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/tool_loop.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/api_key_guard.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/auth_manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/events.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/jwt_guard.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/jwt_issuer.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/throttle.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/token_blacklist.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth/user_context.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/auth_manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/cache/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/cache/cache.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/cache/driver.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/cache/drivers/memory.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/cache/drivers/redis.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/cli.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/cache.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/make.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/migrate.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/queue.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/schedule.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/start.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/commands/storage.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/agent.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/controller.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/event.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/factory.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/job.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/listener.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/mail.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/middleware.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.alter.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.blank.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.create.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.update.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/model.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/prompt.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/provider.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/repository.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/request.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/resource.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/schema.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/seeder.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/service.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/tool.stub +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/bootstrap.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/container.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/container_exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/context.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/core/providers/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/factories.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/identifiers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/blueprint.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/lock.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/migration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/migrator.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/schema.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/orm/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/orm/collection.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/orm/fields.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/orm/model.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/orm/registry.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/orm/relationships.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/contracts.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/paginator.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/simple_paginator.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/pool.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/query_builder.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/seeder.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/database/transaction.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/events/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/events/dispatcher.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/events/redis_bus.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/disk.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/local.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/s3.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/events.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/metadata.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/handlers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/validators.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/filesystem/visibility.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/http/client_ip.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/http/middleware.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/http/request.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/http/response.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/logging/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/logging/channels.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/logging/log.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/logging/manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/attachments.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/envelope.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/models.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/queue/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/service_provider.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/templates/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/mailgun.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/resend.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/sendgrid.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/console.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/sendmail.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/smtp.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/py.typed +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/queue/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/queue/dispatcher.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/queue/job.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/_redis_lua.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/cron.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/events.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/jobs.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/models.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/scheduler.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/signing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/scheduling/store.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/schemas/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/schemas/base.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/schemas/fields.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/support/arr.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/support/hashing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/support/number.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/support/redis_config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/support/strings.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/fakes/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/fakes/ai_fake.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/fixtures.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/http_client.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/testing/test_case.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/form_request.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/protocols.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/builtin.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/exists.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/file.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/registry.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/required.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/unique.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/websockets/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/websockets/connection.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/swiftpy/websockets/manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/conftest.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/integration/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/integration/test_chroma.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/integration/test_lancedb.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/integration/test_pinecone.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/integration/test_qdrant.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/integration/test_rag_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_agents.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_ai_fake.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_ai_fake_isolation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_client.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_conversation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_embeddings.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_middleware.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_middleware_concurrency.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_observability.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_observability_resilience.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_phase7_ai_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_phase8_rag_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_prompts.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_prompts_security.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_providers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_rag.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_streaming.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_tools.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_vectorstore.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/ai/test_vectorstore_adapters.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/app/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/app/test_application_providers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/app/test_starter_auth.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_api_key_guard.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_attempt.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_context_on_issue.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_proxy.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_security.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_auth_throttle.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_jwt_defaults.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_jwt_issuer.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_password_hashing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_refresh_and_logout.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/auth/test_token_blacklist.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/benchmarks.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/cache/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/cache/test_cache_concurrency.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/cache/test_cache_manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/cache/test_driver_correctness.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/cache/test_memory_cache.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/cache/test_redis_cache.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/concurrency/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/concurrency/test_circular_dependency.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/concurrency/test_container_semantics.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/concurrency/test_resolution.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/concurrency/test_resolution2.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/conftest.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_cache_commands.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_cli.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_new_command.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_start.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_storage_command.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/console/test_stubs_and_make.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/test_application_config_isolation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/test_core_config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/test_exceptions.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/test_instance_singletons.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/core/test_lifespan.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_factories.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_orm_expansion.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_orm_vector.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_pagination_and_grouping.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_pagination_pg_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_pgvector_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_phase4_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_query_expansion.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_query_expansion_pg_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_query_helpers_v036.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_seeder.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/database/test_sequence_gaps.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/load_test_database.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/load_test_database2.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_arbitrary_primary_keys.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_identifiers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_mass_writes.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_pool_config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_query_builder_terminals.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_sql_injections.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/db/test_transaction_isolation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/docs/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/docs/test_readme_examples.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/e2e/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/e2e/test_concurrent_auth.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/e2e/test_crud_auth_e2e.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/events/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/events/test_event_dispatcher.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/events/test_model_events.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/events/test_redis_bus.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/events/test_redis_bus_reliability.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_cli_storage_link.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_disk.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_filesystem_concurrency.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_filesystem_config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_http_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_local_driver.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_multipart.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_s3_driver.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_signed_urls.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_storage_facade.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_uploaded_file.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/filesystem/test_validation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_client_ip.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_controller_routing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_error_pipeline.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_http_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_include_router.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_request.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_request_router_abort.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_response.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_route_groups.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_router.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/http/test_router_405_and_has_file.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/integration/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/integration/test_queue_event_websocket.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/logging/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/logging/test_logging.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_api_transports.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_attachments.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_cli_make_mail.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_console_transport.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_envelope.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_facade_and_fake.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_manager_and_config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_message.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_phase6_mail_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_queue_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_service_provider_and_helpers.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/mail/test_smtp_and_sendmail.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/migrations/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/migrations/test_migrations.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/migrations/test_migrations_v040.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_defaults_dirty.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_eager_loading.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_hidden.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_instance_update.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_mass_assignment.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_model_collection.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_model_events_transaction.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_relationship_helpers_v042.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_relationships_hardening.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/orm/test_where_has.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_after_commit.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_phase5_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_poison_messages.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_queue.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_reliability.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_signing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/queue/test_worker_behavior.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_cron_and_timezone.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_core.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_lifecycle_and_cli.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_queue_integration.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_recovery_and_failures.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_redis_store.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_worker_lifecycle.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/schemas/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/schemas/test_schema_auth.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/schemas/test_schema_orm_and_cli.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/schemas/test_schema_routing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/schemas/test_schemas.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/security/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/security/test_security_audit.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/stress/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/stress/test_context_isolation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/support/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/support/test_arr.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/support/test_number.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/support/test_redis_config.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/support/test_strings.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/testing/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/testing/test_fixtures.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/testing/test_phase9_testing_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/testing/test_test_client.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_auth_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_factory_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_orm_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_schema_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_v042_orm_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_v043_arr_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_v044_number_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/typing/test_validation_typing.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_db_rules.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_file_image_validation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_form_request_fail_closed.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_form_request_pipeline.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_phase6_validation_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_rules_hardening.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_validation_concurrency.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_validation_ergonomics.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/validation/test_validator_rules.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/__init__.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_broadcast.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_handshake.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_lifecycle.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_concurrency.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_connection.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_manager.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_remediation.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
- {swiftpy_framework-0.4.4 → swiftpy_framework-0.4.6}/views/mail/template.html +0 -0
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
88
88
|
|
|
89
89
|
- name: Run Pyrefly
|
|
90
90
|
run: |
|
|
91
|
-
uvx pyrefly check --python-interpreter-path .venv/bin/python --error=no-any-return-implicit swiftpy/database/ swiftpy/support/
|
|
91
|
+
uvx pyrefly check --python-interpreter-path .venv/bin/python --error=no-any-return-implicit swiftpy/database/ swiftpy/support/ swiftpy/helpers/ swiftpy/views/ swiftpy/core/exceptions.py swiftpy/http/exceptions.py swiftpy/http/router.py swiftpy/filesystem/paths.py swiftpy/validation/validator.py config/ app/ routes/ database/ main.py tests/typing/ tests/core/test_path_helpers.py tests/core/test_helpers.py tests/core/test_exceptions.py tests/http/test_url_helpers.py tests/http/test_abort_helpers.py tests/support/test_values.py tests/support/test_flow.py tests/support/test_dates.py tests/support/test_debug.py tests/support/test_crypt.py tests/support/test_benchmark.py tests/support/test_defer.py tests/support/test_sleep.py tests/support/test_timebox.py tests/support/test_uri.py tests/views/ tests/validation/test_validator_helper.py tests/filesystem/test_paths.py
|
|
92
92
|
|
|
93
93
|
- name: Dependency security audit
|
|
94
94
|
run: uv run --no-sync --with pip-audit pip-audit --desc on
|
|
@@ -109,7 +109,47 @@ jobs:
|
|
|
109
109
|
import pathlib
|
|
110
110
|
import swiftpy
|
|
111
111
|
import swiftpy.testing
|
|
112
|
-
from swiftpy import
|
|
112
|
+
from swiftpy import (
|
|
113
|
+
Application,
|
|
114
|
+
Benchmark,
|
|
115
|
+
Number,
|
|
116
|
+
Request,
|
|
117
|
+
Sleep,
|
|
118
|
+
Timebox,
|
|
119
|
+
Uri,
|
|
120
|
+
View,
|
|
121
|
+
abort_if,
|
|
122
|
+
abort_unless,
|
|
123
|
+
app_path,
|
|
124
|
+
asset,
|
|
125
|
+
atransform,
|
|
126
|
+
base_path,
|
|
127
|
+
blank,
|
|
128
|
+
config_path,
|
|
129
|
+
database_path,
|
|
130
|
+
decrypt,
|
|
131
|
+
defer,
|
|
132
|
+
deferred_scope,
|
|
133
|
+
encrypt,
|
|
134
|
+
filled,
|
|
135
|
+
json_response,
|
|
136
|
+
literal,
|
|
137
|
+
now,
|
|
138
|
+
once,
|
|
139
|
+
redirect,
|
|
140
|
+
resolve,
|
|
141
|
+
retry,
|
|
142
|
+
secure_asset,
|
|
143
|
+
secure_url,
|
|
144
|
+
storage_path,
|
|
145
|
+
tap,
|
|
146
|
+
throw_if,
|
|
147
|
+
throw_unless,
|
|
148
|
+
today,
|
|
149
|
+
transform,
|
|
150
|
+
validator,
|
|
151
|
+
view,
|
|
152
|
+
)
|
|
113
153
|
from swiftpy.ai.client import AI, AIClient
|
|
114
154
|
from swiftpy.ai.embeddings import EmbeddingsClient, generate_deterministic_embedding
|
|
115
155
|
|
|
@@ -153,6 +193,47 @@ jobs:
|
|
|
153
193
|
with Number.with_locale("fr"):
|
|
154
194
|
assert Number.format(1000.5) == "1 000,5"
|
|
155
195
|
assert Number.default_locale() == "en"
|
|
196
|
+
assert base_path().name != ""
|
|
197
|
+
assert app_path("x").parent.name == "app"
|
|
198
|
+
assert config_path("app.py").name == "app.py"
|
|
199
|
+
assert database_path("x").parent.name == "database"
|
|
200
|
+
assert storage_path("x").parent.name == "storage"
|
|
201
|
+
app.config.set("app.url", "http://localhost:8000")
|
|
202
|
+
assert asset("img/a.png") == "http://localhost:8000/img/a.png"
|
|
203
|
+
assert secure_asset("img/a.png") == "https://localhost:8000/img/a.png"
|
|
204
|
+
assert secure_url("u", [1]) == "https://localhost:8000/u/1"
|
|
205
|
+
assert redirect("/ok").headers["Location"] == "/ok"
|
|
206
|
+
abort_if(False, 400)
|
|
207
|
+
abort_unless(True, 400)
|
|
208
|
+
assert throw_if(False, ValueError) is False
|
|
209
|
+
assert throw_unless(True, ValueError) is True
|
|
210
|
+
assert blank("") is True and filled("ok") is True
|
|
211
|
+
assert literal(a=1).a == 1
|
|
212
|
+
assert tap([1]).append(2) == [1, 2]
|
|
213
|
+
assert now().tzinfo is not None and today().hour == 0
|
|
214
|
+
assert await retry(2, lambda: "ok") == "ok"
|
|
215
|
+
|
|
216
|
+
@once
|
|
217
|
+
def _smoke_once() -> int:
|
|
218
|
+
return 7
|
|
219
|
+
|
|
220
|
+
assert _smoke_once() == 7
|
|
221
|
+
app.config.set("app.key", "base64:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
|
|
222
|
+
assert decrypt(encrypt({"v": 45})) == {"v": 45}
|
|
223
|
+
assert transform(5, lambda v: v * 2) == 10
|
|
224
|
+
assert await atransform(None, lambda v: v, "blank") == "blank"
|
|
225
|
+
assert (await validator({"n": "Ada"}, {"n": "required"}).validate()).passes()
|
|
226
|
+
assert Benchmark.value(lambda: 9)[0] == 9
|
|
227
|
+
ran_defer = []
|
|
228
|
+
async with deferred_scope():
|
|
229
|
+
defer(lambda: ran_defer.append("ok"))
|
|
230
|
+
assert ran_defer == ["ok"]
|
|
231
|
+
with Sleep.fake() as sf:
|
|
232
|
+
assert await Sleep.for_(1).second().then(lambda: "ok") == "ok"
|
|
233
|
+
sf.assert_slept_times(1)
|
|
234
|
+
assert await Timebox().call(lambda b: b.return_early(), microseconds=100) is not None
|
|
235
|
+
assert Uri("https://example.com/u").push_onto_query("f", ["a", "b"]).query() == "f=a&f=b"
|
|
236
|
+
assert view("mail.template").name == "mail.template"
|
|
156
237
|
|
|
157
238
|
asyncio.run(main())
|
|
158
239
|
'
|
|
@@ -213,6 +294,9 @@ jobs:
|
|
|
213
294
|
from __future__ import annotations
|
|
214
295
|
|
|
215
296
|
from decimal import Decimal
|
|
297
|
+
from datetime import datetime
|
|
298
|
+
from pathlib import Path
|
|
299
|
+
from types import SimpleNamespace
|
|
216
300
|
from typing import Any, assert_type
|
|
217
301
|
|
|
218
302
|
from swiftpy import (
|
|
@@ -221,6 +305,11 @@ jobs:
|
|
|
221
305
|
AuthProxy,
|
|
222
306
|
AuthUser,
|
|
223
307
|
BaseSchema,
|
|
308
|
+
Benchmark,
|
|
309
|
+
Container,
|
|
310
|
+
DecryptException,
|
|
311
|
+
DeferredCallback,
|
|
312
|
+
DumpAndDie,
|
|
224
313
|
ExtensionsRule,
|
|
225
314
|
FileRule,
|
|
226
315
|
FormRequest,
|
|
@@ -233,17 +322,63 @@ jobs:
|
|
|
233
322
|
Number,
|
|
234
323
|
Pivot,
|
|
235
324
|
Request,
|
|
325
|
+
Response,
|
|
326
|
+
Sleep,
|
|
327
|
+
SleepFake,
|
|
236
328
|
SometimesRule,
|
|
329
|
+
Timebox,
|
|
237
330
|
UniqueRule,
|
|
238
331
|
UploadedFile,
|
|
332
|
+
Uri,
|
|
333
|
+
UrlGenerationError,
|
|
239
334
|
ValidatedData,
|
|
335
|
+
Validator,
|
|
336
|
+
View,
|
|
337
|
+
ViewEngine,
|
|
338
|
+
ViewError,
|
|
339
|
+
ViewNotFoundError,
|
|
340
|
+
abort_if,
|
|
341
|
+
abort_unless,
|
|
342
|
+
action,
|
|
343
|
+
app as app_helper,
|
|
344
|
+
app_path,
|
|
345
|
+
asset,
|
|
346
|
+
atap,
|
|
347
|
+
atransform,
|
|
348
|
+
base_path,
|
|
349
|
+
blank,
|
|
350
|
+
config_path,
|
|
351
|
+
database_path,
|
|
352
|
+
decrypt,
|
|
353
|
+
defer,
|
|
354
|
+
deferred_scope,
|
|
355
|
+
dump,
|
|
356
|
+
encrypt,
|
|
240
357
|
extensions,
|
|
241
358
|
file,
|
|
359
|
+
filled,
|
|
242
360
|
image,
|
|
361
|
+
literal,
|
|
243
362
|
mimes,
|
|
244
363
|
mimetypes,
|
|
364
|
+
now,
|
|
365
|
+
once,
|
|
366
|
+
redirect,
|
|
367
|
+
resolve,
|
|
368
|
+
retry,
|
|
369
|
+
secure_asset,
|
|
370
|
+
secure_url,
|
|
245
371
|
sometimes,
|
|
372
|
+
storage_path,
|
|
373
|
+
tap,
|
|
374
|
+
throw_if,
|
|
375
|
+
throw_unless,
|
|
376
|
+
to_action,
|
|
377
|
+
today,
|
|
378
|
+
transform,
|
|
246
379
|
unique,
|
|
380
|
+
validator,
|
|
381
|
+
view,
|
|
247
382
|
)
|
|
248
383
|
from swiftpy.auth import auth
|
|
249
384
|
from swiftpy.auth_manager import Auth as LegacyAuth
|
|
@@ -326,6 +461,66 @@ jobs:
|
|
|
326
461
|
return _spelled
|
|
327
462
|
|
|
328
463
|
|
|
464
|
+
async def check_helpers_v045_contracts() -> str:
|
|
465
|
+
_p0 = assert_type(base_path(), Path)
|
|
466
|
+
_p1 = assert_type(app_path("http"), Path)
|
|
467
|
+
_p2 = assert_type(config_path("app.py"), Path)
|
|
468
|
+
_p3 = assert_type(database_path("seeders"), Path)
|
|
469
|
+
_p4 = assert_type(storage_path("logs"), Path)
|
|
470
|
+
_u1 = assert_type(asset("img/a.png"), str)
|
|
471
|
+
_u2 = assert_type(secure_asset("img/a.png"), str)
|
|
472
|
+
_u3 = assert_type(secure_url("u", [1]), str)
|
|
473
|
+
_r1 = assert_type(redirect("/home"), Response)
|
|
474
|
+
abort_if(False, 400)
|
|
475
|
+
abort_unless(True, 400)
|
|
476
|
+
_b = assert_type(blank(""), bool)
|
|
477
|
+
_f = assert_type(filled("x"), bool)
|
|
478
|
+
_lit = assert_type(literal(a=1), SimpleNamespace)
|
|
479
|
+
_n = assert_type(now(), datetime)
|
|
480
|
+
_t = assert_type(today(), datetime)
|
|
481
|
+
_th = assert_type(throw_if(False, ValueError), bool)
|
|
482
|
+
_tu = assert_type(throw_unless("ok", RuntimeError), str)
|
|
483
|
+
_maybe_str: str | None = "ok"
|
|
484
|
+
_tu_opt = assert_type(throw_unless(_maybe_str, RuntimeError), str)
|
|
485
|
+
_ret = assert_type(await retry(2, lambda: "ok"), str)
|
|
486
|
+
_ctr = assert_type(app_helper(), Container)
|
|
487
|
+
_svc = assert_type(app_helper(DocVersionService), DocVersionService)
|
|
488
|
+
_res_svc = assert_type(resolve(DocVersionService), DocVersionService)
|
|
489
|
+
_tp = assert_type(tap([1]).append(2), list[int])
|
|
490
|
+
_atp = assert_type(await atap(_svc, lambda s: s), DocVersionService)
|
|
491
|
+
|
|
492
|
+
@once
|
|
493
|
+
def _smoke_once() -> str:
|
|
494
|
+
return "once"
|
|
495
|
+
|
|
496
|
+
_oc = assert_type(_smoke_once(), str)
|
|
497
|
+
dump({"smoke": True})
|
|
498
|
+
_enc = assert_type(encrypt({"smoke": True}), str)
|
|
499
|
+
_dec = assert_type(decrypt(_enc), Any)
|
|
500
|
+
_dec_raw = assert_type(decrypt(_enc, serialize=False), str) if False else ""
|
|
501
|
+
_ = (_p0, _p1, _p2, _p3, _p4, _u1, _u2, _u3, _r1, _b, _f, _lit, _n, _t, _th, _tu, _tu_opt, _ret, _ctr, _svc, _res_svc, _tp, _atp, _oc, _dec, _dec_raw, DecryptException, DumpAndDie, UrlGenerationError, action, to_action)
|
|
502
|
+
return _enc
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
async def check_helpers_v046_contracts() -> str:
|
|
506
|
+
_tr = assert_type(transform(5, lambda v: v * 2), int | None)
|
|
507
|
+
_maybe_int: int | None = None
|
|
508
|
+
_atr = assert_type(await atransform(_maybe_int, lambda v: str(v), "blank"), str)
|
|
509
|
+
_val = assert_type(validator({"a": 1}, {"a": "required"}), Validator)
|
|
510
|
+
_vw = assert_type(view("mail.template", {"title": "Hi"}), View)
|
|
511
|
+
_bm = assert_type(Benchmark.measure(lambda: 1), float)
|
|
512
|
+
_bma = assert_type(await Benchmark.measure_async(lambda: 1), float)
|
|
513
|
+
async with deferred_scope():
|
|
514
|
+
_dc = assert_type(defer(lambda: None).always(), DeferredCallback)
|
|
515
|
+
with Sleep.fake() as _sf:
|
|
516
|
+
_sl = assert_type(await Sleep.for_(1).second().then(lambda: "ok"), str)
|
|
517
|
+
assert_type(_sf, SleepFake)
|
|
518
|
+
_tb = assert_type(await Timebox().call(lambda b: b.return_early(), microseconds=10), Timebox)
|
|
519
|
+
_uri = assert_type(Uri("https://example.com/u").push_onto_query("f", ["a"]), Uri)
|
|
520
|
+
_ = (_tr, _atr, _val, _vw, _bm, _bma, _dc, _sl, _tb, ViewEngine, ViewError, ViewNotFoundError)
|
|
521
|
+
return _uri.query()
|
|
522
|
+
|
|
523
|
+
|
|
329
524
|
def check_auth_contracts() -> AuthUser:
|
|
330
525
|
_proxy = assert_type(auth(), AuthProxy)
|
|
331
526
|
_user = assert_type(auth().user(), AuthUser)
|
|
@@ -4,6 +4,42 @@ All notable changes to SwiftPY will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.4.6] - 2026-12-05
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Value Transformation & Validator Helpers (`swiftpy/support/values.py`, `swiftpy/validation/validator.py`, `swiftpy/validation/__init__.py`):**
|
|
11
|
+
- Added `transform(value, callback, default=None)` and async `atransform()` executing `callback(value)` when `filled(value)` is true, evaluating non-`type` callable defaults (0-arg or 1-arg), and rejecting awaitable results cleanly in synchronous `transform()`.
|
|
12
|
+
- Added `validator(data, rules, messages=None, *, registry=None, stop_on_first_error=False) -> Validator` matching the 3-argument `(data, rules, messages)` order while rejecting un-awaited `Request` instances with a clear `TypeError` pointing to `await validate(request, rules)`.
|
|
13
|
+
- **HTML Views & Email Integration (`swiftpy/views/`, `swiftpy/core/application.py`, `swiftpy/mail/`):**
|
|
14
|
+
- Added `ViewEngine`, `View`, `ViewError`, `ViewNotFoundError`, and `view()` supporting dot/slash template paths (`"auth.login"` -> `views/auth/login.html`), `namespace::template` package roots (`add_namespace()`), optional `[views]` extra (`jinja2.sandbox.SandboxedEnvironment` with `enable_async=True`, `auto_reload` tied to `app.debug`, production template caching, and `finalize` callable/object guards), fail-closed built-in fallback renderer (HTML/quote-escaping scalar substitution blocking control tags, private `_`/dunder access, and non-scalar values), off-loop path resolution (`asyncio.to_thread`), and traversal/symlink-escape protection.
|
|
15
|
+
- Registered `ViewEngine` singleton in `FrameworkServiceProvider` bound to `Application.project_root` (plus optional `views.path`/`views.paths`), enabled direct `return view(...)` responses in `Application._wrap_handler()`, added optional `view: View | None = None` support to `MailMessage` / `Mailable` / `Mail` / `MailManager`, and added dot-notation template normalization to `MailTemplateRenderer.render()`.
|
|
16
|
+
- **Benchmarking, Deferred Callbacks, Async Sleep, Timebox & Uri (`swiftpy/support/benchmark.py`, `swiftpy/support/defer.py`, `swiftpy/support/sleep.py`, `swiftpy/support/timebox.py`, `swiftpy/support/uri.py`, `swiftpy/queue/worker.py`, `swiftpy/console/`):**
|
|
17
|
+
- Added `Benchmark` (`measure`, `value`, `dd`, `measure_async`, `value_async`, `dd_async`) using `time.perf_counter_ns()`, bounded `iterations` (`<= 1_000_000`), and `support.debug.dd()` integration.
|
|
18
|
+
- Added `defer(callback, *, name=None, always=False, timeout=None)`, `DeferredCallback`, and `deferred_scope(timeout=None)` using task-owned `Context` queues (`<= 1_000` entries), flushing strictly *after* HTTP response transmission in `Application.__call__` (and wrapping `QueueWorker.process_job`, `run_app_action`, and `SeedCommand._execute_seed`) while running only `.always()` callbacks on 4xx/5xx/exceptions/disconnects and propagating `asyncio.CancelledError`.
|
|
19
|
+
- Added immutable async `Sleep` (`for_`, `and_`, `while_`, `then`, `until`, `sleep`, `usleep`, `microsecond(s)`..`day(s)`) backed by `asyncio.sleep()` (yielding on zero/faked `while_()` iterations) and cross-context-safe `ContextVar`-isolated `Sleep.fake()` / `SleepFake`.
|
|
20
|
+
- Added async `Timebox` (`await Timebox().call(callback, microseconds=...)`, `.return_early()`, `.dont_return_early()`) with concurrency-safe per-invocation state and full delay enforcement on `Exception`.
|
|
21
|
+
- Added immutable stdlib-backed `Uri` (`origin`, `scheme`, `authority`, `host`, `port`, `path`, `path_segments`, `query`, `query_params`, `fragment`, `with_query`, `with_query_if_missing`, `replace_query`, `push_onto_query`, `without_query`) with control-char/`1..65535` port/`32,768`-char length validation, early `parse_qsl(..., max_num_fields=...)` / encoding caps (`<= 1_000` params, depth `<= 8`), ignored empty keys, and conflict rejection on mixed scalar/nested keys.
|
|
22
|
+
- **Exports, Typing, Tests, CI & Documentation:** Re-exported all new symbols through `swiftpy.support`, `swiftpy.views`, `swiftpy.validation`, `swiftpy.helpers`, and lazy top-level `swiftpy`; added `tests/views/test_views.py`, `tests/validation/test_validator_helper.py`, `tests/support/test_benchmark.py`, `tests/support/test_defer.py`, `tests/support/test_sleep.py`, `tests/support/test_timebox.py`, `tests/support/test_uri.py`, `tests/typing/test_v046_helpers_typing.py`, expanded `tests/support/test_values.py`, `tests/mail/test_templates.py`, `tests/mail/test_mailable.py`, `tests/core/test_helpers.py`, `.github/workflows/ci.yml`, and developer docs (`documentations/`).
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Bumped `swiftpy-framework` package version (`pyproject.toml`), `swiftpy new` dependency floor (`swiftpy/console/commands/new.py`), `tests/console/test_phase9_cli_remediation.py`, [Installation & Quick Start](documentations/2026-11-14-installation-quick-start.md), [Documentation Plan](docs/2026-11-14_documentation_plan.md), [README.md](README.md), and `uv.lock` to `0.4.6`.
|
|
26
|
+
|
|
27
|
+
## [0.4.5] - 2026-12-04
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
- **Path, URL, Redirect & Action Helpers (`swiftpy/helpers/paths.py`, `swiftpy/helpers/urls.py`, `swiftpy/helpers/helper.py`, `swiftpy/helpers/__init__.py`, `swiftpy/__init__.py`):**
|
|
31
|
+
- **Application Path Helpers:** Added `base_path()`, `app_path()`, `config_path()`, `database_path()`, and `storage_path()` returning `pathlib.Path` relative to `Application.project_root` (or `Path.cwd()` fallback) without disk I/O and guarded against traversal via `PathNormalizer.normalize()`.
|
|
32
|
+
- **URL, Reverse Action & Redirect Helpers:** Added `asset()`, `secure_asset()`, `secure_url()`, `action()`, `redirect()`, `to_action()`, and `UrlGenerationError`, honoring `app.asset_url` (`ASSET_URL`), `app.url` (`APP_URL`), and ASGI `scope["server"]` while ignoring untrusted `Host` headers, enforcing safe HTTP redirect statuses (`301`, `302`, `303`, `307`, `308`) and header/scheme validation, and supporting handler/decorator/controller reverse routing via `find_route_for_handler()`.
|
|
33
|
+
- **Flow Control, Value, Date, Request, Debug & Encryption Helpers (`swiftpy/http/exceptions.py`, `swiftpy/core/exceptions.py`, `swiftpy/support/flow.py`, `swiftpy/support/values.py`, `swiftpy/support/dates.py`, `swiftpy/support/debug.py`, `swiftpy/support/crypt.py`, `swiftpy/support/__init__.py`):**
|
|
34
|
+
- **Flow Control:** Added `abort_if()` and `abort_unless()` (next to `abort()`), `throw_if()` and `throw_unless()`, async non-blocking `retry()` (seconds-based with fixed delays, schedules, dynamic callbacks, and `when` predicates), and task-isolated `@once` decorator backed by SwiftPY's `Context`.
|
|
35
|
+
- **Values, Dates, Request & Container:** Added `blank()`, `filled()`, `literal()`, `tap()` / async `atap()` (including `.method()` chaining proxies), timezone-aware `now()` and midnight `today()` (`app.timezone` / `APP_TIMEZONE` -> `UTC` via `resolve_timezone()`), `request()` / `request(key, default)`, and additive `app(TargetType)` container resolution overload.
|
|
36
|
+
- **Debug & Authenticated Encryption:** Added bounded `dump()` / `dd()` (`DumpAndDie(HttpException)` silenced in production with `debug=False`, never leaking dumped values into HTTP responses) and `encrypt()` / `decrypt()` (`DecryptException`) using AES-256-GCM with HKDF-SHA256 keys derived from `APP_KEY`, JSON serialization, 1 MiB payload caps, and `app.previous_keys` (`APP_PREVIOUS_KEYS`) rotation.
|
|
37
|
+
- **Static Typing, Tests, CI & Documentation:** Added `tests/core/test_path_helpers.py`, `tests/http/test_url_helpers.py`, `tests/http/test_abort_helpers.py`, `tests/support/test_values.py`, `tests/support/test_flow.py`, `tests/support/test_dates.py`, `tests/support/test_debug.py`, `tests/support/test_crypt.py`, `tests/typing/test_v045_helpers_typing.py`, expanded `tests/core/test_helpers.py`, updated `.github/workflows/ci.yml` Pyrefly paths and wheel-smoke contracts, and updated developer guides (`documentations/`).
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
- Added optional `app.asset_url` (`ASSET_URL`) and `app.timezone` (`APP_TIMEZONE`) keys to `config/app.py`, `.env.example`, and the `swiftpy new` scaffold (`swiftpy/console/commands/new.py`).
|
|
41
|
+
- Bumped `swiftpy-framework` package version (`pyproject.toml`), `swiftpy new` dependency floor (`swiftpy/console/commands/new.py`), `tests/console/test_phase9_cli_remediation.py`, [Installation & Quick Start](documentations/2026-11-14-installation-quick-start.md), [Documentation Plan](docs/2026-11-14_documentation_plan.md), [README.md](README.md), and `uv.lock` to `0.4.5`.
|
|
42
|
+
|
|
7
43
|
## [0.4.4] - 2026-12-04
|
|
8
44
|
|
|
9
45
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: swiftpy-framework
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.6
|
|
4
4
|
Summary: SwiftPY is a new generation async-first Python framework purpose built for the modern API and AI economy.
|
|
5
5
|
Project-URL: Homepage, https://github.com/obrainwave/swiftpy
|
|
6
6
|
Project-URL: Repository, https://github.com/obrainwave/swiftpy
|
|
@@ -26,6 +26,8 @@ Requires-Dist: cryptography>=50.0.2
|
|
|
26
26
|
Requires-Dist: httpx>=0.27.0
|
|
27
27
|
Requires-Dist: redis>=8.1.0
|
|
28
28
|
Requires-Dist: uvicorn[standard]>=0.52.4
|
|
29
|
+
Provides-Extra: views
|
|
30
|
+
Requires-Dist: jinja2>=3.1; extra == 'views'
|
|
29
31
|
Description-Content-Type: text/markdown
|
|
30
32
|
|
|
31
33
|
<p align="center">
|
|
@@ -105,6 +107,8 @@ All core architectural, storage, AI, and security hardening phases have been com
|
|
|
105
107
|
| **Release v0.4.2: ORM Collections, Constrained Relations, Pivot Helpers & Subquery Aggregates** | Added `ModelCollection[T]` (`contains`, `diff`, `except_`, `intersect`, `only`, `make_visible`, `make_hidden`, `unique`, `to_dict`), fixed `make_visible()` in `json_response()`, added callable `.where(lambda q: ...)` / `.or_where(lambda q: ...)` grouping & `add_select()`, copy-on-chain constrained relation definitions with per-parent `ROW_NUMBER()` eager windowing, `with_attributes()`, `HasMany`/`HasOne` `chaperone()` with cycle-safe `to_dict()`, `Model.relation_query()`, `save()` / `save_many()` / `create_many()`, `BelongsToMany` `Pivot` helpers (`with_pivot`, `as_`, `with_timestamps`, `order_by_pivot`, `order_by_pivot_desc`), `where_attached_to()` / `where_relation()`, subquery aggregates (`with_count`, `with_exists`, `with_sum`, `with_avg`, `with_min`, `with_max`) with self-referential table aliasing, widened `with_()` (`:cols` and callbacks), `with_where_has()`, and relation reloading in `Model.refresh()` | ✅ Completed |
|
|
106
108
|
| **Release v0.4.3: Dict & List Support Helpers (`Arr`)** | Added stdlib-only `Arr` utility facade (`swiftpy/support/arr.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) implementing all 36 Pythonic dict/list helpers: dot-notation retrieval/guards (`dict`, `list`, `get`, `exists`, `has`, `has_all`, `has_any`), in-place mutators (`set`, `forget`, `pull`, `push`), non-mutating reshaping & projection (`collapse`, `cross_join`, `divide`, `flatten`, `wrap`, `only`, `except_`, `except_values`, `where_not_null`, `pluck`, `select` with `Model`/`ModelCollection`/`BaseSchema` support), predicates & transforms (`every`, `some`, `first`, `last`, `map`, `map_spread`, `reject`, `partition`), stable sorting/slicing/sampling (`sort`, `sort_desc`, `take`, `random`, `shuffle`), `join()`, and RFC 3986 `query()`, backed by strict `mypy`/`pyrefly` overload contracts and dedicated developer documentation | ✅ Completed |
|
|
107
109
|
| **Release v0.4.4: Number Formatting & Parsing Helpers (`Number`)** | Added zero-dependency, stdlib-only `Number` facade (`swiftpy/support/number.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) with pure-Python CLDR/ISO-4217 registries, `Decimal` `ROUND_HALF_UP` rounding, and `ContextVar`-isolated `with_locale()`/`with_currency()` scoping implementing all 14 insight helpers (`abbreviate`, `currency`, `default_currency`, `default_locale`, `file_size`, `for_humans`, `format`, `ordinal`, `parse`, `parse_int`, `spell`, `trim`, `use_locale`, `use_currency`), backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
110
|
+
| **Release v0.4.5: Path, URL, Redirect, Abort & General-Purpose Helpers** | Added application path helpers (`base_path`, `app_path`, `config_path`, `database_path`, `storage_path`), URL/action/redirect helpers (`asset`, `secure_asset`, `secure_url`, `action`, `redirect`, `to_action` with Host-header protection), conditional/retry/memoization flow helpers (`abort_if`, `abort_unless`, `throw_if`, `throw_unless`, async `retry`, task-scoped `@once`), value/date/request/container helpers (`blank`, `filled`, `literal`, `tap`/`atap`, `now`, `today`, `request`, `app(Type)`), bounded `dump`/`dd` (`DumpAndDie`), and AES-256-GCM + HKDF `encrypt`/`decrypt` (`DecryptException`) with key rotation, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
111
|
+
| **Release v0.4.6: Miscellaneous Helpers (`transform`, `validator`, `view`, `Benchmark`, `defer`, `Sleep`, `Timebox`, `Uri`)** | Added `transform()`/`atransform()` with callable defaults, `validator()` helper, `swiftpy/views/` (`View`, `ViewEngine` with dot/slash paths, `namespace::template` roots, optional Jinja2 sandbox + HTML-escaping fallback, direct ASGI route returns, and `MailMessage.view` / dot-notation mail integration), `Benchmark` sync/async millisecond timing & `dd()`, post-response `defer()`/`deferred_scope()` across HTTP/`QueueWorker`/CLI, immutable async `Sleep` + `ContextVar`-isolated `Sleep.fake()`, concurrency-safe `Timebox`, and immutable `Uri` component inspection & query builders, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
108
112
|
|
|
109
113
|
*See [`documentations/2026-11-14-installation-quick-start.md`](./documentations/2026-11-14-installation-quick-start.md), [`documentations/2026-11-21-application-architecture-and-project-structure.md`](./documentations/2026-11-21-application-architecture-and-project-structure.md), and [`documentations/2026-11-22-task-scheduling.md`](./documentations/2026-11-22-task-scheduling.md) for the complete documentation series and [`CHANGELOG.md`](./CHANGELOG.md) for release notes.*
|
|
110
114
|
|
|
@@ -75,6 +75,8 @@ All core architectural, storage, AI, and security hardening phases have been com
|
|
|
75
75
|
| **Release v0.4.2: ORM Collections, Constrained Relations, Pivot Helpers & Subquery Aggregates** | Added `ModelCollection[T]` (`contains`, `diff`, `except_`, `intersect`, `only`, `make_visible`, `make_hidden`, `unique`, `to_dict`), fixed `make_visible()` in `json_response()`, added callable `.where(lambda q: ...)` / `.or_where(lambda q: ...)` grouping & `add_select()`, copy-on-chain constrained relation definitions with per-parent `ROW_NUMBER()` eager windowing, `with_attributes()`, `HasMany`/`HasOne` `chaperone()` with cycle-safe `to_dict()`, `Model.relation_query()`, `save()` / `save_many()` / `create_many()`, `BelongsToMany` `Pivot` helpers (`with_pivot`, `as_`, `with_timestamps`, `order_by_pivot`, `order_by_pivot_desc`), `where_attached_to()` / `where_relation()`, subquery aggregates (`with_count`, `with_exists`, `with_sum`, `with_avg`, `with_min`, `with_max`) with self-referential table aliasing, widened `with_()` (`:cols` and callbacks), `with_where_has()`, and relation reloading in `Model.refresh()` | ✅ Completed |
|
|
76
76
|
| **Release v0.4.3: Dict & List Support Helpers (`Arr`)** | Added stdlib-only `Arr` utility facade (`swiftpy/support/arr.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) implementing all 36 Pythonic dict/list helpers: dot-notation retrieval/guards (`dict`, `list`, `get`, `exists`, `has`, `has_all`, `has_any`), in-place mutators (`set`, `forget`, `pull`, `push`), non-mutating reshaping & projection (`collapse`, `cross_join`, `divide`, `flatten`, `wrap`, `only`, `except_`, `except_values`, `where_not_null`, `pluck`, `select` with `Model`/`ModelCollection`/`BaseSchema` support), predicates & transforms (`every`, `some`, `first`, `last`, `map`, `map_spread`, `reject`, `partition`), stable sorting/slicing/sampling (`sort`, `sort_desc`, `take`, `random`, `shuffle`), `join()`, and RFC 3986 `query()`, backed by strict `mypy`/`pyrefly` overload contracts and dedicated developer documentation | ✅ Completed |
|
|
77
77
|
| **Release v0.4.4: Number Formatting & Parsing Helpers (`Number`)** | Added zero-dependency, stdlib-only `Number` facade (`swiftpy/support/number.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) with pure-Python CLDR/ISO-4217 registries, `Decimal` `ROUND_HALF_UP` rounding, and `ContextVar`-isolated `with_locale()`/`with_currency()` scoping implementing all 14 insight helpers (`abbreviate`, `currency`, `default_currency`, `default_locale`, `file_size`, `for_humans`, `format`, `ordinal`, `parse`, `parse_int`, `spell`, `trim`, `use_locale`, `use_currency`), backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
78
|
+
| **Release v0.4.5: Path, URL, Redirect, Abort & General-Purpose Helpers** | Added application path helpers (`base_path`, `app_path`, `config_path`, `database_path`, `storage_path`), URL/action/redirect helpers (`asset`, `secure_asset`, `secure_url`, `action`, `redirect`, `to_action` with Host-header protection), conditional/retry/memoization flow helpers (`abort_if`, `abort_unless`, `throw_if`, `throw_unless`, async `retry`, task-scoped `@once`), value/date/request/container helpers (`blank`, `filled`, `literal`, `tap`/`atap`, `now`, `today`, `request`, `app(Type)`), bounded `dump`/`dd` (`DumpAndDie`), and AES-256-GCM + HKDF `encrypt`/`decrypt` (`DecryptException`) with key rotation, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
79
|
+
| **Release v0.4.6: Miscellaneous Helpers (`transform`, `validator`, `view`, `Benchmark`, `defer`, `Sleep`, `Timebox`, `Uri`)** | Added `transform()`/`atransform()` with callable defaults, `validator()` helper, `swiftpy/views/` (`View`, `ViewEngine` with dot/slash paths, `namespace::template` roots, optional Jinja2 sandbox + HTML-escaping fallback, direct ASGI route returns, and `MailMessage.view` / dot-notation mail integration), `Benchmark` sync/async millisecond timing & `dd()`, post-response `defer()`/`deferred_scope()` across HTTP/`QueueWorker`/CLI, immutable async `Sleep` + `ContextVar`-isolated `Sleep.fake()`, concurrency-safe `Timebox`, and immutable `Uri` component inspection & query builders, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
78
80
|
|
|
79
81
|
*See [`documentations/2026-11-14-installation-quick-start.md`](./documentations/2026-11-14-installation-quick-start.md), [`documentations/2026-11-21-application-architecture-and-project-structure.md`](./documentations/2026-11-21-application-architecture-and-project-structure.md), and [`documentations/2026-11-22-task-scheduling.md`](./documentations/2026-11-22-task-scheduling.md) for the complete documentation series and [`CHANGELOG.md`](./CHANGELOG.md) for release notes.*
|
|
80
82
|
|
|
@@ -9,5 +9,7 @@ CONFIG = {
|
|
|
9
9
|
"enable_benchmarks": env_bool("APP_ENABLE_BENCHMARKS", False),
|
|
10
10
|
"key": env("APP_KEY", ""),
|
|
11
11
|
"url": env("APP_URL", "http://localhost:8000"),
|
|
12
|
+
"asset_url": env("ASSET_URL", ""),
|
|
13
|
+
"timezone": env("APP_TIMEZONE", "UTC"),
|
|
12
14
|
"cipher": "AES-256-GCM",
|
|
13
15
|
}
|
|
@@ -170,7 +170,7 @@ my_api/
|
|
|
170
170
|
├── docker-compose.yml # name: my_api; app, postgres (pgvector:pg16), & redis services
|
|
171
171
|
├── Dockerfile
|
|
172
172
|
├── main.py # Entrypoint: GET /, /api router, register_exception_handlers(app)
|
|
173
|
-
└── pyproject.toml # Configured with swiftpy-framework>=0.4.
|
|
173
|
+
└── pyproject.toml # Configured with swiftpy-framework>=0.4.6, setuptools, & mypy strict settings
|
|
174
174
|
```
|
|
175
175
|
|
|
176
176
|
What `swiftpy new my_api` configures automatically:
|
|
@@ -327,7 +327,7 @@ The scaffolded `Dockerfile` reads `[project].dependencies` from your project's `
|
|
|
327
327
|
name = "my_api"
|
|
328
328
|
version = "0.1.0"
|
|
329
329
|
dependencies = [
|
|
330
|
-
"swiftpy-framework>=0.4.
|
|
330
|
+
"swiftpy-framework>=0.4.6",
|
|
331
331
|
# ...
|
|
332
332
|
]
|
|
333
333
|
```
|
|
@@ -347,7 +347,7 @@ The scaffolded `Dockerfile` reads `[project].dependencies` from your project's `
|
|
|
347
347
|
```
|
|
348
348
|
|
|
349
349
|
- The target version of `swiftpy-framework` must already be published on PyPI before running `docker compose build`. To test an unreleased local framework build in Docker, build a wheel (`uv build --wheel`), copy the `.whl` into your project's build context, and `pip install` that wheel in `Dockerfile`.
|
|
350
|
-
- **Keep your host IDE in sync:** Also run `python -m pip install -U "swiftpy-framework>=0.4.
|
|
350
|
+
- **Keep your host IDE in sync:** Also run `python -m pip install -U "swiftpy-framework>=0.4.6"` on your host machine so your IDE and Pyrefly pick up any new APIs or type annotations from the upgraded release.
|
|
351
351
|
|
|
352
352
|
### Local Virtual Environment Projects (Option B / Minimal App)
|
|
353
353
|
|
|
@@ -358,7 +358,7 @@ If running without Docker, upgrade inside your activated `.venv`:
|
|
|
358
358
|
uv sync --upgrade-package swiftpy-framework
|
|
359
359
|
|
|
360
360
|
# Or with pip
|
|
361
|
-
python -m pip install --upgrade "swiftpy-framework>=0.4.
|
|
361
|
+
python -m pip install --upgrade "swiftpy-framework>=0.4.6"
|
|
362
362
|
swiftpy --version
|
|
363
363
|
```
|
|
364
364
|
|
|
@@ -298,6 +298,93 @@ swiftpy queue:flush --queue emails --app main:app
|
|
|
298
298
|
|
|
299
299
|
When `QueueWorker` executes tasks submitted by the [Task Scheduler](2026-11-22-task-scheduling.md), it automatically records `running`, `completed`, and `failed` occurrence transitions in Redis, retains `.without_overlapping()` locks across intermediate backoff retries, and releases locks via compare-and-delete Lua upon `ack()` or final DLQ exhaustion.
|
|
300
300
|
|
|
301
|
+
#### Running Queue Workers with Docker & Docker Compose
|
|
302
|
+
|
|
303
|
+
A scaffolded SwiftPY project (`swiftpy new`) creates a `Dockerfile` and `docker-compose.yml` containing `app`, `postgres`, and `redis`. To process background jobs in Docker, add a dedicated `worker` service to `docker-compose.yml` reusing the same image (`build: .`) and overriding `command` with `swiftpy queue:work`:
|
|
304
|
+
|
|
305
|
+
```yaml
|
|
306
|
+
services:
|
|
307
|
+
app:
|
|
308
|
+
build: .
|
|
309
|
+
ports:
|
|
310
|
+
- "127.0.0.1:8000:8000"
|
|
311
|
+
env_file:
|
|
312
|
+
- .env
|
|
313
|
+
environment:
|
|
314
|
+
DB_HOST: postgres
|
|
315
|
+
REDIS_HOST: redis
|
|
316
|
+
volumes:
|
|
317
|
+
- .:/app
|
|
318
|
+
depends_on:
|
|
319
|
+
postgres:
|
|
320
|
+
condition: service_healthy
|
|
321
|
+
redis:
|
|
322
|
+
condition: service_healthy
|
|
323
|
+
|
|
324
|
+
worker:
|
|
325
|
+
build: .
|
|
326
|
+
command:
|
|
327
|
+
[
|
|
328
|
+
"swiftpy",
|
|
329
|
+
"queue:work",
|
|
330
|
+
"--app",
|
|
331
|
+
"main:app",
|
|
332
|
+
"--queue",
|
|
333
|
+
"default,emails",
|
|
334
|
+
"--concurrency",
|
|
335
|
+
"4",
|
|
336
|
+
"--timeout",
|
|
337
|
+
"60",
|
|
338
|
+
]
|
|
339
|
+
env_file:
|
|
340
|
+
- .env
|
|
341
|
+
environment:
|
|
342
|
+
DB_HOST: postgres
|
|
343
|
+
REDIS_HOST: redis
|
|
344
|
+
volumes:
|
|
345
|
+
- .:/app
|
|
346
|
+
stop_grace_period: 65s
|
|
347
|
+
restart: unless-stopped
|
|
348
|
+
depends_on:
|
|
349
|
+
postgres:
|
|
350
|
+
condition: service_healthy
|
|
351
|
+
redis:
|
|
352
|
+
condition: service_healthy
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
> **Production builds:** Remove the `volumes: - .:/app` bind mount from both `app` and `worker` when running baked production images.
|
|
356
|
+
|
|
357
|
+
Common Docker Compose workflows for background jobs:
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
# Build and start API, worker, PostgreSQL, and Redis
|
|
361
|
+
docker compose up -d --build
|
|
362
|
+
|
|
363
|
+
# Follow worker logs
|
|
364
|
+
docker compose logs -f worker
|
|
365
|
+
|
|
366
|
+
# Scale to multiple worker containers
|
|
367
|
+
docker compose up -d --scale worker=3
|
|
368
|
+
|
|
369
|
+
# Generate a new Job class under app/jobs/
|
|
370
|
+
docker compose exec app swiftpy make:job SendReceiptJob
|
|
371
|
+
|
|
372
|
+
# Drain a queue once and exit (useful for CI or one-off batch runs)
|
|
373
|
+
docker compose run --rm worker swiftpy queue:work --app main:app --queue default --stop-when-empty
|
|
374
|
+
|
|
375
|
+
# Inspect, retry, or flush Dead Letter Queue (DLQ) jobs
|
|
376
|
+
docker compose exec worker swiftpy queue:failed --queue emails --limit 50 --app main:app
|
|
377
|
+
docker compose exec worker swiftpy queue:retry all --queue emails --app main:app
|
|
378
|
+
docker compose exec worker swiftpy queue:flush --queue emails --app main:app
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
Key Docker worker requirements:
|
|
382
|
+
|
|
383
|
+
- **Share the exact same `APP_KEY` across `app` and `worker`:** Both containers load `.env` so HMAC-SHA256 job signatures created by `app` verify cleanly in `worker`.
|
|
384
|
+
- **Use exec-form `command: [...]` and `stop_grace_period`:** `QueueWorker` traps `SIGTERM` and `SIGINT` to finish active in-flight tasks before shutting down. Exec-form `command` delivers `SIGTERM` directly to `swiftpy`, and setting `stop_grace_period` slightly above `--timeout` (for example, `65s` when `--timeout 60`) prevents Docker from force-killing running jobs after its default 10-second grace window.
|
|
385
|
+
- **Keep container networking and queue DB aligned:** Setting `DB_HOST: postgres` and `REDIS_HOST: redis` ensures the worker connects to the Compose services, while `.env` keeps `REDIS_QUEUE_DB` (default `1`) and `QUEUE_PREFIX` (`swiftpy_queue:`) identical across containers.
|
|
386
|
+
- **Combining with scheduled jobs:** If you also use `Schedule`, add a third `scheduler` service running `["swiftpy", "schedule:work", "--app", "main:app"]` while keeping `SCHEDULE_AUTO_START=false` on web containers (see [Task Scheduling & Cron Engine](2026-11-22-task-scheduling.md#recommended-multi-container--multi-worker-production-topology)).
|
|
387
|
+
|
|
301
388
|
---
|
|
302
389
|
|
|
303
390
|
## Important Defaults & Production Safeguards
|
|
@@ -143,11 +143,12 @@ async def billing_status(request: Request, cfg: Config) -> Response:
|
|
|
143
143
|
)
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
-
Useful `Config` operations:
|
|
146
|
+
Useful `Config` operations and built-in `config/app.py` keys:
|
|
147
147
|
|
|
148
148
|
- `config("billing.stripe.timeout", 15.0)` — read a nested key with a fallback default.
|
|
149
149
|
- `cfg.has("billing.stripe.secret_key")` or `"billing.stripe.secret_key" in cfg` — check whether a key exists (even if its value is `None`).
|
|
150
150
|
- `cfg.set("billing.currency", "gbp")` — update a key at runtime.
|
|
151
|
+
- `app.url` (`APP_URL`), `app.asset_url` (`ASSET_URL`), and `app.timezone` (`APP_TIMEZONE`, default `"UTC"`) configure URL/asset generation and `now()`/`today()`.
|
|
151
152
|
|
|
152
153
|
### Overriding Config with Environment Variables
|
|
153
154
|
|
|
@@ -417,18 +418,25 @@ async def run_batch_job() -> None:
|
|
|
417
418
|
|
|
418
419
|
---
|
|
419
420
|
|
|
420
|
-
## Helper Functions (`isset`, `env`, `config`, ...)
|
|
421
|
+
## Helper Functions (`app`, `request`, `isset`, `env`, `config`, ...)
|
|
421
422
|
|
|
422
|
-
SwiftPY exports convenience helpers from `swiftpy.helpers`, `swiftpy.support`, and the top-level `swiftpy` package (see the dedicated [Helpers & Support Utilities
|
|
423
|
+
SwiftPY exports convenience helpers from `swiftpy.helpers`, `swiftpy.support`, and the top-level `swiftpy` package (see the dedicated [Helpers & Support Utilities](2026-11-15-helpers-and-support-utilities.md) guide for `Arr`, `Number`, path/URL, flow-control, value/date, debug, and encryption helpers):
|
|
423
424
|
|
|
424
425
|
```python
|
|
425
|
-
from swiftpy import isset
|
|
426
|
+
from swiftpy import app, isset
|
|
427
|
+
from swiftpy.helpers import request
|
|
428
|
+
|
|
429
|
+
# Container shortcut: app() returns the active Container; app(Service) resolves a binding
|
|
430
|
+
svc = app(OrderService)
|
|
431
|
+
|
|
432
|
+
# Request shortcut inside active HTTP handling: request() or request("key", default)
|
|
433
|
+
page = request("page", "1")
|
|
426
434
|
|
|
427
435
|
if isset(payload, "user.profile.email"):
|
|
428
436
|
...
|
|
429
437
|
|
|
430
438
|
# Require multiple keys/paths at once (missing or None -> False; 0 / False / "" / [] -> True)
|
|
431
|
-
if isset(request, "title", "category_id"):
|
|
439
|
+
if isset(request(), "title", "category_id"):
|
|
432
440
|
...
|
|
433
441
|
```
|
|
434
442
|
|
|
@@ -339,7 +339,8 @@ Key `MailMessage` / `Envelope` behavior:
|
|
|
339
339
|
|
|
340
340
|
By default, `MailTemplateRenderer` resolves templates inside `views/` (configurable via `MailTemplateRenderer(template_dir=...)`):
|
|
341
341
|
|
|
342
|
-
- Passing `template="mail/welcome"` (or `"mail/welcome.html"`) renders **both** `views/mail/welcome.html` and `views/mail/welcome.txt` if present, populating `html_body` and/or `text_body` (explicitly set `html_body` / `text_body` on `MailMessage` take precedence).
|
|
342
|
+
- Passing `template="mail/welcome"` (or `"mail/welcome.html"` or dot-separated `"mail.welcome"`) renders **both** `views/mail/welcome.html` and `views/mail/welcome.txt` if present, populating `html_body` and/or `text_body` (explicitly set `html_body` / `text_body` on `MailMessage` take precedence).
|
|
343
|
+
- You can also pass a `View` directly to `MailMessage(subject=..., to=..., view=view("mail.welcome", {"name": "Ada"}))`, which renders HTML automatically in `Mailable.build_message()`, `Mail.send()`, and `MailManager.send()` when `html_body` is unset.
|
|
343
344
|
- When `jinja2` is installed, SwiftPY uses `jinja2.sandbox.SandboxedEnvironment` with autoescaping enabled for `.html`/`.xml`. Without Jinja2, the built-in fallback renderer substitutes `{{ nested.var }}` with HTML quote escaping for `.html` and unescaped text for `.txt`.
|
|
344
345
|
- Both directory traversal (`../...`) and private/dunder attribute lookups (`_...` / `__...`) raise `MailValidationError`.
|
|
345
346
|
|
|
@@ -402,6 +403,7 @@ with Mail.fake() as fake:
|
|
|
402
403
|
- **Configure `FILESYSTEM_SIGNING_KEY` or `APP_KEY` before using local signed URLs:** `LocalStorageDriver.temporary_url()` and `verify_temporary_url()` fail closed with `ConfigurationError` if no signing key is configured.
|
|
403
404
|
- **Pair `magic_bytes=True` with explicit `extensions` and `mimes` allowlists:** File extension and `Content-Type` headers are client-controlled; `magic_bytes=True` inspects leading file bytes and fails closed on unknown or spoofed signatures (`InvalidFileExtensionError` / `InvalidMimeTypeError` / `FileValidationError`).
|
|
404
405
|
- **Keep private files off the `"public"` disk:** Store sensitive uploads on `"local"` (`storage/app/private`) or `"s3"` with `Visibility.PRIVATE` and issue short-lived `temporary_url()` downloads; use `swiftpy storage:link` only for public assets in `storage/app/public`.
|
|
406
|
+
- **`storage_path()` vs. `storage()` / `Storage.disk()`:** `storage_path(...)` builds a validated local `pathlib.Path` under the application's `storage/` directory (`base_path("storage/...")`), whereas `storage()` / `Storage.disk()` operates on configured filesystem drivers (`local`, `s3`) and their configured disk roots.
|
|
405
407
|
- **Keep SMTP certificate validation enabled & secrets in env vars:** `MAIL_VALIDATE_CERTS` defaults to `true`; REST API transports automatically sanitize tokens (`Bearer ...`, `sk_live_...`, `SG....`, `key-...`) from upstream error messages, and production deployments must provide real `MAIL_*` / provider keys rather than leaving `MAIL_MAILER=console`.
|
|
406
408
|
- **Use `Mail.queue(..., after_commit=True)` inside transactions & allowlist external Mailables:** Prevents sending emails for rolled-back database writes, and call `await MailManager.get_instance().close()` / `await FilesystemManager.get_instance().close()` (or let `Application` shutdown run) when managing transports manually outside the app lifecycle.
|
|
407
409
|
|