swiftpy-framework 0.4.0__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (548) hide show
  1. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/.github/workflows/ci.yml +37 -1
  2. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/CHANGELOG.md +25 -0
  3. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/PKG-INFO +2 -1
  4. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/README.md +1 -0
  5. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-14-installation-quick-start.md +4 -4
  6. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-authentication-and-security.md +1 -1
  7. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-validation-and-form-requests.md +29 -5
  8. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/pyproject.toml +1 -1
  9. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/__init__.py +10 -1
  10. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/auth_manager.py +127 -35
  11. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/new.py +1 -1
  12. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/application.py +3 -0
  13. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/http/request.py +38 -1
  14. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/schemas/base.py +4 -1
  15. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/form_request.py +13 -2
  16. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/rules/registry.py +25 -10
  17. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/rules/unique.py +90 -5
  18. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/validator.py +14 -8
  19. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_proxy.py +278 -29
  20. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_phase9_cli_remediation.py +5 -2
  21. swiftpy_framework-0.4.1/tests/typing/test_auth_typing.py +75 -0
  22. swiftpy_framework-0.4.1/tests/typing/test_validation_typing.py +62 -0
  23. swiftpy_framework-0.4.1/tests/validation/test_db_rules.py +758 -0
  24. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_validation_ergonomics.py +153 -0
  25. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/uv.lock +1 -1
  26. swiftpy_framework-0.4.0/tests/validation/test_db_rules.py +0 -269
  27. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/.dockerignore +0 -0
  28. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/.env.example +0 -0
  29. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/.github/workflows/publish.yml +0 -0
  30. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/.gitignore +0 -0
  31. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/CONTRIBUTING.md +0 -0
  32. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/Dockerfile +0 -0
  33. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/LICENSE +0 -0
  34. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/__init__.py +0 -0
  35. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/ai/agents/assistant_agent.py +0 -0
  36. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/ai/observers/.gitkeep +0 -0
  37. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/ai/pipelines/.gitkeep +0 -0
  38. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/ai/providers/.gitkeep +0 -0
  39. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/ai/tools/system_status_tool.py +0 -0
  40. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/ai/vectorstores/.gitkeep +0 -0
  41. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/events/user_registered.py +0 -0
  42. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/controllers/user_controller.py +0 -0
  43. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/handler/exceptions.py +0 -0
  44. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/middleware/__init__.py +0 -0
  45. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/middleware/admin_middleware.py +0 -0
  46. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/middleware/auth_middleware.py +0 -0
  47. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/middleware/test_middleware.py +0 -0
  48. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/requests/create_user_request.py +0 -0
  49. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/http/resources/user_resource.py +0 -0
  50. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/jobs/send_notification_job.py +0 -0
  51. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/listeners/send_welcome_notification.py +0 -0
  52. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/mail/welcome_email.py +0 -0
  53. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/models/profile.py +0 -0
  54. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/models/user.py +0 -0
  55. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/app_service_provider.py +0 -0
  56. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/auth_service_provider.py +0 -0
  57. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/cache_service_provider.py +0 -0
  58. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/database_service_provider.py +0 -0
  59. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/event_service_provider.py +0 -0
  60. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/filesystem_service_provider.py +0 -0
  61. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/mail_service_provider.py +0 -0
  62. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/providers/queue_service_provider.py +0 -0
  63. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/repositories/user_repository.py +0 -0
  64. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/schemas/user_schema.py +0 -0
  65. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/app/services/user_service.py +0 -0
  66. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/bootstrap/cache/.gitkeep +0 -0
  67. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/__init__.py +0 -0
  68. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/ai.py +0 -0
  69. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/app.py +0 -0
  70. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/auth.py +0 -0
  71. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/cache.py +0 -0
  72. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/cors.py +0 -0
  73. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/database.py +0 -0
  74. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/events.py +0 -0
  75. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/filesystems.py +0 -0
  76. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/http.py +0 -0
  77. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/logging.py +0 -0
  78. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/mail.py +0 -0
  79. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/queue.py +0 -0
  80. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/config/schedule.py +0 -0
  81. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/database/__init__.py +0 -0
  82. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
  83. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/database/migrations/2026_11_26_180006_create_profiles_table.py +0 -0
  84. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/database/migrations/__init__.py +0 -0
  85. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/database/seeders/database_seeder.py +0 -0
  86. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/docker-compose.yml +0 -0
  87. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-ai-subsystem.md +0 -0
  88. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-cache-events-and-queues.md +0 -0
  89. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-core-application-di-and-config.md +0 -0
  90. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-database-query-builder-and-migrations.md +0 -0
  91. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-filesystem-storage-and-mail.md +0 -0
  92. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
  93. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-orm-models-and-relationships.md +0 -0
  94. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-15-websockets-and-admin.md +0 -0
  95. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-19-application-schemas.md +0 -0
  96. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-19-cli-and-testing.md +0 -0
  97. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-19-database-schema-and-blueprint.md +0 -0
  98. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-20-error-handling.md +0 -0
  99. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-20-logging.md +0 -0
  100. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-20-request-and-responses.md +0 -0
  101. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-21-application-architecture-and-project-structure.md +0 -0
  102. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-21-cors.md +0 -0
  103. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/documentations/2026-11-22-task-scheduling.md +0 -0
  104. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/main.py +0 -0
  105. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/prompts/classify.py +0 -0
  106. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/prompts/summarise.py +0 -0
  107. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/red-black.png +0 -0
  108. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/routes/__init__.py +0 -0
  109. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/routes/api.py +0 -0
  110. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/.gitignore +0 -0
  111. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/__init__.py +0 -0
  112. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/_deterministic.py +0 -0
  113. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/_fake.py +0 -0
  114. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/agents/__init__.py +0 -0
  115. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/agents/base_agent.py +0 -0
  116. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/agents/memory.py +0 -0
  117. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/client.py +0 -0
  118. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/conversation.py +0 -0
  119. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/embeddings.py +0 -0
  120. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/exceptions.py +0 -0
  121. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/history_strategies.py +0 -0
  122. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/middleware.py +0 -0
  123. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/observability/__init__.py +0 -0
  124. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/observability/drivers.py +0 -0
  125. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/observability/observer.py +0 -0
  126. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/pool.py +0 -0
  127. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/pricing.py +0 -0
  128. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/prompts/__init__.py +0 -0
  129. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/prompts/loader.py +0 -0
  130. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/providers/__init__.py +0 -0
  131. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/providers/anthropic_provider.py +0 -0
  132. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/providers/base.py +0 -0
  133. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/providers/openai_provider.py +0 -0
  134. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/rag/__init__.py +0 -0
  135. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/rag/context_formatter.py +0 -0
  136. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/rag/pipeline_builder.py +0 -0
  137. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/rag/reranker.py +0 -0
  138. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/rag/result.py +0 -0
  139. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/rag/retriever.py +0 -0
  140. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/redis_store.py +0 -0
  141. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/streaming.py +0 -0
  142. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/tools/__init__.py +0 -0
  143. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/tools/base_tool.py +0 -0
  144. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/tools/first_party.py +0 -0
  145. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/tools/tool_loop.py +0 -0
  146. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/__init__.py +0 -0
  147. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/base.py +0 -0
  148. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
  149. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
  150. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
  151. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
  152. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
  153. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
  154. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/__init__.py +0 -0
  155. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/api_key_guard.py +0 -0
  156. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/events.py +0 -0
  157. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/exceptions.py +0 -0
  158. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/jwt_guard.py +0 -0
  159. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/jwt_issuer.py +0 -0
  160. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/throttle.py +0 -0
  161. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/token_blacklist.py +0 -0
  162. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth/user_context.py +0 -0
  163. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/auth_manager.py +0 -0
  164. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/cache/__init__.py +0 -0
  165. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/cache/cache.py +0 -0
  166. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/cache/driver.py +0 -0
  167. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/cache/drivers/memory.py +0 -0
  168. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/cache/drivers/redis.py +0 -0
  169. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/__init__.py +0 -0
  170. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/cli.py +0 -0
  171. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/__init__.py +0 -0
  172. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/cache.py +0 -0
  173. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/make.py +0 -0
  174. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/migrate.py +0 -0
  175. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/queue.py +0 -0
  176. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/schedule.py +0 -0
  177. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/seed.py +0 -0
  178. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/start.py +0 -0
  179. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/commands/storage.py +0 -0
  180. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/loader.py +0 -0
  181. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/__init__.py +0 -0
  182. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/agent.stub +0 -0
  183. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/controller.stub +0 -0
  184. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/event.stub +0 -0
  185. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/factory.stub +0 -0
  186. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/job.stub +0 -0
  187. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/listener.stub +0 -0
  188. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/mail.stub +0 -0
  189. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/middleware.stub +0 -0
  190. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/migration.alter.stub +0 -0
  191. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
  192. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/migration.blank.stub +0 -0
  193. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/migration.create.stub +0 -0
  194. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/migration.stub +0 -0
  195. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/migration.update.stub +0 -0
  196. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/model.stub +0 -0
  197. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/prompt.stub +0 -0
  198. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/provider.stub +0 -0
  199. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/repository.stub +0 -0
  200. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/request.stub +0 -0
  201. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/resource.stub +0 -0
  202. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/schema.stub +0 -0
  203. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/seeder.stub +0 -0
  204. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/service.stub +0 -0
  205. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/console/stubs/tool.stub +0 -0
  206. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/__init__.py +0 -0
  207. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/bootstrap.py +0 -0
  208. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/config.py +0 -0
  209. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/container.py +0 -0
  210. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/container_exceptions.py +0 -0
  211. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/context.py +0 -0
  212. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/exceptions.py +0 -0
  213. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/core/providers/base.py +0 -0
  214. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/__init__.py +0 -0
  215. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/exceptions.py +0 -0
  216. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/factories.py +0 -0
  217. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/identifiers.py +0 -0
  218. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/migrations/__init__.py +0 -0
  219. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/migrations/blueprint.py +0 -0
  220. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/migrations/lock.py +0 -0
  221. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/migrations/migration.py +0 -0
  222. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/migrations/migrator.py +0 -0
  223. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/migrations/schema.py +0 -0
  224. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/orm/__init__.py +0 -0
  225. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/orm/fields.py +0 -0
  226. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/orm/model.py +0 -0
  227. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/orm/registry.py +0 -0
  228. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/orm/relationships.py +0 -0
  229. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/pagination/__init__.py +0 -0
  230. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/pagination/contracts.py +0 -0
  231. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/pagination/paginator.py +0 -0
  232. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/pagination/simple_paginator.py +0 -0
  233. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/pool.py +0 -0
  234. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/query_builder.py +0 -0
  235. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/seeder.py +0 -0
  236. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/database/transaction.py +0 -0
  237. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/events/__init__.py +0 -0
  238. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/events/dispatcher.py +0 -0
  239. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/events/redis_bus.py +0 -0
  240. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/__init__.py +0 -0
  241. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/disk.py +0 -0
  242. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/drivers/__init__.py +0 -0
  243. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/drivers/base.py +0 -0
  244. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/drivers/local.py +0 -0
  245. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/drivers/s3.py +0 -0
  246. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/events.py +0 -0
  247. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/exceptions.py +0 -0
  248. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/manager.py +0 -0
  249. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/metadata.py +0 -0
  250. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/paths.py +0 -0
  251. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/service_provider.py +0 -0
  252. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/uploads/__init__.py +0 -0
  253. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/uploads/handlers.py +0 -0
  254. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
  255. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/uploads/validators.py +0 -0
  256. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/filesystem/visibility.py +0 -0
  257. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/helpers/__init__.py +0 -0
  258. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/helpers/helper.py +0 -0
  259. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/http/client_ip.py +0 -0
  260. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/http/exceptions.py +0 -0
  261. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/http/middleware.py +0 -0
  262. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/http/response.py +0 -0
  263. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/http/router.py +0 -0
  264. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/logging/__init__.py +0 -0
  265. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/logging/channels.py +0 -0
  266. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/logging/log.py +0 -0
  267. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/logging/manager.py +0 -0
  268. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/__init__.py +0 -0
  269. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/attachments.py +0 -0
  270. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/config.py +0 -0
  271. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/envelope.py +0 -0
  272. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/exceptions.py +0 -0
  273. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/facade.py +0 -0
  274. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/mailable.py +0 -0
  275. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/manager.py +0 -0
  276. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/message.py +0 -0
  277. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/models.py +0 -0
  278. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/queue/__init__.py +0 -0
  279. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/queue/job.py +0 -0
  280. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/service_provider.py +0 -0
  281. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/templates/__init__.py +0 -0
  282. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/templates/renderer.py +0 -0
  283. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/__init__.py +0 -0
  284. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/api/__init__.py +0 -0
  285. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/api/base.py +0 -0
  286. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/api/mailgun.py +0 -0
  287. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/api/resend.py +0 -0
  288. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/api/sendgrid.py +0 -0
  289. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/base.py +0 -0
  290. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/console.py +0 -0
  291. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/sendmail.py +0 -0
  292. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/mail/transports/smtp.py +0 -0
  293. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/py.typed +0 -0
  294. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/queue/__init__.py +0 -0
  295. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/queue/dispatcher.py +0 -0
  296. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/queue/job.py +0 -0
  297. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/queue/worker.py +0 -0
  298. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/__init__.py +0 -0
  299. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/_redis_lua.py +0 -0
  300. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/cron.py +0 -0
  301. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/events.py +0 -0
  302. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/exceptions.py +0 -0
  303. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/jobs.py +0 -0
  304. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/models.py +0 -0
  305. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/scheduler.py +0 -0
  306. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/signing.py +0 -0
  307. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/scheduling/store.py +0 -0
  308. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/schemas/__init__.py +0 -0
  309. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/schemas/fields.py +0 -0
  310. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/support/__init__.py +0 -0
  311. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/support/hashing.py +0 -0
  312. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/support/keys.py +0 -0
  313. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/support/redis_config.py +0 -0
  314. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/support/strings.py +0 -0
  315. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/__init__.py +0 -0
  316. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/fakes/__init__.py +0 -0
  317. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/fakes/ai_fake.py +0 -0
  318. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
  319. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/fixtures.py +0 -0
  320. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/http_client.py +0 -0
  321. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/testing/test_case.py +0 -0
  322. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/__init__.py +0 -0
  323. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/exceptions.py +0 -0
  324. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/protocols.py +0 -0
  325. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/rules/__init__.py +0 -0
  326. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/rules/builtin.py +0 -0
  327. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/rules/exists.py +0 -0
  328. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/validation/rules/required.py +0 -0
  329. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/websockets/__init__.py +0 -0
  330. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/websockets/connection.py +0 -0
  331. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/swiftpy/websockets/manager.py +0 -0
  332. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/__init__.py +0 -0
  333. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/__init__.py +0 -0
  334. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/conftest.py +0 -0
  335. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/integration/__init__.py +0 -0
  336. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/integration/test_chroma.py +0 -0
  337. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/integration/test_lancedb.py +0 -0
  338. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/integration/test_pinecone.py +0 -0
  339. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/integration/test_qdrant.py +0 -0
  340. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/integration/test_rag_integration.py +0 -0
  341. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_agents.py +0 -0
  342. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_ai_fake.py +0 -0
  343. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_ai_fake_isolation.py +0 -0
  344. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_client.py +0 -0
  345. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_conversation.py +0 -0
  346. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_embeddings.py +0 -0
  347. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_middleware.py +0 -0
  348. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_middleware_concurrency.py +0 -0
  349. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_observability.py +0 -0
  350. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_observability_resilience.py +0 -0
  351. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_phase7_ai_remediation.py +0 -0
  352. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
  353. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_phase8_rag_remediation.py +0 -0
  354. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
  355. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_prompts.py +0 -0
  356. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_prompts_security.py +0 -0
  357. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_providers.py +0 -0
  358. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_rag.py +0 -0
  359. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_streaming.py +0 -0
  360. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_tools.py +0 -0
  361. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_vectorstore.py +0 -0
  362. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/ai/test_vectorstore_adapters.py +0 -0
  363. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/app/__init__.py +0 -0
  364. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/app/test_application_providers.py +0 -0
  365. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/app/test_starter_auth.py +0 -0
  366. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/__init__.py +0 -0
  367. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_api_key_guard.py +0 -0
  368. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_attempt.py +0 -0
  369. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_context_on_issue.py +0 -0
  370. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_manager.py +0 -0
  371. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_remediation.py +0 -0
  372. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_security.py +0 -0
  373. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_auth_throttle.py +0 -0
  374. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_jwt_defaults.py +0 -0
  375. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_jwt_issuer.py +0 -0
  376. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_password_hashing.py +0 -0
  377. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_refresh_and_logout.py +0 -0
  378. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/auth/test_token_blacklist.py +0 -0
  379. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/benchmarks.py +0 -0
  380. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/cache/__init__.py +0 -0
  381. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/cache/test_cache_concurrency.py +0 -0
  382. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/cache/test_cache_manager.py +0 -0
  383. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/cache/test_driver_correctness.py +0 -0
  384. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/cache/test_memory_cache.py +0 -0
  385. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/cache/test_redis_cache.py +0 -0
  386. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/concurrency/__init__.py +0 -0
  387. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/concurrency/test_circular_dependency.py +0 -0
  388. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/concurrency/test_container_semantics.py +0 -0
  389. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/concurrency/test_resolution.py +0 -0
  390. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/concurrency/test_resolution2.py +0 -0
  391. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/conftest.py +0 -0
  392. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/__init__.py +0 -0
  393. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_cache_commands.py +0 -0
  394. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_cli.py +0 -0
  395. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_new_command.py +0 -0
  396. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_start.py +0 -0
  397. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_storage_command.py +0 -0
  398. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/console/test_stubs_and_make.py +0 -0
  399. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/__init__.py +0 -0
  400. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/test_application_config_isolation.py +0 -0
  401. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/test_core_config.py +0 -0
  402. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/test_exceptions.py +0 -0
  403. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/test_helpers.py +0 -0
  404. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/test_instance_singletons.py +0 -0
  405. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/core/test_lifespan.py +0 -0
  406. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/__init__.py +0 -0
  407. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_factories.py +0 -0
  408. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_orm_expansion.py +0 -0
  409. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_orm_vector.py +0 -0
  410. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_pagination_and_grouping.py +0 -0
  411. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_pagination_pg_integration.py +0 -0
  412. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_pgvector_integration.py +0 -0
  413. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_phase4_remediation.py +0 -0
  414. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_query_expansion.py +0 -0
  415. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_query_expansion_pg_integration.py +0 -0
  416. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_query_helpers_v036.py +0 -0
  417. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_seeder.py +0 -0
  418. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/database/test_sequence_gaps.py +0 -0
  419. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/__init__.py +0 -0
  420. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/load_test_database.py +0 -0
  421. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/load_test_database2.py +0 -0
  422. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_arbitrary_primary_keys.py +0 -0
  423. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_identifiers.py +0 -0
  424. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_mass_writes.py +0 -0
  425. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_pool_config.py +0 -0
  426. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_query_builder_terminals.py +0 -0
  427. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_sql_injections.py +0 -0
  428. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/db/test_transaction_isolation.py +0 -0
  429. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/docs/__init__.py +0 -0
  430. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/docs/test_readme_examples.py +0 -0
  431. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/e2e/__init__.py +0 -0
  432. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/e2e/test_concurrent_auth.py +0 -0
  433. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/e2e/test_crud_auth_e2e.py +0 -0
  434. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/events/__init__.py +0 -0
  435. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/events/test_event_dispatcher.py +0 -0
  436. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/events/test_model_events.py +0 -0
  437. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/events/test_redis_bus.py +0 -0
  438. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/events/test_redis_bus_reliability.py +0 -0
  439. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/__init__.py +0 -0
  440. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_cli_storage_link.py +0 -0
  441. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_disk.py +0 -0
  442. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_filesystem_concurrency.py +0 -0
  443. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_filesystem_config.py +0 -0
  444. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_http_integration.py +0 -0
  445. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_local_driver.py +0 -0
  446. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_multipart.py +0 -0
  447. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_paths.py +0 -0
  448. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
  449. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_s3_driver.py +0 -0
  450. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_signed_urls.py +0 -0
  451. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_storage_facade.py +0 -0
  452. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_uploaded_file.py +0 -0
  453. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/filesystem/test_validation.py +0 -0
  454. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/__init__.py +0 -0
  455. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_client_ip.py +0 -0
  456. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_controller_routing.py +0 -0
  457. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_error_pipeline.py +0 -0
  458. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_http_remediation.py +0 -0
  459. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_include_router.py +0 -0
  460. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_request.py +0 -0
  461. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_request_router_abort.py +0 -0
  462. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_response.py +0 -0
  463. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_route_groups.py +0 -0
  464. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_router.py +0 -0
  465. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/http/test_router_405_and_has_file.py +0 -0
  466. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/integration/__init__.py +0 -0
  467. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/integration/test_queue_event_websocket.py +0 -0
  468. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/logging/__init__.py +0 -0
  469. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/logging/test_logging.py +0 -0
  470. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/__init__.py +0 -0
  471. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_api_transports.py +0 -0
  472. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_attachments.py +0 -0
  473. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_cli_make_mail.py +0 -0
  474. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_console_transport.py +0 -0
  475. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_envelope.py +0 -0
  476. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_facade_and_fake.py +0 -0
  477. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_mailable.py +0 -0
  478. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_manager_and_config.py +0 -0
  479. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_message.py +0 -0
  480. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_phase6_mail_remediation.py +0 -0
  481. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_queue_integration.py +0 -0
  482. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_service_provider_and_helpers.py +0 -0
  483. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_smtp_and_sendmail.py +0 -0
  484. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/mail/test_templates.py +0 -0
  485. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/migrations/__init__.py +0 -0
  486. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/migrations/test_migrations.py +0 -0
  487. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/migrations/test_migrations_v040.py +0 -0
  488. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/__init__.py +0 -0
  489. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_defaults_dirty.py +0 -0
  490. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_eager_loading.py +0 -0
  491. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_hidden.py +0 -0
  492. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_instance_update.py +0 -0
  493. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_mass_assignment.py +0 -0
  494. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_model_events_transaction.py +0 -0
  495. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_relationships_hardening.py +0 -0
  496. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/orm/test_where_has.py +0 -0
  497. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/__init__.py +0 -0
  498. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_after_commit.py +0 -0
  499. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_phase5_remediation.py +0 -0
  500. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_poison_messages.py +0 -0
  501. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_queue.py +0 -0
  502. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_reliability.py +0 -0
  503. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_signing.py +0 -0
  504. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/queue/test_worker_behavior.py +0 -0
  505. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_cron_and_timezone.py +0 -0
  506. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_scheduler_core.py +0 -0
  507. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_scheduler_lifecycle_and_cli.py +0 -0
  508. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_scheduler_queue_integration.py +0 -0
  509. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_scheduler_recovery_and_failures.py +0 -0
  510. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_scheduler_redis_store.py +0 -0
  511. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/scheduling/test_scheduler_worker_lifecycle.py +0 -0
  512. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/schemas/__init__.py +0 -0
  513. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/schemas/test_schema_auth.py +0 -0
  514. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/schemas/test_schema_orm_and_cli.py +0 -0
  515. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/schemas/test_schema_routing.py +0 -0
  516. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/schemas/test_schemas.py +0 -0
  517. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/security/__init__.py +0 -0
  518. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/security/test_security_audit.py +0 -0
  519. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/stress/__init__.py +0 -0
  520. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/stress/test_context_isolation.py +0 -0
  521. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/support/__init__.py +0 -0
  522. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/support/test_redis_config.py +0 -0
  523. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/support/test_strings.py +0 -0
  524. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/testing/__init__.py +0 -0
  525. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/testing/test_fixtures.py +0 -0
  526. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/testing/test_phase9_testing_remediation.py +0 -0
  527. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/testing/test_test_client.py +0 -0
  528. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/typing/__init__.py +0 -0
  529. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/typing/test_factory_typing.py +0 -0
  530. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/typing/test_orm_typing.py +0 -0
  531. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/typing/test_schema_typing.py +0 -0
  532. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/__init__.py +0 -0
  533. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_form_request_fail_closed.py +0 -0
  534. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_form_request_pipeline.py +0 -0
  535. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_phase6_validation_remediation.py +0 -0
  536. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_rules_hardening.py +0 -0
  537. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_validation_concurrency.py +0 -0
  538. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/validation/test_validator_rules.py +0 -0
  539. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/__init__.py +0 -0
  540. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_broadcast.py +0 -0
  541. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_handshake.py +0 -0
  542. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_lifecycle.py +0 -0
  543. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_websocket_concurrency.py +0 -0
  544. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_websocket_connection.py +0 -0
  545. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_websocket_manager.py +0 -0
  546. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_websocket_remediation.py +0 -0
  547. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
  548. {swiftpy_framework-0.4.0 → swiftpy_framework-0.4.1}/views/mail/template.html +0 -0
@@ -84,6 +84,7 @@ jobs:
84
84
  uv run mypy swiftpy
85
85
  uv run mypy .
86
86
  uv run mypy --explicit-package-bases .
87
+ uv run mypy --strict tests/typing/
87
88
 
88
89
  - name: Run Pyrefly
89
90
  run: |
@@ -195,11 +196,46 @@ jobs:
195
196
  out, _ = proc.communicate(timeout=5)
196
197
  assert ok, out
197
198
  '
199
+ ROOT_DIR="$(pwd)"
198
200
  rm -rf /tmp/swiftpy-pyrefly-smoke && mkdir -p /tmp/swiftpy-pyrefly-smoke
199
201
  (
200
202
  cd /tmp/swiftpy-pyrefly-smoke
201
203
  /tmp/swiftpy-wheel-smoke/bin/swiftpy new ci_smoke_api
202
204
  cd ci_smoke_api
203
- uvx pyrefly check --python-interpreter-path /tmp/swiftpy-wheel-smoke/bin/python --error=no-any-return-implicit app/ config/ routes/ database/ prompts/ main.py
205
+ cat <<'EOF' > v041_typing_contract_smoke.py
206
+ from __future__ import annotations
207
+
208
+ from typing import assert_type
209
+
210
+ from swiftpy import Auth, AuthProxy, AuthUser, Request, UniqueRule, ValidatedData, unique
211
+ from swiftpy.auth import auth
212
+ from swiftpy.auth_manager import Auth as LegacyAuth
213
+ from swiftpy.auth_manager import auth as legacy_auth
214
+
215
+
216
+ def check_auth_contracts() -> AuthUser:
217
+ _proxy = assert_type(auth(), AuthProxy)
218
+ _user = assert_type(auth().user(), AuthUser)
219
+ _uid = auth().user().id
220
+ _facade_id = Auth.user().id
221
+ _legacy_id = legacy_auth().user().id
222
+ _legacy_facade_id = LegacyAuth.user().id
223
+ _nullable = assert_type(auth().user(nullable=True), AuthUser | None)
224
+ _facade_nullable = assert_type(Auth.user(nullable=True), AuthUser | None)
225
+ _strict = assert_type(auth().user_or_fail(), AuthUser)
226
+ _ = (_proxy, _user, _uid, _facade_id, _legacy_id, _legacy_facade_id, _nullable, _facade_nullable, _strict)
227
+ return auth().user()
228
+
229
+
230
+ async def check_validation_contracts(request: Request, user_id: int) -> ValidatedData:
231
+ _rule = assert_type(unique("users", "email").ignore(user_id), UniqueRule)
232
+ _ = _rule
233
+ return assert_type(
234
+ await request.validate({"email": f"required|email|unique:users,email,{user_id}"}),
235
+ ValidatedData,
236
+ )
237
+ EOF
238
+ uvx pyrefly check --python-interpreter-path /tmp/swiftpy-wheel-smoke/bin/python --error=no-any-return-implicit app/ config/ routes/ database/ prompts/ main.py v041_typing_contract_smoke.py
239
+ PYTHONPATH= "$ROOT_DIR/.venv/bin/mypy" --python-executable /tmp/swiftpy-wheel-smoke/bin/python --strict v041_typing_contract_smoke.py
204
240
  )
205
241
  rm -rf /tmp/swiftpy-pyrefly-smoke /tmp/swiftpy-wheel-smoke
@@ -4,6 +4,31 @@ All notable changes to SwiftPY will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.4.1] - 2026-11-28
8
+
9
+ ### Added
10
+ - **Inline Request Validation & Route Parameter Helpers (`swiftpy/http/request.py`, `swiftpy/core/application.py`, `swiftpy/validation/form_request.py`):**
11
+ - Added `await request.validate(schema, messages=None, *, registry=None, stop_on_first_error=False) -> ValidatedData` on `Request`, automatically validating request payloads, raising `ValidationException` (HTTP 422) on failure, and returning `ValidatedData` (supporting both dict and attribute access).
12
+ - Populated `request.path_params` during HTTP and WebSocket dispatch in `Application` and added `request.route(param=None, default=None)` and `FormRequest.route(param=None, default=None)` so controllers and dynamic `FormRequest.rules()` methods can read route parameters cleanly (`"validate"`, `"route"`, and `"path_params"` added to `Request._RESERVED_INPUT_ATTRS`).
13
+ - **Unique Validation Enhancements (`swiftpy/validation/rules/unique.py`, `swiftpy/validation/rules/registry.py`):**
14
+ - Added fluent `UniqueRule.ignore(ignore_id, id_column=None)` and support for `Model`, `AuthUser`, and `CurrentUser` instances passed as `ignore_id` (automatically inferring `__primary_key__` and primary key value), while explicitly rejecting boolean `ignore_id` values (`TypeError`).
15
+ - Normalized `"NULL"`, `"null"`, `"None"`, and empty `""` `ignore_id` tokens in `_parse_unique` without shifting `id_column` positionally (e.g. `unique:users,email,NULL,user_id`), and rejected empty 4th `id_column` tokens (`unique:users,email,1,`) or extra trailing positional tokens (`unique:users,email,1,id,extra`) with `ConfigurationError`.
16
+ - Optimized `UniqueRule._fetchval_unique` to execute a single query on the common integer-PK update path (`f"unique:users,email,{id}"`) by binding canonical integer strings as `int` first and falling back to `str`/`int` coercion on `(asyncpg.DataError, TypeError)`.
17
+ - **Strict Default `auth().user()` / `Auth.user()` & Explicit `user_or_fail()` (`swiftpy/auth/auth_manager.py`):**
18
+ - Enforced strict runtime behavior matching `@overload` static types on `AuthProxy.user()` and `Auth.user()`: default `auth().user()` and `Auth.user()` (`nullable: Literal[False] = False -> AuthUser`) raise `AuthenticationError("Unauthenticated.")` when unauthenticated or when the active guard mismatches the requested guard, while `nullable=True` (`-> AuthUser | None`) returns `None`.
19
+ - Added `auth().user_or_fail() -> AuthUser` and `Auth.user_or_fail() -> AuthUser` for explicit fail-closed access.
20
+ - Hardened `AuthUser.id` custom `__primary_key__` fallback, `AuthProxy._resolve_user` rejection of empty or all-sensitive dicts, model-aware string PK preservation in `_build_auth_user_from_dict` (`_expects_int_pk`), `is_sensitive_key(...)` stripping across dict/model hydration, and `_is_logged_out()` enforcement in `_adopt_request_state_user()`, `current_user_model()`, `current_user()`, and `AuthProxy._resolve_user()`.
21
+
22
+ ### Fixed
23
+ - **Static Typing (`Pyrefly[missing-attribute]` / `mypy --strict`) & CI Typing Gates (`swiftpy/auth/auth_manager.py`, `swiftpy/http/request.py`, `swiftpy/validation/validator.py`, `swiftpy/__init__.py`, `.github/workflows/ci.yml`):**
24
+ - Eliminated `Object of class NoneType has no attribute id` errors on `auth().user().id`, `Auth.user().id`, and legacy facade calls with aligned `@overload` contracts and runtime enforcement, backed by dedicated `tests/typing/test_auth_typing.py` and `tests/typing/test_validation_typing.py` CI checks in both `mypy --strict` and `pyrefly check` (including installed-wheel typing smoke checks).
25
+ - Widened `Request.validate`, `validate()`, and `Validator.__init__` annotations to accept `Mapping[str, Any]` schemas and `Mapping[str, str] | None` custom error message mappings.
26
+ - Updated `swiftpy/__init__.py` `TYPE_CHECKING`, `_EXPORT_MAP`, and `__all__` entries for `AuthProxy`, `AuthUser`, `AuthenticationError`, `current_user_model`, and `set_user_model`.
27
+ - Broke the `swiftpy.http.request` <-> `swiftpy.validation` / `swiftpy.schemas.base` circular import chain cleanly at top-of-file imports (`_is_swiftpy_request` TypeGuard marker).
28
+
29
+ ### Changed
30
+ - 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), [Validation & Form Requests](documentations/2026-11-15-validation-and-form-requests.md), [Authentication & Security](documentations/2026-11-15-authentication-and-security.md), and [README.md](README.md) to `0.4.1`.
31
+
7
32
  ## [0.4.0] - 2026-11-27
8
33
 
9
34
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: swiftpy-framework
3
- Version: 0.4.0
3
+ Version: 0.4.1
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
@@ -99,6 +99,7 @@ All core architectural, storage, AI, and security hardening phases have been com
99
99
  | **Release v0.3.8: Zero-Boilerplate ORM & Relationship Static Typing** | Source-level `Relation[T]` / `RelationshipQueryBuilder[T]` / `SingleRelationshipQueryBuilder[T]` type propagation (`await v.relation` & full query chains), zero-ceremony `model = YourModel` repositories, covariant `Mapping` / non-string `Sequence` & `ModelQueryBuilder` subqueries, and `BaseSchema` parity on `ModelQueryBuilder.update`, `first_or_create`, `update_or_create`, and relationship `.create()`/`.update()` | ✅ Completed |
100
100
  | **Release v0.3.9: Pyrefly/Mypy Scaffolding Hardening & `ClassVar`-Free Model Guidance** | Removed global `ignore_missing_imports = true` from `swiftpy new` `[tool.mypy]` (replaced with scoped `[[tool.mypy.overrides]]` so Pyrefly surfaces `[missing-import]` instead of silent `Model: Unknown` / `[no-any-return-implicit]`), expanded `RUF012` per-file ignores across `app/models/`, `app/**/models/`, and `tests/`, added `typing.assert_type` + `py.typed` wheel-packaging regression tests, and documented host IDE setup & `ClassVar`-free model metadata | ✅ Completed |
101
101
  | **Release v0.4.0: Migration Alteration/Introspection Helpers & Model Factories** | `Schema.has_columns()`, `Schema.has_index()`, `Blueprint.binary()` (`BYTEA`), `Blueprint.drop_column()` sequence support, declarative `ColumnDefinition.change()` + `.using(expr)` PostgreSQL `ALTER COLUMN` compiler, typed `Factory[T]` / `FactoryBatch[T]` / `Fake` / `Sequence` & `Model.factory()` with `.state()`, `.sequence()`, `.has()` / `.has_<rel>()`, `.has_attached()`, `.for_()`, plus `swiftpy make:factory` & `make:model -f` | ✅ Completed |
102
+ | **Release v0.4.1: Inline `request.validate()`, Unique Update Ergonomics & Strict `AuthUser` Contract** | Added `await request.validate(...)` and `request.route()` / `FormRequest.route()` for `f"required\|email\|unique:users,email,{id}"` flows, hardened `UniqueRule` (`NULL`/`None` tokens, `Model`/`AuthUser` `.ignore()`, bidirectional int/str PK coercion), enforced strict `auth().user()` / `Auth.user()` (`-> AuthUser`, raising `AuthenticationError` unless `nullable=True` is passed, plus `user_or_fail()`) eliminating `Pyrefly[missing-attribute]`, fixed top-level `swiftpy` `AuthUser`/`AuthProxy` exports, and enforced Pyrefly + `mypy --strict` CI typing gates | ✅ Completed |
102
103
 
103
104
  *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.*
104
105
 
@@ -69,6 +69,7 @@ All core architectural, storage, AI, and security hardening phases have been com
69
69
  | **Release v0.3.8: Zero-Boilerplate ORM & Relationship Static Typing** | Source-level `Relation[T]` / `RelationshipQueryBuilder[T]` / `SingleRelationshipQueryBuilder[T]` type propagation (`await v.relation` & full query chains), zero-ceremony `model = YourModel` repositories, covariant `Mapping` / non-string `Sequence` & `ModelQueryBuilder` subqueries, and `BaseSchema` parity on `ModelQueryBuilder.update`, `first_or_create`, `update_or_create`, and relationship `.create()`/`.update()` | ✅ Completed |
70
70
  | **Release v0.3.9: Pyrefly/Mypy Scaffolding Hardening & `ClassVar`-Free Model Guidance** | Removed global `ignore_missing_imports = true` from `swiftpy new` `[tool.mypy]` (replaced with scoped `[[tool.mypy.overrides]]` so Pyrefly surfaces `[missing-import]` instead of silent `Model: Unknown` / `[no-any-return-implicit]`), expanded `RUF012` per-file ignores across `app/models/`, `app/**/models/`, and `tests/`, added `typing.assert_type` + `py.typed` wheel-packaging regression tests, and documented host IDE setup & `ClassVar`-free model metadata | ✅ Completed |
71
71
  | **Release v0.4.0: Migration Alteration/Introspection Helpers & Model Factories** | `Schema.has_columns()`, `Schema.has_index()`, `Blueprint.binary()` (`BYTEA`), `Blueprint.drop_column()` sequence support, declarative `ColumnDefinition.change()` + `.using(expr)` PostgreSQL `ALTER COLUMN` compiler, typed `Factory[T]` / `FactoryBatch[T]` / `Fake` / `Sequence` & `Model.factory()` with `.state()`, `.sequence()`, `.has()` / `.has_<rel>()`, `.has_attached()`, `.for_()`, plus `swiftpy make:factory` & `make:model -f` | ✅ Completed |
72
+ | **Release v0.4.1: Inline `request.validate()`, Unique Update Ergonomics & Strict `AuthUser` Contract** | Added `await request.validate(...)` and `request.route()` / `FormRequest.route()` for `f"required\|email\|unique:users,email,{id}"` flows, hardened `UniqueRule` (`NULL`/`None` tokens, `Model`/`AuthUser` `.ignore()`, bidirectional int/str PK coercion), enforced strict `auth().user()` / `Auth.user()` (`-> AuthUser`, raising `AuthenticationError` unless `nullable=True` is passed, plus `user_or_fail()`) eliminating `Pyrefly[missing-attribute]`, fixed top-level `swiftpy` `AuthUser`/`AuthProxy` exports, and enforced Pyrefly + `mypy --strict` CI typing gates | ✅ Completed |
72
73
 
73
74
  *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.*
74
75
 
@@ -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.0, setuptools, & mypy strict settings
173
+ └── pyproject.toml # Configured with swiftpy-framework>=0.4.1, 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.0",
330
+ "swiftpy-framework>=0.4.1",
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.0"` on your host machine so your IDE and Pyrefly pick up any new APIs or type annotations from the upgraded release.
350
+ - **Keep your host IDE in sync:** Also run `python -m pip install -U "swiftpy-framework>=0.4.1"` 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.0"
361
+ python -m pip install --upgrade "swiftpy-framework>=0.4.1"
362
362
  swiftpy --version
363
363
  ```
364
364
 
@@ -313,7 +313,7 @@ async def login(payload: LoginRequest, jwt: JWTIssuer, current: CurrentUser) ->
313
313
 
314
314
  **Routes without `JWTGuard`.** By default only guards authenticate. Set `AUTH_PASSIVE_RESOLUTION=true` (`auth.passive_resolution`, default guard `jwt`) to let routes without a guard resolve a valid `Authorization: Bearer <access_token>` into `CurrentUser` / `auth()`. Invalid, expired or revoked tokens are ignored and the request stays a guest; use `JWTGuard` when you need a `401`.
315
315
 
316
- > `CurrentUser.id` returns the raw token `sub` (a string) when no model is bound, while `auth().id()` coerces it to the User model's primary key type. Compare with `str(...)` or use `auth().id()` consistently.
316
+ > `CurrentUser.id` returns the raw token `sub` (a string) when no model is bound, while `auth().id()` coerces it to the User model's primary key type. Compare with `str(...)` or use `auth().id()` consistently. `auth().user()` and `Auth.user()` return `AuthUser` strictly and raise `AuthenticationError` (`HTTP 401`) if unauthenticated (or if the active guard does not match), matching their static `AuthUser` return type in Pyrefly and `mypy --strict` so expressions like `auth().user().id` or `Auth.user().email` work directly without `NoneType` errors; pass `nullable=True` (`auth().user(nullable=True) -> AuthUser | None`) on unauthenticated/optional routes where `None` is expected, or call `auth().user_or_fail()` / `Auth.user_or_fail()` for explicit strict intent.
317
317
 
318
318
  For token refresh endpoints, inject `jwt: JWTIssuer` **or** invoke `await JWTIssuer.refresh_token_pair(...)` directly on `JWTIssuer` (both forms automatically resolve the active application's configuration and `TokenBlacklist`). Rather than calling `issue_token_pair()` manually, `refresh_token_pair()` verifies the incoming token with `expected_type="refresh"`, checks `TokenBlacklist`, revokes the previous refresh token's `jti` automatically (`rotate=True` by default) so reused refresh tokens fail with `TokenRevokedError` (`401`), and issues a fresh access/refresh pair:
319
319
 
@@ -166,9 +166,31 @@ If a client submits extra unvalidated keys such as `{"name": "Jane", "is_admin":
166
166
 
167
167
  ---
168
168
 
169
- ## Standalone Validation with `validate()` & `Validator`
169
+ ## Inline Validation with `await request.validate()` & Standalone `validate()`
170
170
 
171
- Use `await validate(data_or_request, schema, ...)` (or `Validator(data, schema, ...).validate()`) in services, WebSocket handlers, background jobs, or routes. Passing a `Request` instance directly reads JSON, form, or query input automatically based on HTTP method and `Content-Type`:
171
+ For inline controller and route validation, call `await request.validate(schema, messages=None, *, stop_on_first_error=False)`. It validates query, JSON, or form input automatically, raises `ValidationException` (`HTTP 422`) on failure, and returns `ValidatedData` (supporting both dict indexing and dot access):
172
+
173
+ ```python
174
+ from __future__ import annotations
175
+
176
+ from swiftpy.http.request import Request
177
+ from swiftpy.http.response import Response, json_response
178
+ from swiftpy.http.router import Router
179
+
180
+ router = Router()
181
+
182
+
183
+ @router.put("/users/{id}")
184
+ async def update_user(request: Request, id: int) -> Response:
185
+ validated = await request.validate({
186
+ "email": f"required|email|unique:users,email,{id}",
187
+ })
188
+ return json_response({"id": id, "email": validated.email})
189
+ ```
190
+
191
+ You can also read matched route path parameters via `request.route("id")` (or `self.route("id")` inside a dynamic `FormRequest.rules()` method).
192
+
193
+ Or use `await validate(data_or_request, schema, ...)` (`Validator(data, schema, ...).validate()`) when you want a `ValidationResult` instead of raising immediately in services, WebSocket handlers, or background jobs:
172
194
 
173
195
  ```python
174
196
  from __future__ import annotations
@@ -348,20 +370,22 @@ def build_update_user_rules(user_id: int) -> dict[str, Any]:
348
370
  }
349
371
  ```
350
372
 
351
- ### Rule Arguments in String Syntax
373
+ ### Rule Arguments in String Syntax & Fluent `.ignore()`
352
374
 
353
375
  - **`exists:<table>,<column>`**: Passes if at least one matching row exists.
354
376
  - **`unique:<table>,<column>[,<ignore_id>][,<id_column>][,ci]`**: Passes if no matching row exists:
355
377
  - `unique:users,email` — exact match against `users.email`.
356
- - `unique:users,email,42` — ignore the row where `id = 42`.
357
- - `unique:users,email,42,user_uuid` — ignore the row where `user_uuid = 42`.
378
+ - `f"unique:users,email,{id}"` — ignore the row where `id = id` (stringified integer, UUID, or string primary keys are coerced cleanly; `"NULL"`, `"None"`, or empty strings keep `ignore_id=None` without shifting `id_column`).
379
+ - `unique:users,email,42,user_uuid` or `unique:users,email,NULL,user_uuid` — use custom ID column `user_uuid`.
358
380
  - `unique:users,email,ci` or `unique:users,email,42,ci` — case-insensitive match via `LOWER("email") = LOWER($1)`.
381
+ - `unique("users", "email").ignore(user_or_id, id_column=...)` — fluent helper also accepting a `Model` (auto-inferring `__primary_key__`) or `AuthUser` / `CurrentUser` instance.
359
382
 
360
383
  ### Connection Resolution, Transactions & Safety
361
384
 
362
385
  - **Connection pool resolution:** Both `UniqueRule` and `ExistsRule` resolve `DatabasePool` automatically from the application `Container` (or accept an explicit `pool=` argument).
363
386
  - **Transaction & SAVEPOINT safety:** When executed inside `async with db.transaction():`, both rules reuse the active transaction connection (seeing uncommitted writes in the same transaction) and wrap each check in a sub-transaction (`SAVEPOINT`) so a database type mismatch (such as passing `"abc"` for an integer column) returns a clean `422` validation failure without poisoning the outer transaction.
364
387
  - **SQL injection defense:** Table and column identifiers are checked by `validate_identifier()` at rule construction time, rejecting unsafe identifiers upfront with `ValueError`, and field values are always bound as `$1` / `$2` parameters.
388
+ - **Database `UNIQUE` constraints remain mandatory under concurrency:** Application-level `unique` checks query PostgreSQL before inserting or updating, so two concurrent requests can still pass pre-write validation before either commits. Always declare a real database `UNIQUE` constraint (such as `table.string("email").unique()` in migrations) as your final integrity guarantee.
365
389
  - **Empty values:** When a value is `None` or `""`, `ExistsRule` and `UniqueRule` return `True` — always pair them with `required` when the field cannot be omitted or blank.
366
390
 
367
391
  ---
@@ -10,7 +10,7 @@ dev = [
10
10
 
11
11
  [project]
12
12
  name = "swiftpy-framework"
13
- version = "0.4.0"
13
+ version = "0.4.1"
14
14
  description = "SwiftPY is a new generation async-first Python framework purpose built for the modern API and AI economy."
15
15
  requires-python = ">=3.12"
16
16
  dependencies = [
@@ -20,7 +20,10 @@ if TYPE_CHECKING:
20
20
  from swiftpy.auth import (
21
21
  ApiKeyGuard,
22
22
  Auth,
23
+ AuthenticationError,
23
24
  AuthManager,
25
+ AuthProxy,
26
+ AuthUser,
24
27
  Callback,
25
28
  CurrentUser,
26
29
  JWTGuard,
@@ -28,9 +31,11 @@ if TYPE_CHECKING:
28
31
  LoginThrottle,
29
32
  TokenBlacklist,
30
33
  current_user,
34
+ current_user_model,
31
35
  hash_api_key,
32
36
  require_api_key,
33
37
  require_jwt,
38
+ set_user_model,
34
39
  verify_api_key_hash,
35
40
  )
36
41
  from swiftpy.cache import (
@@ -243,7 +248,9 @@ _EXPORT_MAP: dict[str, tuple[str, str]] = {
243
248
  'Attachment': ('swiftpy.mail', 'Attachment'),
244
249
  'Auth': ('swiftpy.auth', 'Auth'),
245
250
  'AuthManager': ('swiftpy.auth', 'AuthManager'),
246
- 'AuthUser': ('swiftpy.auth_manager', 'AuthUser'),
251
+ 'AuthProxy': ('swiftpy.auth', 'AuthProxy'),
252
+ 'AuthUser': ('swiftpy.auth', 'AuthUser'),
253
+ 'AuthenticationError': ('swiftpy.auth', 'AuthenticationError'),
247
254
  'BadRequestError': ('swiftpy.core.exceptions', 'BadRequestError'),
248
255
  'BaseAgent': ('swiftpy.ai.agents', 'BaseAgent'),
249
256
  'BaseSchema': ('swiftpy.schemas', 'BaseSchema'),
@@ -481,7 +488,9 @@ __all__ = [
481
488
  'Attachment',
482
489
  'Auth',
483
490
  'AuthManager',
491
+ 'AuthProxy',
484
492
  'AuthUser',
493
+ 'AuthenticationError',
485
494
  'BadRequestError',
486
495
  'BaseAgent',
487
496
  'BaseSchema',
@@ -10,7 +10,7 @@ import time
10
10
  import types
11
11
  import weakref
12
12
  from collections.abc import Callable, Iterator, Mapping
13
- from typing import Annotated, Any, Union, get_args, get_origin
13
+ from typing import Annotated, Any, Literal, Union, get_args, get_origin, overload
14
14
 
15
15
  from swiftpy.auth.api_key_guard import ApiKeyGuard
16
16
  from swiftpy.auth.events import (
@@ -276,7 +276,17 @@ class AuthUser(dict[str, Any]):
276
276
  def id(self) -> Any:
277
277
  """Return the user primary key or token subject identifier."""
278
278
  val = self.get("id")
279
- return val if val is not None else self.get("sub")
279
+ if val is not None:
280
+ return val
281
+ if self._model is not None:
282
+ pk_attr = getattr(self._model, "__primary_key__", "id")
283
+ pk_val = self.get(pk_attr)
284
+ if pk_val is not None:
285
+ return pk_val
286
+ model_pk = getattr(self._model, pk_attr, None)
287
+ if model_pk is not None:
288
+ return model_pk
289
+ return self.get("sub")
280
290
 
281
291
  @property
282
292
  def email(self) -> Any:
@@ -317,6 +327,18 @@ class AuthUser(dict[str, Any]):
317
327
  return f"AuthUser({super().__repr__()})"
318
328
 
319
329
 
330
+ def _is_logged_out() -> bool:
331
+ """Return True if the current task Context or active Request state has been logged out."""
332
+ if Context.get(CONTEXT_LOGGED_OUT_KEY):
333
+ return True
334
+ req = Context.get("request")
335
+ return bool(
336
+ isinstance(req, Request)
337
+ and isinstance(req.state, dict)
338
+ and req.state.get(CONTEXT_LOGGED_OUT_KEY)
339
+ )
340
+
341
+
320
342
  def _adopt_request_state_user() -> Any:
321
343
  """
322
344
  Adopt a user already stored in `request.state` or `Context['auth.user']` (for example
@@ -324,16 +346,10 @@ def _adopt_request_state_user() -> Any:
324
346
  credentials: authentication stays with guards (`JWTGuard`, `require_jwt`), which also
325
347
  enforce token revocation.
326
348
  """
327
- if Context.get(CONTEXT_LOGGED_OUT_KEY):
349
+ if _is_logged_out():
328
350
  return None
329
351
 
330
352
  req = Context.get("request")
331
- if (
332
- isinstance(req, Request)
333
- and isinstance(req.state, dict)
334
- and req.state.get(CONTEXT_LOGGED_OUT_KEY)
335
- ):
336
- return None
337
353
 
338
354
  existing = Context.get(_CONTEXT_USER_KEY)
339
355
  if existing is not None:
@@ -363,26 +379,36 @@ def _build_auth_user_from_dict(raw: dict[str, Any]) -> AuthUser:
363
379
  data: dict[str, Any] = {}
364
380
  defaults = getattr(user_cls, "__field_defaults__", {})
365
381
  factories = getattr(user_cls, "__field_factories__", {})
382
+ pk_name = str(getattr(user_cls, "__primary_key__", "id"))
366
383
 
367
384
  for field_name, field_type in user_cls.__fields__.items():
368
- if field_name in hidden_fields:
385
+ if field_name in hidden_fields or is_sensitive_key(field_name):
369
386
  continue
370
387
  if field_name in raw:
371
388
  val = raw[field_name]
372
- if field_type in (int, "int") or (field_name == "id" and isinstance(val, str) and val.isdigit()):
389
+ if field_type in (int, "int") or (
390
+ field_name == pk_name
391
+ and _expects_int_pk(field_type)
392
+ and isinstance(val, str)
393
+ and val.isdigit()
394
+ ):
373
395
  try:
374
396
  val = int(val)
375
397
  except (ValueError, TypeError):
376
398
  pass
377
399
  data[field_name] = val
378
- elif field_name == "id" and "sub" in raw:
400
+ elif field_name == pk_name and "sub" in raw:
379
401
  val = raw["sub"]
380
- if field_type in (int, "int") or (isinstance(val, str) and val.isdigit()):
402
+ if field_type in (int, "int") or (
403
+ _expects_int_pk(field_type)
404
+ and isinstance(val, str)
405
+ and val.isdigit()
406
+ ):
381
407
  try:
382
408
  val = int(val)
383
409
  except (ValueError, TypeError):
384
410
  pass
385
- data["id"] = val
411
+ data[pk_name] = val
386
412
  elif field_name in factories:
387
413
  data[field_name] = factories[field_name]()
388
414
  elif field_name in defaults:
@@ -391,12 +417,20 @@ def _build_auth_user_from_dict(raw: dict[str, Any]) -> AuthUser:
391
417
  data[field_name] = None
392
418
 
393
419
  for k, v in raw.items():
394
- if k not in hidden_fields and k not in _SENSITIVE_KEYS and k not in data:
420
+ if (
421
+ k not in hidden_fields
422
+ and not is_sensitive_key(k)
423
+ and k not in data
424
+ ):
395
425
  data[k] = v
396
426
 
397
427
  return AuthUser(data, model=None)
398
428
 
399
- clean = {k: v for k, v in raw.items() if k not in _SENSITIVE_KEYS}
429
+ clean = {
430
+ k: v
431
+ for k, v in raw.items()
432
+ if not is_sensitive_key(k)
433
+ }
400
434
  if "id" not in clean and "sub" in clean:
401
435
  sub_val = clean["sub"]
402
436
  if isinstance(sub_val, str) and sub_val.isdigit():
@@ -409,6 +443,7 @@ def _build_auth_user_from_dict(raw: dict[str, Any]) -> AuthUser:
409
443
 
410
444
 
411
445
  def _build_auth_user_from_model(model: Any) -> AuthUser:
446
+ data: dict[str, Any]
412
447
  if hasattr(model, "to_dict") and callable(model.to_dict):
413
448
  data = model.to_dict()
414
449
  elif isinstance(model, dict):
@@ -421,14 +456,19 @@ def _build_auth_user_from_model(model: Any) -> AuthUser:
421
456
  fields_config = getattr(model, "__fields__", {})
422
457
  hidden_fields = set(getattr(model, "__hidden__", ()) or ())
423
458
  for f in fields_config:
424
- if f not in hidden_fields and f not in data:
459
+ if f not in hidden_fields and not is_sensitive_key(str(f)) and f not in data:
425
460
  data[f] = getattr(model, f, None)
426
461
 
427
462
  ctx_payload = Context.get(_CONTEXT_USER_KEY)
428
463
  if isinstance(ctx_payload, dict):
429
464
  for k, v in ctx_payload.items():
430
- if k not in hidden_fields and k not in _SENSITIVE_KEYS and k not in data:
431
- data[k] = v
465
+ k_str = str(k)
466
+ if (
467
+ k_str not in hidden_fields
468
+ and not is_sensitive_key(k_str)
469
+ and k_str not in data
470
+ ):
471
+ data[k_str] = v
432
472
 
433
473
  return AuthUser(data, model=model_inst)
434
474
 
@@ -469,6 +509,8 @@ def current_user_model() -> Any | None:
469
509
  Retrieve the authenticated ORM Model instance for the current request task.
470
510
  Returns None if no model has been stored via set_user_model().
471
511
  """
512
+ if _is_logged_out():
513
+ return None
472
514
  model = Context.get(_CONTEXT_USER_MODEL_KEY)
473
515
  if model is not None:
474
516
  return model
@@ -487,14 +529,9 @@ class AuthProxy:
487
529
  def __init__(self, guard: str | None = None) -> None:
488
530
  self._guard = guard
489
531
 
490
- def user(self) -> AuthUser | None:
491
- """
492
- Return the authenticated user for the current request task.
493
-
494
- Returns an `AuthUser` containing all declared fields of the User model
495
- with all `__hidden__` fields excluded. Returns `None` if unauthenticated
496
- or if the active guard does not match the requested guard.
497
- """
532
+ def _resolve_user(self) -> AuthUser | None:
533
+ if _is_logged_out():
534
+ return None
498
535
  if Context.get(_CONTEXT_USER_KEY) is None and Context.get(_CONTEXT_USER_MODEL_KEY) is None:
499
536
  _adopt_request_state_user()
500
537
 
@@ -519,13 +556,47 @@ class AuthProxy:
519
556
  return _build_auth_user_from_model(raw_user)
520
557
 
521
558
  if isinstance(raw_user, dict):
522
- return _build_auth_user_from_dict(raw_user)
559
+ if not any(not is_sensitive_key(str(k)) for k in raw_user):
560
+ return None
561
+ built = _build_auth_user_from_dict(raw_user)
562
+ return built if built.is_authenticated else None
523
563
 
524
564
  return None
525
565
 
566
+ @overload
567
+ def user(self, *, nullable: Literal[False] = False) -> AuthUser: ...
568
+
569
+ @overload
570
+ def user(self, *, nullable: Literal[True]) -> AuthUser | None: ...
571
+
572
+ def user(self, *, nullable: bool = False) -> AuthUser | None:
573
+ """
574
+ Return the authenticated user for the current request task.
575
+
576
+ Returns an `AuthUser` containing all declared fields of the User model
577
+ with all `__hidden__` fields excluded. When unauthenticated (or when
578
+ the active guard does not match the requested guard), raises
579
+ `AuthenticationError` unless `nullable=True` is passed (which returns
580
+ `None`). Equivalent strict access is also available via `user_or_fail()`.
581
+ """
582
+ resolved = self._resolve_user()
583
+ if resolved is None and not nullable:
584
+ raise AuthenticationError("Unauthenticated.")
585
+ return resolved
586
+
587
+ def user_or_fail(self) -> AuthUser:
588
+ """
589
+ Return the authenticated user for the current request task, raising
590
+ `AuthenticationError` if unauthenticated.
591
+ """
592
+ resolved = self._resolve_user()
593
+ if resolved is None:
594
+ raise AuthenticationError("Unauthenticated.")
595
+ return resolved
596
+
526
597
  def check(self) -> bool:
527
598
  """Return True if the current request task has an authenticated user."""
528
- return self.user() is not None
599
+ return self._resolve_user() is not None
529
600
 
530
601
  def guest(self) -> bool:
531
602
  """Return True if the current request task is unauthenticated."""
@@ -533,7 +604,7 @@ class AuthProxy:
533
604
 
534
605
  def id(self) -> Any | None:
535
606
  """Return the primary key identifier of the authenticated user, or None."""
536
- u = self.user()
607
+ u = self._resolve_user()
537
608
  return u.id if u is not None else None
538
609
 
539
610
  async def authenticate(self, request: Request | None = None) -> Any:
@@ -770,7 +841,7 @@ class AuthProxy:
770
841
 
771
842
  safe_creds = _sanitize_credentials_for_event(creds_map)
772
843
  await dispatch_auth_event(
773
- Attempting(guard=guard_name, credentials=safe_creds, remember=bool(remember))
844
+ Attempting(guard=guard_name, credentials=safe_creds, remember=remember)
774
845
  )
775
846
 
776
847
  matched, candidate = await self._verify_credentials_candidate(creds_map)
@@ -909,7 +980,7 @@ class AuthProxy:
909
980
 
910
981
  await dispatch_auth_event(Authenticated(guard=guard_name, user=user))
911
982
  await dispatch_auth_event(
912
- Login(guard=guard_name, user=user, remember=bool(remember))
983
+ Login(guard=guard_name, user=user, remember=remember)
913
984
  )
914
985
  return user
915
986
 
@@ -1379,6 +1450,8 @@ def current_user() -> Any:
1379
1450
  Retrieve the authenticated user payload/record for the current request task.
1380
1451
  Returns None if unauthenticated.
1381
1452
  """
1453
+ if _is_logged_out():
1454
+ return None
1382
1455
  user = Context.get("__swiftpy_current_user__")
1383
1456
  if user is None:
1384
1457
  user = _adopt_request_state_user()
@@ -1588,10 +1661,29 @@ class Auth:
1588
1661
  """Return an AuthProxy bound to ``name`` (or the default guard)."""
1589
1662
  return AuthProxy(guard=name)
1590
1663
 
1664
+ @overload
1665
+ @staticmethod
1666
+ def user(*, nullable: Literal[False] = False) -> AuthUser: ...
1667
+
1668
+ @overload
1669
+ @staticmethod
1670
+ def user(*, nullable: Literal[True]) -> AuthUser | None: ...
1671
+
1672
+ @staticmethod
1673
+ def user(*, nullable: bool = False) -> AuthUser | None:
1674
+ """
1675
+ Return the authenticated user for the current task, raising
1676
+ `AuthenticationError` if unauthenticated unless `nullable=True`.
1677
+ """
1678
+ resolved = AuthProxy()._resolve_user()
1679
+ if resolved is None and not nullable:
1680
+ raise AuthenticationError("Unauthenticated.")
1681
+ return resolved
1682
+
1591
1683
  @staticmethod
1592
- def user() -> AuthUser | None:
1593
- """Return the authenticated user for the current task, or None."""
1594
- return AuthProxy().user()
1684
+ def user_or_fail() -> AuthUser:
1685
+ """Return the authenticated user for the current task, raising AuthenticationError if unauthenticated."""
1686
+ return AuthProxy().user_or_fail()
1595
1687
 
1596
1688
  @staticmethod
1597
1689
  def check() -> bool:
@@ -1682,7 +1682,7 @@ version = "0.1.0"
1682
1682
  description = "A SwiftPY web application"
1683
1683
  requires-python = ">=3.12"
1684
1684
  dependencies = [
1685
- "swiftpy-framework>=0.4.0",
1685
+ "swiftpy-framework>=0.4.1",
1686
1686
  "uvicorn[standard]>=0.52.4",
1687
1687
  "asyncpg>=0.30.0",
1688
1688
  "redis>=8.1.0",
@@ -1652,6 +1652,8 @@ class Application:
1652
1652
  if route is None:
1653
1653
  return not_found()
1654
1654
 
1655
+ request.path_params = dict(params)
1656
+
1655
1657
  if route.max_body_size is not None:
1656
1658
  request.max_body_size = route.max_body_size
1657
1659
  if route.max_content_length is not None:
@@ -1739,6 +1741,7 @@ class Application:
1739
1741
  max_json_depth=self.max_json_depth,
1740
1742
  config=self.config,
1741
1743
  )
1744
+ handshake_request.path_params = dict(params)
1742
1745
  Context.set("request", handshake_request)
1743
1746
  all_middleware = list(self._middleware) + list(route.middleware)
1744
1747
  if all_middleware: