swiftpy-framework 0.4.2__tar.gz → 0.4.4__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 (560) hide show
  1. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/.github/workflows/ci.yml +53 -3
  2. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/CHANGELOG.md +27 -0
  3. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/PKG-INFO +4 -2
  4. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/README.md +3 -1
  5. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-14-installation-quick-start.md +4 -4
  6. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-core-application-di-and-config.md +1 -1
  7. swiftpy_framework-0.4.4/documentations/2026-11-15-helpers-and-support-utilities.md +380 -0
  8. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/pyproject.toml +1 -1
  9. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/__init__.py +6 -0
  10. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/new.py +1 -1
  11. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/helpers/__init__.py +4 -1
  12. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/helpers/helper.py +4 -0
  13. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/support/__init__.py +4 -0
  14. swiftpy_framework-0.4.4/swiftpy/support/arr.py +2839 -0
  15. swiftpy_framework-0.4.4/swiftpy/support/number.py +1211 -0
  16. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_phase9_cli_remediation.py +1 -1
  17. swiftpy_framework-0.4.4/tests/support/test_arr.py +1388 -0
  18. swiftpy_framework-0.4.4/tests/support/test_number.py +684 -0
  19. swiftpy_framework-0.4.4/tests/typing/test_v043_arr_helpers_typing.py +214 -0
  20. swiftpy_framework-0.4.4/tests/typing/test_v044_number_helpers_typing.py +77 -0
  21. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/uv.lock +1 -1
  22. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/.dockerignore +0 -0
  23. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/.env.example +0 -0
  24. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/.github/workflows/publish.yml +0 -0
  25. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/.gitignore +0 -0
  26. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/CONTRIBUTING.md +0 -0
  27. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/Dockerfile +0 -0
  28. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/LICENSE +0 -0
  29. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/__init__.py +0 -0
  30. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/ai/agents/assistant_agent.py +0 -0
  31. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/ai/observers/.gitkeep +0 -0
  32. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/ai/pipelines/.gitkeep +0 -0
  33. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/ai/providers/.gitkeep +0 -0
  34. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/ai/tools/system_status_tool.py +0 -0
  35. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/ai/vectorstores/.gitkeep +0 -0
  36. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/events/user_registered.py +0 -0
  37. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/controllers/user_controller.py +0 -0
  38. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/handler/exceptions.py +0 -0
  39. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/middleware/__init__.py +0 -0
  40. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/middleware/admin_middleware.py +0 -0
  41. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/middleware/auth_middleware.py +0 -0
  42. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/middleware/test_middleware.py +0 -0
  43. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/requests/create_user_request.py +0 -0
  44. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/http/resources/user_resource.py +0 -0
  45. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/jobs/send_notification_job.py +0 -0
  46. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/listeners/send_welcome_notification.py +0 -0
  47. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/mail/welcome_email.py +0 -0
  48. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/models/profile.py +0 -0
  49. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/models/user.py +0 -0
  50. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/app_service_provider.py +0 -0
  51. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/auth_service_provider.py +0 -0
  52. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/cache_service_provider.py +0 -0
  53. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/database_service_provider.py +0 -0
  54. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/event_service_provider.py +0 -0
  55. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/filesystem_service_provider.py +0 -0
  56. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/mail_service_provider.py +0 -0
  57. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/providers/queue_service_provider.py +0 -0
  58. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/repositories/user_repository.py +0 -0
  59. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/schemas/user_schema.py +0 -0
  60. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/app/services/user_service.py +0 -0
  61. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/bootstrap/cache/.gitkeep +0 -0
  62. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/__init__.py +0 -0
  63. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/ai.py +0 -0
  64. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/app.py +0 -0
  65. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/auth.py +0 -0
  66. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/cache.py +0 -0
  67. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/cors.py +0 -0
  68. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/database.py +0 -0
  69. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/events.py +0 -0
  70. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/filesystems.py +0 -0
  71. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/http.py +0 -0
  72. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/logging.py +0 -0
  73. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/mail.py +0 -0
  74. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/queue.py +0 -0
  75. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/config/schedule.py +0 -0
  76. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/database/__init__.py +0 -0
  77. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
  78. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/database/migrations/2026_11_26_180006_create_profiles_table.py +0 -0
  79. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/database/migrations/__init__.py +0 -0
  80. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/database/seeders/database_seeder.py +0 -0
  81. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/docker-compose.yml +0 -0
  82. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-ai-subsystem.md +0 -0
  83. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-authentication-and-security.md +0 -0
  84. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-cache-events-and-queues.md +0 -0
  85. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-database-query-builder-and-migrations.md +0 -0
  86. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-filesystem-storage-and-mail.md +0 -0
  87. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
  88. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-orm-models-and-relationships.md +0 -0
  89. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-validation-and-form-requests.md +0 -0
  90. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-15-websockets-and-admin.md +0 -0
  91. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-19-application-schemas.md +0 -0
  92. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-19-cli-and-testing.md +0 -0
  93. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-19-database-schema-and-blueprint.md +0 -0
  94. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-20-error-handling.md +0 -0
  95. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-20-logging.md +0 -0
  96. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-20-request-and-responses.md +0 -0
  97. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-21-application-architecture-and-project-structure.md +0 -0
  98. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-21-cors.md +0 -0
  99. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/documentations/2026-11-22-task-scheduling.md +0 -0
  100. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/main.py +0 -0
  101. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/prompts/classify.py +0 -0
  102. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/prompts/summarise.py +0 -0
  103. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/red-black.png +0 -0
  104. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/routes/__init__.py +0 -0
  105. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/routes/api.py +0 -0
  106. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/.gitignore +0 -0
  107. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/__init__.py +0 -0
  108. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/_deterministic.py +0 -0
  109. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/_fake.py +0 -0
  110. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/agents/__init__.py +0 -0
  111. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/agents/base_agent.py +0 -0
  112. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/agents/memory.py +0 -0
  113. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/client.py +0 -0
  114. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/conversation.py +0 -0
  115. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/embeddings.py +0 -0
  116. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/exceptions.py +0 -0
  117. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/history_strategies.py +0 -0
  118. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/middleware.py +0 -0
  119. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/observability/__init__.py +0 -0
  120. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/observability/drivers.py +0 -0
  121. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/observability/observer.py +0 -0
  122. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/pool.py +0 -0
  123. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/pricing.py +0 -0
  124. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/prompts/__init__.py +0 -0
  125. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/prompts/loader.py +0 -0
  126. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/providers/__init__.py +0 -0
  127. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/providers/anthropic_provider.py +0 -0
  128. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/providers/base.py +0 -0
  129. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/providers/openai_provider.py +0 -0
  130. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/rag/__init__.py +0 -0
  131. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/rag/context_formatter.py +0 -0
  132. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/rag/pipeline_builder.py +0 -0
  133. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/rag/reranker.py +0 -0
  134. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/rag/result.py +0 -0
  135. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/rag/retriever.py +0 -0
  136. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/redis_store.py +0 -0
  137. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/streaming.py +0 -0
  138. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/tools/__init__.py +0 -0
  139. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/tools/base_tool.py +0 -0
  140. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/tools/first_party.py +0 -0
  141. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/tools/tool_loop.py +0 -0
  142. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/__init__.py +0 -0
  143. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/base.py +0 -0
  144. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
  145. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
  146. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
  147. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
  148. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
  149. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
  150. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/__init__.py +0 -0
  151. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/api_key_guard.py +0 -0
  152. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/auth_manager.py +0 -0
  153. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/events.py +0 -0
  154. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/exceptions.py +0 -0
  155. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/jwt_guard.py +0 -0
  156. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/jwt_issuer.py +0 -0
  157. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/throttle.py +0 -0
  158. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/token_blacklist.py +0 -0
  159. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth/user_context.py +0 -0
  160. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/auth_manager.py +0 -0
  161. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/cache/__init__.py +0 -0
  162. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/cache/cache.py +0 -0
  163. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/cache/driver.py +0 -0
  164. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/cache/drivers/memory.py +0 -0
  165. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/cache/drivers/redis.py +0 -0
  166. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/__init__.py +0 -0
  167. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/cli.py +0 -0
  168. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/__init__.py +0 -0
  169. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/cache.py +0 -0
  170. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/make.py +0 -0
  171. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/migrate.py +0 -0
  172. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/queue.py +0 -0
  173. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/schedule.py +0 -0
  174. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/seed.py +0 -0
  175. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/start.py +0 -0
  176. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/commands/storage.py +0 -0
  177. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/loader.py +0 -0
  178. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/__init__.py +0 -0
  179. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/agent.stub +0 -0
  180. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/controller.stub +0 -0
  181. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/event.stub +0 -0
  182. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/factory.stub +0 -0
  183. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/job.stub +0 -0
  184. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/listener.stub +0 -0
  185. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/mail.stub +0 -0
  186. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/middleware.stub +0 -0
  187. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/migration.alter.stub +0 -0
  188. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
  189. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/migration.blank.stub +0 -0
  190. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/migration.create.stub +0 -0
  191. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/migration.stub +0 -0
  192. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/migration.update.stub +0 -0
  193. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/model.stub +0 -0
  194. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/prompt.stub +0 -0
  195. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/provider.stub +0 -0
  196. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/repository.stub +0 -0
  197. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/request.stub +0 -0
  198. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/resource.stub +0 -0
  199. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/schema.stub +0 -0
  200. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/seeder.stub +0 -0
  201. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/service.stub +0 -0
  202. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/console/stubs/tool.stub +0 -0
  203. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/__init__.py +0 -0
  204. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/application.py +0 -0
  205. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/bootstrap.py +0 -0
  206. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/config.py +0 -0
  207. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/container.py +0 -0
  208. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/container_exceptions.py +0 -0
  209. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/context.py +0 -0
  210. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/exceptions.py +0 -0
  211. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/core/providers/base.py +0 -0
  212. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/__init__.py +0 -0
  213. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/exceptions.py +0 -0
  214. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/factories.py +0 -0
  215. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/identifiers.py +0 -0
  216. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/migrations/__init__.py +0 -0
  217. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/migrations/blueprint.py +0 -0
  218. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/migrations/lock.py +0 -0
  219. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/migrations/migration.py +0 -0
  220. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/migrations/migrator.py +0 -0
  221. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/migrations/schema.py +0 -0
  222. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/orm/__init__.py +0 -0
  223. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/orm/collection.py +0 -0
  224. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/orm/fields.py +0 -0
  225. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/orm/model.py +0 -0
  226. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/orm/registry.py +0 -0
  227. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/orm/relationships.py +0 -0
  228. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/pagination/__init__.py +0 -0
  229. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/pagination/contracts.py +0 -0
  230. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/pagination/paginator.py +0 -0
  231. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/pagination/simple_paginator.py +0 -0
  232. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/pool.py +0 -0
  233. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/query_builder.py +0 -0
  234. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/seeder.py +0 -0
  235. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/database/transaction.py +0 -0
  236. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/events/__init__.py +0 -0
  237. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/events/dispatcher.py +0 -0
  238. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/events/redis_bus.py +0 -0
  239. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/__init__.py +0 -0
  240. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/disk.py +0 -0
  241. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/drivers/__init__.py +0 -0
  242. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/drivers/base.py +0 -0
  243. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/drivers/local.py +0 -0
  244. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/drivers/s3.py +0 -0
  245. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/events.py +0 -0
  246. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/exceptions.py +0 -0
  247. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/manager.py +0 -0
  248. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/metadata.py +0 -0
  249. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/paths.py +0 -0
  250. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/service_provider.py +0 -0
  251. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/uploads/__init__.py +0 -0
  252. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/uploads/handlers.py +0 -0
  253. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
  254. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/uploads/validators.py +0 -0
  255. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/filesystem/visibility.py +0 -0
  256. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/http/client_ip.py +0 -0
  257. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/http/exceptions.py +0 -0
  258. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/http/middleware.py +0 -0
  259. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/http/request.py +0 -0
  260. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/http/response.py +0 -0
  261. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/http/router.py +0 -0
  262. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/logging/__init__.py +0 -0
  263. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/logging/channels.py +0 -0
  264. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/logging/log.py +0 -0
  265. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/logging/manager.py +0 -0
  266. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/__init__.py +0 -0
  267. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/attachments.py +0 -0
  268. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/config.py +0 -0
  269. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/envelope.py +0 -0
  270. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/exceptions.py +0 -0
  271. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/facade.py +0 -0
  272. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/mailable.py +0 -0
  273. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/manager.py +0 -0
  274. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/message.py +0 -0
  275. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/models.py +0 -0
  276. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/queue/__init__.py +0 -0
  277. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/queue/job.py +0 -0
  278. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/service_provider.py +0 -0
  279. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/templates/__init__.py +0 -0
  280. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/templates/renderer.py +0 -0
  281. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/__init__.py +0 -0
  282. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/api/__init__.py +0 -0
  283. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/api/base.py +0 -0
  284. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/api/mailgun.py +0 -0
  285. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/api/resend.py +0 -0
  286. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/api/sendgrid.py +0 -0
  287. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/base.py +0 -0
  288. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/console.py +0 -0
  289. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/sendmail.py +0 -0
  290. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/mail/transports/smtp.py +0 -0
  291. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/py.typed +0 -0
  292. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/queue/__init__.py +0 -0
  293. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/queue/dispatcher.py +0 -0
  294. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/queue/job.py +0 -0
  295. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/queue/worker.py +0 -0
  296. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/__init__.py +0 -0
  297. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/_redis_lua.py +0 -0
  298. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/cron.py +0 -0
  299. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/events.py +0 -0
  300. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/exceptions.py +0 -0
  301. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/jobs.py +0 -0
  302. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/models.py +0 -0
  303. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/scheduler.py +0 -0
  304. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/signing.py +0 -0
  305. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/scheduling/store.py +0 -0
  306. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/schemas/__init__.py +0 -0
  307. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/schemas/base.py +0 -0
  308. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/schemas/fields.py +0 -0
  309. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/support/hashing.py +0 -0
  310. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/support/keys.py +0 -0
  311. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/support/redis_config.py +0 -0
  312. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/support/strings.py +0 -0
  313. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/__init__.py +0 -0
  314. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/fakes/__init__.py +0 -0
  315. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/fakes/ai_fake.py +0 -0
  316. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
  317. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/fixtures.py +0 -0
  318. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/http_client.py +0 -0
  319. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/testing/test_case.py +0 -0
  320. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/__init__.py +0 -0
  321. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/exceptions.py +0 -0
  322. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/form_request.py +0 -0
  323. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/protocols.py +0 -0
  324. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/__init__.py +0 -0
  325. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/builtin.py +0 -0
  326. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/exists.py +0 -0
  327. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/file.py +0 -0
  328. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/registry.py +0 -0
  329. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/required.py +0 -0
  330. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/rules/unique.py +0 -0
  331. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/validation/validator.py +0 -0
  332. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/websockets/__init__.py +0 -0
  333. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/websockets/connection.py +0 -0
  334. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/swiftpy/websockets/manager.py +0 -0
  335. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/__init__.py +0 -0
  336. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/__init__.py +0 -0
  337. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/conftest.py +0 -0
  338. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/integration/__init__.py +0 -0
  339. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/integration/test_chroma.py +0 -0
  340. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/integration/test_lancedb.py +0 -0
  341. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/integration/test_pinecone.py +0 -0
  342. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/integration/test_qdrant.py +0 -0
  343. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/integration/test_rag_integration.py +0 -0
  344. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_agents.py +0 -0
  345. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_ai_fake.py +0 -0
  346. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_ai_fake_isolation.py +0 -0
  347. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_client.py +0 -0
  348. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_conversation.py +0 -0
  349. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_embeddings.py +0 -0
  350. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_middleware.py +0 -0
  351. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_middleware_concurrency.py +0 -0
  352. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_observability.py +0 -0
  353. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_observability_resilience.py +0 -0
  354. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_phase7_ai_remediation.py +0 -0
  355. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
  356. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_phase8_rag_remediation.py +0 -0
  357. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
  358. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_prompts.py +0 -0
  359. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_prompts_security.py +0 -0
  360. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_providers.py +0 -0
  361. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_rag.py +0 -0
  362. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_streaming.py +0 -0
  363. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_tools.py +0 -0
  364. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_vectorstore.py +0 -0
  365. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/ai/test_vectorstore_adapters.py +0 -0
  366. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/app/__init__.py +0 -0
  367. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/app/test_application_providers.py +0 -0
  368. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/app/test_starter_auth.py +0 -0
  369. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/__init__.py +0 -0
  370. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_api_key_guard.py +0 -0
  371. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_attempt.py +0 -0
  372. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_context_on_issue.py +0 -0
  373. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_manager.py +0 -0
  374. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_proxy.py +0 -0
  375. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_remediation.py +0 -0
  376. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_security.py +0 -0
  377. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_auth_throttle.py +0 -0
  378. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_jwt_defaults.py +0 -0
  379. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_jwt_issuer.py +0 -0
  380. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_password_hashing.py +0 -0
  381. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_refresh_and_logout.py +0 -0
  382. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/auth/test_token_blacklist.py +0 -0
  383. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/benchmarks.py +0 -0
  384. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/cache/__init__.py +0 -0
  385. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/cache/test_cache_concurrency.py +0 -0
  386. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/cache/test_cache_manager.py +0 -0
  387. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/cache/test_driver_correctness.py +0 -0
  388. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/cache/test_memory_cache.py +0 -0
  389. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/cache/test_redis_cache.py +0 -0
  390. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/concurrency/__init__.py +0 -0
  391. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/concurrency/test_circular_dependency.py +0 -0
  392. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/concurrency/test_container_semantics.py +0 -0
  393. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/concurrency/test_resolution.py +0 -0
  394. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/concurrency/test_resolution2.py +0 -0
  395. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/conftest.py +0 -0
  396. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/__init__.py +0 -0
  397. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_cache_commands.py +0 -0
  398. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_cli.py +0 -0
  399. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_new_command.py +0 -0
  400. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_start.py +0 -0
  401. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_storage_command.py +0 -0
  402. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/console/test_stubs_and_make.py +0 -0
  403. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/__init__.py +0 -0
  404. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/test_application_config_isolation.py +0 -0
  405. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/test_core_config.py +0 -0
  406. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/test_exceptions.py +0 -0
  407. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/test_helpers.py +0 -0
  408. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/test_instance_singletons.py +0 -0
  409. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/core/test_lifespan.py +0 -0
  410. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/__init__.py +0 -0
  411. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_factories.py +0 -0
  412. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_orm_expansion.py +0 -0
  413. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_orm_vector.py +0 -0
  414. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_pagination_and_grouping.py +0 -0
  415. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_pagination_pg_integration.py +0 -0
  416. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_pgvector_integration.py +0 -0
  417. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_phase4_remediation.py +0 -0
  418. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_query_expansion.py +0 -0
  419. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_query_expansion_pg_integration.py +0 -0
  420. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_query_helpers_v036.py +0 -0
  421. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_seeder.py +0 -0
  422. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/database/test_sequence_gaps.py +0 -0
  423. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/__init__.py +0 -0
  424. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/load_test_database.py +0 -0
  425. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/load_test_database2.py +0 -0
  426. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_arbitrary_primary_keys.py +0 -0
  427. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_identifiers.py +0 -0
  428. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_mass_writes.py +0 -0
  429. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_pool_config.py +0 -0
  430. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_query_builder_terminals.py +0 -0
  431. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_sql_injections.py +0 -0
  432. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/db/test_transaction_isolation.py +0 -0
  433. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/docs/__init__.py +0 -0
  434. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/docs/test_readme_examples.py +0 -0
  435. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/e2e/__init__.py +0 -0
  436. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/e2e/test_concurrent_auth.py +0 -0
  437. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/e2e/test_crud_auth_e2e.py +0 -0
  438. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/events/__init__.py +0 -0
  439. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/events/test_event_dispatcher.py +0 -0
  440. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/events/test_model_events.py +0 -0
  441. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/events/test_redis_bus.py +0 -0
  442. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/events/test_redis_bus_reliability.py +0 -0
  443. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/__init__.py +0 -0
  444. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_cli_storage_link.py +0 -0
  445. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_disk.py +0 -0
  446. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_filesystem_concurrency.py +0 -0
  447. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_filesystem_config.py +0 -0
  448. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_http_integration.py +0 -0
  449. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_local_driver.py +0 -0
  450. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_multipart.py +0 -0
  451. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_paths.py +0 -0
  452. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
  453. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_s3_driver.py +0 -0
  454. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_signed_urls.py +0 -0
  455. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_storage_facade.py +0 -0
  456. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_uploaded_file.py +0 -0
  457. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/filesystem/test_validation.py +0 -0
  458. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/__init__.py +0 -0
  459. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_client_ip.py +0 -0
  460. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_controller_routing.py +0 -0
  461. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_error_pipeline.py +0 -0
  462. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_http_remediation.py +0 -0
  463. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_include_router.py +0 -0
  464. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_request.py +0 -0
  465. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_request_router_abort.py +0 -0
  466. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_response.py +0 -0
  467. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_route_groups.py +0 -0
  468. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_router.py +0 -0
  469. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/http/test_router_405_and_has_file.py +0 -0
  470. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/integration/__init__.py +0 -0
  471. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/integration/test_queue_event_websocket.py +0 -0
  472. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/logging/__init__.py +0 -0
  473. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/logging/test_logging.py +0 -0
  474. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/__init__.py +0 -0
  475. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_api_transports.py +0 -0
  476. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_attachments.py +0 -0
  477. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_cli_make_mail.py +0 -0
  478. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_console_transport.py +0 -0
  479. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_envelope.py +0 -0
  480. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_facade_and_fake.py +0 -0
  481. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_mailable.py +0 -0
  482. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_manager_and_config.py +0 -0
  483. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_message.py +0 -0
  484. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_phase6_mail_remediation.py +0 -0
  485. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_queue_integration.py +0 -0
  486. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_service_provider_and_helpers.py +0 -0
  487. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_smtp_and_sendmail.py +0 -0
  488. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/mail/test_templates.py +0 -0
  489. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/migrations/__init__.py +0 -0
  490. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/migrations/test_migrations.py +0 -0
  491. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/migrations/test_migrations_v040.py +0 -0
  492. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/__init__.py +0 -0
  493. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_defaults_dirty.py +0 -0
  494. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_eager_loading.py +0 -0
  495. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_hidden.py +0 -0
  496. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_instance_update.py +0 -0
  497. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_mass_assignment.py +0 -0
  498. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_model_collection.py +0 -0
  499. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_model_events_transaction.py +0 -0
  500. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_relationship_helpers_v042.py +0 -0
  501. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_relationships_hardening.py +0 -0
  502. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/orm/test_where_has.py +0 -0
  503. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/__init__.py +0 -0
  504. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_after_commit.py +0 -0
  505. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_phase5_remediation.py +0 -0
  506. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_poison_messages.py +0 -0
  507. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_queue.py +0 -0
  508. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_reliability.py +0 -0
  509. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_signing.py +0 -0
  510. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/queue/test_worker_behavior.py +0 -0
  511. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_cron_and_timezone.py +0 -0
  512. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_scheduler_core.py +0 -0
  513. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_scheduler_lifecycle_and_cli.py +0 -0
  514. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_scheduler_queue_integration.py +0 -0
  515. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_scheduler_recovery_and_failures.py +0 -0
  516. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_scheduler_redis_store.py +0 -0
  517. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/scheduling/test_scheduler_worker_lifecycle.py +0 -0
  518. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/schemas/__init__.py +0 -0
  519. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/schemas/test_schema_auth.py +0 -0
  520. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/schemas/test_schema_orm_and_cli.py +0 -0
  521. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/schemas/test_schema_routing.py +0 -0
  522. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/schemas/test_schemas.py +0 -0
  523. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/security/__init__.py +0 -0
  524. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/security/test_security_audit.py +0 -0
  525. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/stress/__init__.py +0 -0
  526. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/stress/test_context_isolation.py +0 -0
  527. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/support/__init__.py +0 -0
  528. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/support/test_redis_config.py +0 -0
  529. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/support/test_strings.py +0 -0
  530. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/testing/__init__.py +0 -0
  531. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/testing/test_fixtures.py +0 -0
  532. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/testing/test_phase9_testing_remediation.py +0 -0
  533. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/testing/test_test_client.py +0 -0
  534. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/__init__.py +0 -0
  535. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/test_auth_typing.py +0 -0
  536. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/test_factory_typing.py +0 -0
  537. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/test_orm_typing.py +0 -0
  538. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/test_schema_typing.py +0 -0
  539. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/test_v042_orm_helpers_typing.py +0 -0
  540. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/typing/test_validation_typing.py +0 -0
  541. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/__init__.py +0 -0
  542. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_db_rules.py +0 -0
  543. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_file_image_validation.py +0 -0
  544. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_form_request_fail_closed.py +0 -0
  545. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_form_request_pipeline.py +0 -0
  546. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_phase6_validation_remediation.py +0 -0
  547. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_rules_hardening.py +0 -0
  548. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_validation_concurrency.py +0 -0
  549. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_validation_ergonomics.py +0 -0
  550. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/validation/test_validator_rules.py +0 -0
  551. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/__init__.py +0 -0
  552. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_broadcast.py +0 -0
  553. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_handshake.py +0 -0
  554. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_lifecycle.py +0 -0
  555. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_websocket_concurrency.py +0 -0
  556. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_websocket_connection.py +0 -0
  557. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_websocket_manager.py +0 -0
  558. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_websocket_remediation.py +0 -0
  559. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
  560. {swiftpy_framework-0.4.2 → swiftpy_framework-0.4.4}/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/ config/ app/ routes/ database/ main.py tests/typing/
91
+ uvx pyrefly check --python-interpreter-path .venv/bin/python --error=no-any-return-implicit swiftpy/database/ swiftpy/support/arr.py swiftpy/support/number.py config/ app/ routes/ database/ main.py tests/typing/
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,7 @@ jobs:
109
109
  import pathlib
110
110
  import swiftpy
111
111
  import swiftpy.testing
112
- from swiftpy import Application, Request, json_response
112
+ from swiftpy import Application, Number, Request, json_response
113
113
  from swiftpy.ai.client import AI, AIClient
114
114
  from swiftpy.ai.embeddings import EmbeddingsClient, generate_deterministic_embedding
115
115
 
@@ -146,6 +146,13 @@ jobs:
146
146
  fake.restore()
147
147
  vec = generate_deterministic_embedding("hello", dimensions=8)
148
148
  assert len(vec) == 8
149
+ assert Number.currency(1000, in_="EUR", locale="de") == "1.000,00 €"
150
+ assert Number.parse("10,123", locale="fr") == 10.123
151
+ assert Number.spell(102) == "one hundred and two"
152
+ assert Number.trim(12.0) == 12
153
+ with Number.with_locale("fr"):
154
+ assert Number.format(1000.5) == "1 000,5"
155
+ assert Number.default_locale() == "en"
149
156
 
150
157
  asyncio.run(main())
151
158
  '
@@ -205,9 +212,11 @@ jobs:
205
212
  cat <<'EOF' > v041_typing_contract_smoke.py
206
213
  from __future__ import annotations
207
214
 
208
- from typing import assert_type
215
+ from decimal import Decimal
216
+ from typing import Any, assert_type
209
217
 
210
218
  from swiftpy import (
219
+ Arr,
211
220
  Auth,
212
221
  AuthProxy,
213
222
  AuthUser,
@@ -221,6 +230,7 @@ jobs:
221
230
  MimeTypesRule,
222
231
  Model,
223
232
  ModelCollection,
233
+ Number,
224
234
  Pivot,
225
235
  Request,
226
236
  SometimesRule,
@@ -276,6 +286,46 @@ jobs:
276
286
  return rows
277
287
 
278
288
 
289
+ def check_arr_v043_contracts() -> str:
290
+ payload: dict[str, Any] = {"name": "Joe", "langs": ["Python", "SQL"], "meta": {"ok": 1}}
291
+ _d = assert_type(Arr.dict(payload, "meta"), dict[Any, Any])
292
+ _l = assert_type(Arr.list(payload, "langs"), list[Any])
293
+ _keys, _vals = assert_type(Arr.divide({"a": 1}), tuple[list[str], list[int]])
294
+ _flat = assert_type(Arr.collapse([[1, 2], [3]]), list[int])
295
+ _clean = assert_type(Arr.where_not_null([1, None, 2]), list[int])
296
+ _mapped = assert_type(Arr.map({"k": "v"}, lambda v, k: f"{k}:{v}"), dict[str, str])
297
+ _spread = assert_type(Arr.map_spread([(1, 2), (3, 4)], lambda a, b: a + b), list[int])
298
+ maybe_num: int | None = 1
299
+ _wrapped = assert_type(Arr.wrap("SwiftPY"), list[str])
300
+ _wrapped_opt = assert_type(Arr.wrap(maybe_num), list[int])
301
+ preserve_flag: bool = True
302
+ _rand = assert_type(Arr.random({"a": 1, "b": 2}, 1, preserve_keys=preserve_flag), dict[str, int] | list[int])
303
+ _q = assert_type(Arr.query({"name": "Taylor", "order": {"column": "id"}}), str)
304
+ _ = (_d, _l, _keys, _vals, _flat, _clean, _mapped, _spread, _wrapped, _wrapped_opt, _rand)
305
+ return _q
306
+
307
+
308
+ def check_number_v044_contracts() -> str:
309
+ _loc = assert_type(Number.default_locale(), str)
310
+ _cur = assert_type(Number.default_currency(), str)
311
+ _fmt = assert_type(Number.format(100000.123, max_precision=2, locale="de"), str)
312
+ _money = assert_type(Number.currency(1000, in_="EUR", locale="de", precision=0), str)
313
+ _abbr = assert_type(Number.abbreviate(1230000, precision=2), str)
314
+ _humans = assert_type(Number.for_humans(489939), str)
315
+ _size = assert_type(Number.file_size(1024, precision=2), str)
316
+ _ord = assert_type(Number.ordinal(21), str)
317
+ _parsed = assert_type(Number.parse("10,123", locale="fr"), float)
318
+ _parsed_int = assert_type(Number.parse_int("10,123", locale="fr"), int)
319
+ _spelled = assert_type(Number.spell(102), str)
320
+ _trim_i = assert_type(Number.trim(12), int)
321
+ _trim_f = assert_type(Number.trim(12.30), int | float)
322
+ _trim_d = assert_type(Number.trim(Decimal("12.30")), Decimal)
323
+ with Number.with_locale("fr"), Number.with_currency("EUR"):
324
+ _scoped = assert_type(Number.currency(1000), str)
325
+ _ = (_loc, _cur, _fmt, _money, _abbr, _humans, _size, _ord, _parsed, _parsed_int, _trim_i, _trim_f, _trim_d, _scoped)
326
+ return _spelled
327
+
328
+
279
329
  def check_auth_contracts() -> AuthUser:
280
330
  _proxy = assert_type(auth(), AuthProxy)
281
331
  _user = assert_type(auth().user(), AuthUser)
@@ -4,6 +4,33 @@ All notable changes to SwiftPY will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.4.4] - 2026-12-04
8
+
9
+ ### Added
10
+ - **Number Formatting & Parsing Support Helpers (`swiftpy/support/number.py`, `swiftpy/support/__init__.py`, `swiftpy/helpers/helper.py`, `swiftpy/helpers/__init__.py`, `swiftpy/__init__.py`):**
11
+ - Added the zero-dependency, stdlib-only `Number` utility facade exported from `swiftpy.support`, `swiftpy.helpers`, and lazily from top-level `swiftpy` (`_EXPORT_MAP` / `TYPE_CHECKING` / `__all__`).
12
+ - **Pure-Python CLDR/ISO-4217 Formatting & Currency:** Added `Number.format()` (locale grouping including Indian `3,2` and Swiss `'` separators, `precision`/`max_precision` controls, and isolated `Decimal` `ROUND_HALF_UP` rounding), `Number.currency(number, in_=..., locale=..., precision=...)` (ISO-4217 minor-unit defaults, prefix/suffix spacing, negative-zero normalization), and overloaded `Number.trim()` (`int -> int`, `float -> int | float`, `Decimal -> Decimal` without scientific-notation output).
13
+ - **Human Scaling, File Sizes, Ordinals, Parsing & Spelling:** Added `Number.abbreviate()` & `Number.for_humans()` (`K`/`thousand`..`Q`/`quadrillion` with rounding tier-promotion), `Number.file_size()` (1024-based `B`–`YB` with rounding tier-promotion), `Number.ordinal()` (`en`, `de`, `fr`, `es`, `it`, `pt`, `nl`, `sv`, `ja`/`zh`), strict `Number.parse()` & `Number.parse_int()` (supporting ASCII/NBSP/NNBSP/Swiss separators and Unicode minus while raising `ValueError` on malformed inputs and truncating `parse_int` via lossless `Decimal`), and English `Number.spell()` (with `after`/`until` thresholds and explicit `ValueError` on unsupported non-English locales).
14
+ - **Defaults & Async Request Scoping:** Added `Number.default_locale()`, `Number.use_locale()`, `Number.default_currency()`, and `Number.use_currency()` alongside `ContextVar`-backed `Number.with_locale()` and `Number.with_currency()` context managers for task-isolated per-request overrides without mutating OS `locale.setlocale()`.
15
+ - **Static Typing, Tests, CI & Documentation:** Added `tests/support/test_number.py` (including async task-isolation, cancellation cleanup, caller `decimal.getcontext` isolation, and DoS boundary suites), `tests/typing/test_v044_number_helpers_typing.py`, updated [Helpers & Support Utilities](documentations/2026-11-15-helpers-and-support-utilities.md), expanded CI Pyrefly & wheel-smoke `Number` contracts, and bumped `swiftpy-framework` to `0.4.4`.
16
+
17
+ ### Changed
18
+ - 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), [Core Kernel & Config](documentations/2026-11-15-core-application-di-and-config.md), [Documentation Plan](docs/2026-11-14_documentation_plan.md), [README.md](README.md), and `uv.lock` to `0.4.4`.
19
+
20
+ ## [0.4.3] - 2026-12-03
21
+
22
+ ### Added
23
+ - **Dictionary & List Support Helpers (`swiftpy/support/arr.py`, `swiftpy/support/__init__.py`, `swiftpy/helpers/helper.py`, `swiftpy/helpers/__init__.py`, `swiftpy/__init__.py`):**
24
+ - Added the zero-dependency, stdlib-only `Arr` utility facade exported from `swiftpy.support`, `swiftpy.helpers`, and lazily from top-level `swiftpy` (`_EXPORT_MAP` / `TYPE_CHECKING` / `__all__`).
25
+ - **Dot-Notation Access & Typed Guards:** Added `Arr.dict()` and `Arr.list()` (strictly typed dict/list dot-notation retrieval raising `TypeError` on wrong types or missing keys), `Arr.get()`, `Arr.exists()` (top-level only), `Arr.has()`, `Arr.has_all()`, and `Arr.has_any()` (preferring literal key matches before dot traversal and preserving explicit `None` values).
26
+ - **In-Place Dot-Notation Mutators:** Added `Arr.set()`, `Arr.forget()` (deleting sibling list indices safely in descending order), `Arr.pull()`, and `Arr.push()` (creating missing intermediate dicts and leaf lists while refusing to clobber non-list leaves or scalar intermediates).
27
+ - **Reshaping, Filtering & Projection:** Added non-mutating `Arr.collapse()` (list and dict modes), `Arr.cross_join()` (sequence and mapping modes), `Arr.divide()`, cycle-guarded `Arr.flatten(data, depth=None)`, `Arr.wrap()`, `Arr.only()`, copy-on-write `Arr.except_()`, `Arr.except_values(..., strict=...)`, type-narrowing `Arr.where_not_null()`, `Arr.pluck()` (with `*` wildcard and explicit segment-sequence support), and `Arr.select()` (including zero-import `Model`, `ModelCollection`, `BaseSchema`, `ValidatedData`, and dataclass inspection with private `_attr` rejection and lazy-load safety).
28
+ - **Predicates, Transforms, Sorting, Sampling & Query Strings:** Added `Arr.every()`, `Arr.some()`, `Arr.first()`, `Arr.last()` (passing true forward index to 2-arg callbacks), `Arr.map()` (preserving dict keys and handling optional-2nd-param Python builtins like `int`, `str.strip`, `round`), `Arr.map_spread()`, `Arr.reject()`, `Arr.partition()`, stable `Arr.sort()` & `Arr.sort_desc()`, iterator-safe `Arr.take()`, isolated-PRNG `Arr.random()` & `Arr.shuffle()`, `Arr.join()`, and cycle-guarded RFC 3986 `Arr.query()`.
29
+ - **Static Typing, Tests, CI & Documentation:** Added `tests/support/test_arr.py`, `tests/typing/test_v043_arr_helpers_typing.py` (`mypy --strict` + `pyrefly` `assert_type` verification), [Helpers & Support Utilities](documentations/2026-11-15-helpers-and-support-utilities.md), CI wheel-smoke `Arr` contracts, and bumped `swiftpy-framework` to `0.4.3`.
30
+
31
+ ### Changed
32
+ - 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), [Core Kernel & Config](documentations/2026-11-15-core-application-di-and-config.md), [Documentation Plan](docs/2026-11-14_documentation_plan.md), [README.md](README.md), and `uv.lock` to `0.4.3`.
33
+
7
34
  ## [0.4.2] - 2026-12-02
8
35
 
9
36
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: swiftpy-framework
3
- Version: 0.4.2
3
+ Version: 0.4.4
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
@@ -103,6 +103,8 @@ All core architectural, storage, AI, and security hardening phases have been com
103
103
  | **Release v0.4.1.post1: `FormRequest[BaseSchema]` & `ValidatedData` Agreement Patch** | Made `FormRequest[Schema]` generic with typed runtime `BaseSchema` hydration in HTTP dispatch and `.validated()` / `.to_schema()`, added `schema_cls` / `type[BaseSchema]` overloads on `request.validate()` and `ValidationResult.validated()`, added `to_dict()` / `model_dump()` / `fields_set` / `is_set()` / `to_schema()` on `ValidatedData`, added subscript/``.get()``/`in`/`.validated()` parity on `BaseSchema`, resolved standalone `swiftpy.schemas` circular imports, and fixed `.github/workflows/ci.yml` wheel smoke mypy resolution | ✅ Completed |
104
104
  | **Release v0.4.1.post2: File & Image Upload Validation Rules** | Added declarative `file`, `image` (magic-byte + container-header validation, opt-in `image:allow_svg`), `mimes`, `mimetypes`, `extensions`, and `sometimes` validation rules with centralized bounded inspection (`inspect_uploaded_file` / `inspect_uploaded_file_size`), MIME alias normalization, kilobyte/size-unit `UploadedFile` support in `min`/`max`/`between` (e.g. `"nullable\|image\|mimes:jpg,jpeg,png,gif\|max:2048"`), order-independent `required`/`nullable` precedence, safe `UploadedFile` cloning, empty `filename=""` & missing `Content-Type` multipart handling, and `Request.input()` file-over-query precedence | ✅ Completed |
105
105
  | **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
+ | **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
+ | **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 |
106
108
 
107
109
  *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.*
108
110
 
@@ -685,7 +687,7 @@ SwiftPY follows a clean, intuitive layout inspired by modern application archite
685
687
  │ ├── queue/ # At-least-once queue workers, job serialization
686
688
  │ ├── scheduling/ # 5-field cron engine, Redis/Memory stores, Scheduler & builders
687
689
  │ ├── schemas/ # Declarative BaseSchema / Schema DTOs, Field constraints & validators
688
- │ ├── support/ # Shared identifiers, keys, Redis config, string inflection
690
+ │ ├── support/ # Arr dict/list facade, hashing, identifiers, keys, Redis config, inflection
689
691
  │ ├── testing/ # TestClient, TestCase, AIFake, MailFake, VectorStoreFake, DB fixtures
690
692
  │ ├── validation/ # FormRequest, fail-closed Validator, builtin & DB rules
691
693
  │ ├── websockets/ # WebSocket manager, connections, broadcast
@@ -73,6 +73,8 @@ All core architectural, storage, AI, and security hardening phases have been com
73
73
  | **Release v0.4.1.post1: `FormRequest[BaseSchema]` & `ValidatedData` Agreement Patch** | Made `FormRequest[Schema]` generic with typed runtime `BaseSchema` hydration in HTTP dispatch and `.validated()` / `.to_schema()`, added `schema_cls` / `type[BaseSchema]` overloads on `request.validate()` and `ValidationResult.validated()`, added `to_dict()` / `model_dump()` / `fields_set` / `is_set()` / `to_schema()` on `ValidatedData`, added subscript/``.get()``/`in`/`.validated()` parity on `BaseSchema`, resolved standalone `swiftpy.schemas` circular imports, and fixed `.github/workflows/ci.yml` wheel smoke mypy resolution | ✅ Completed |
74
74
  | **Release v0.4.1.post2: File & Image Upload Validation Rules** | Added declarative `file`, `image` (magic-byte + container-header validation, opt-in `image:allow_svg`), `mimes`, `mimetypes`, `extensions`, and `sometimes` validation rules with centralized bounded inspection (`inspect_uploaded_file` / `inspect_uploaded_file_size`), MIME alias normalization, kilobyte/size-unit `UploadedFile` support in `min`/`max`/`between` (e.g. `"nullable\|image\|mimes:jpg,jpeg,png,gif\|max:2048"`), order-independent `required`/`nullable` precedence, safe `UploadedFile` cloning, empty `filename=""` & missing `Content-Type` multipart handling, and `Request.input()` file-over-query precedence | ✅ Completed |
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
+ | **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
+ | **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 |
76
78
 
77
79
  *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.*
78
80
 
@@ -655,7 +657,7 @@ SwiftPY follows a clean, intuitive layout inspired by modern application archite
655
657
  │ ├── queue/ # At-least-once queue workers, job serialization
656
658
  │ ├── scheduling/ # 5-field cron engine, Redis/Memory stores, Scheduler & builders
657
659
  │ ├── schemas/ # Declarative BaseSchema / Schema DTOs, Field constraints & validators
658
- │ ├── support/ # Shared identifiers, keys, Redis config, string inflection
660
+ │ ├── support/ # Arr dict/list facade, hashing, identifiers, keys, Redis config, inflection
659
661
  │ ├── testing/ # TestClient, TestCase, AIFake, MailFake, VectorStoreFake, DB fixtures
660
662
  │ ├── validation/ # FormRequest, fail-closed Validator, builtin & DB rules
661
663
  │ ├── websockets/ # WebSocket manager, connections, broadcast
@@ -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.2, setuptools, & mypy strict settings
173
+ └── pyproject.toml # Configured with swiftpy-framework>=0.4.4, 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.2",
330
+ "swiftpy-framework>=0.4.4",
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.2"` 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.4"` 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.2"
361
+ python -m pip install --upgrade "swiftpy-framework>=0.4.4"
362
362
  swiftpy --version
363
363
  ```
364
364
 
@@ -419,7 +419,7 @@ async def run_batch_job() -> None:
419
419
 
420
420
  ## Helper Functions (`isset`, `env`, `config`, ...)
421
421
 
422
- SwiftPY exports convenience helpers from `swiftpy.helpers` and the top-level `swiftpy` package:
422
+ SwiftPY exports convenience helpers from `swiftpy.helpers`, `swiftpy.support`, and the top-level `swiftpy` package (see the dedicated [Helpers & Support Utilities (`Arr`, `Number`, `isset`, `snake_case`, `pluralize`, `Hash`)](2026-11-15-helpers-and-support-utilities.md) guide for full `Arr` dot-notation/collection helpers and `Number` locale-aware formatting/parsing coverage):
423
423
 
424
424
  ```python
425
425
  from swiftpy import isset
@@ -0,0 +1,380 @@
1
+ # Helpers & Support Utilities (`Arr`, `Number`, `isset`, `snake_case`, `pluralize`, `Hash`)
2
+
3
+ ## Introduction
4
+
5
+ SwiftPY ships with a lightweight, zero-dependency standard-library utility suite for working with nested dictionaries, lists, ORM models, schemas, locale-aware numbers/currencies, strings, and password hashes.
6
+
7
+ All primary utilities are exported from `swiftpy.support`, `swiftpy.helpers`, and lazily from top-level `swiftpy`:
8
+
9
+ ```python
10
+ from swiftpy import Arr, Hash, Number, isset, pluralize, snake_case
11
+ ```
12
+
13
+ > **Note:** SwiftPY's `Arr` facade uses Pythonic `snake_case` method names, treats Python `str` and `bytes` strictly as scalar values (never exploding strings into character lists), and isolates mutation to four explicit in-place mutators (`set`, `forget`, `pull`, `push`).
14
+
15
+ ---
16
+
17
+ ## Dictionary & List Helpers (`Arr`)
18
+
19
+ ### 1. Dot-Notation Retrieval & Typed Guards
20
+
21
+ Use `Arr.get()`, `Arr.dict()`, `Arr.list()`, `Arr.exists()`, `Arr.has()`, `Arr.has_all()`, and `Arr.has_any()` to read deeply nested payloads safely:
22
+
23
+ ```python
24
+ from swiftpy import Arr
25
+
26
+ payload = {
27
+ "name": "Joe",
28
+ "languages": ["Python", "SQL"],
29
+ "products": {"desk": {"price": 100, "discount": None}},
30
+ }
31
+
32
+ # Dot-notation retrieval with default fallback
33
+ price = Arr.get(payload, "products.desk.price") # 100
34
+ shipping = Arr.get(payload, "products.desk.shipping", 0) # 0
35
+ # Explicit None is preserved rather than replaced by default
36
+ discount = Arr.get(payload, "products.desk.discount", 0) # None
37
+
38
+ # Strict typed dict & list assertions (raises TypeError on wrong type or missing key)
39
+ langs = Arr.list(payload, "languages") # ["Python", "SQL"]
40
+ desk = Arr.dict(payload, "products.desk") # {"price": 100, "discount": None}
41
+ # Arr.dict(payload, "name") # raises TypeError
42
+ # Arr.list(payload, "name") # raises TypeError
43
+
44
+ # Direct top-level key existence (no dot-splitting)
45
+ Arr.exists(payload, "name") # True
46
+ Arr.exists(payload, "products.desk") # False
47
+
48
+ # Dot-notation existence checks (True even when the stored value is None)
49
+ Arr.has(payload, "products.desk.discount") # True
50
+ Arr.has_all(payload, ["name", "languages"]) # True
51
+ Arr.has_any(payload, ["missing", "products.desk.price"]) # True
52
+ ```
53
+
54
+ ### 2. In-Place Dot-Notation Mutations
55
+
56
+ Only **four** `Arr` methods mutate their target container in place (raising `TypeError` on immutable `tuple` or `MappingProxyType`):
57
+
58
+ ```python
59
+ from swiftpy import Arr
60
+
61
+ state: dict[str, object] = {"products": {"desk": {"price": 100}}}
62
+
63
+ # Set nested key, creating intermediate dicts automatically
64
+ Arr.set(state, "products.desk.price", 200)
65
+ Arr.set(state, "office.room.capacity", 6)
66
+
67
+ # Push one or more values onto a nested list (creates intermediate dicts & leaf list)
68
+ Arr.push(state, "office.furniture", "Desk")
69
+ Arr.push(state, "office.furniture", "Chair", "Lamp")
70
+
71
+ # Retrieve and remove a nested key
72
+ price = Arr.pull(state, "products.desk.price") # 200 (removed from state)
73
+ missing = Arr.pull(state, "products.desk.sku", "N/A") # "N/A"
74
+
75
+ # Remove one or multiple dot-paths (sibling list indices are removed safely in reverse order)
76
+ Arr.forget(state, ["products.desk", "office.furniture.0"])
77
+ ```
78
+
79
+ ### 3. Structural Reshaping & Wrapping
80
+
81
+ All reshaping operations return new containers and leave inputs unmodified:
82
+
83
+ ```python
84
+ from swiftpy import Arr
85
+
86
+ # Collapse one level of nested lists OR nested dicts
87
+ Arr.collapse([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
88
+ # [1, 2, 3, 4, 5, 6, 7, 8, 9]
89
+
90
+ Arr.collapse([{"role": "user"}, {"active": True, "role": "admin"}])
91
+ # {"role": "admin", "active": True}
92
+
93
+ # Cartesian product across sequences or across mappings
94
+ Arr.cross_join([1, 2], ["a", "b"])
95
+ # [[1, "a"], [1, "b"], [2, "a"], [2, "b"]]
96
+
97
+ Arr.cross_join([1, 2], ["a", "b"], ["I", "II"])
98
+ # [[1, "a", "I"], [1, "a", "II"], ..., [2, "b", "II"]]
99
+
100
+ Arr.cross_join({"env": "prod"}, {"region": "us-east", "tier": "pro"})
101
+ # [{"env": "prod", "region": "us-east"}, {"env": "prod", "tier": "pro"}]
102
+
103
+ # Split a dict into (keys, values)
104
+ keys, values = Arr.divide({"name": "Desk", "price": 100})
105
+ # keys = ["name", "price"], values = ["Desk", 100]
106
+
107
+ # Recursively flatten nested dicts and iterables (cycle-guarded)
108
+ Arr.flatten({"name": "Joe", "languages": ["Python", "SQL"]})
109
+ # ["Joe", "Python", "SQL"]
110
+
111
+ Arr.flatten([[1, 2], [3, [4, 5]]], depth=1)
112
+ # [1, 2, 3, [4, 5]]
113
+
114
+ # Normalize arbitrary values to a list without breaking strings or existing lists
115
+ Arr.wrap("SwiftPY") # ["SwiftPY"]
116
+ Arr.wrap(None) # []
117
+ Arr.wrap({"id": 1}) # [{"id": 1}]
118
+ ```
119
+
120
+ ### 4. Filtering, Selecting & Plucking
121
+
122
+ Filter mappings/lists or project nested fields from dictionaries, `Model` / `ModelCollection` batches, `BaseSchema`, `ValidatedData`, or dataclasses without mutating inputs:
123
+
124
+ ```python
125
+ from swiftpy import Arr
126
+
127
+ item = {"name": "Desk", "price": 100, "orders": 10}
128
+
129
+ # Key projection & exclusion (dot-notation supported in except_)
130
+ Arr.only(item, ["name", "price"]) # {"name": "Desk", "price": 100}
131
+ Arr.except_(item, ["price"]) # {"name": "Desk", "orders": 10}
132
+
133
+ # Exclude specific values (use strict=True to distinguish 1 from True / 0 from False)
134
+ Arr.except_values(["foo", "bar", "baz", "qux"], ["foo", "baz"]) # ["bar", "qux"]
135
+ Arr.except_values([0, False, 1, True], [1], strict=True) # [0, False, True]
136
+
137
+ # Strip None values while preserving 0, False, "", [], {}
138
+ Arr.where_not_null([0, None, False, ""]) # [0, False, ""]
139
+ Arr.where_not_null({"a": 0, "b": None}) # {"a": 0}
140
+
141
+ # Extract nested values across dicts, ORM Models, or BaseSchemas
142
+ devs = [
143
+ {"developer": {"id": 1, "name": "Taylor"}},
144
+ {"developer": {"id": 2, "name": "Abigail"}},
145
+ ]
146
+ Arr.pluck(devs, "developer.name") # ["Taylor", "Abigail"]
147
+ Arr.pluck(devs, "developer.name", "developer.id") # {1: "Taylor", 2: "Abigail"}
148
+
149
+ # Project selected keys from each record (omitting absent keys cleanly)
150
+ products = [
151
+ {"id": 1, "name": "Desk", "price": 200},
152
+ {"id": 2, "name": "Table", "price": 150},
153
+ ]
154
+ Arr.select(products, ["name", "price"])
155
+ # [{"name": "Desk", "price": 200}, {"name": "Table", "price": 150}]
156
+ ```
157
+
158
+ ### 5. Predicates & Functional Transforms
159
+
160
+ All callback methods inspect synchronous callable arity once and support both 1-argument `(value)` and 2-argument `(value, key_or_index)` callbacks:
161
+
162
+ ```python
163
+ from swiftpy import Arr
164
+
165
+ # Truth tests (short-circuiting)
166
+ Arr.every([1, 2, 3], lambda i: i > 0) # True
167
+ Arr.some([1, 2, 3], lambda i: i > 2) # True
168
+
169
+ # First and last matching items (with optional default)
170
+ Arr.first([100, 200, 300], lambda v, k: v >= 150) # 200
171
+ Arr.last([100, 200, 300, 110], lambda v, k: v >= 150) # 300
172
+ Arr.first([], lambda v: v > 0, "fallback") # "fallback"
173
+
174
+ # Map values (preserves dict keys; returns new list for sequences)
175
+ Arr.map({"first": "james", "last": "kirk"}, lambda v, k: v.capitalize())
176
+ # {"first": "James", "last": "Kirk"}
177
+
178
+ # Spread nested tuples/sequences (*item) or mappings (**item) strictly into callbacks.
179
+ # Tip: use fixed tuples with lambdas (or typed def callbacks for dynamic list/dict chunks)
180
+ # for full strict-mypy and Pyrefly parameter inference.
181
+ Arr.map_spread([(0, 1), (2, 3), (4, 5)], lambda even, odd: even + odd)
182
+ # [1, 5, 9]
183
+
184
+ def multiply_xy(x: int, y: int) -> int:
185
+ return x * y
186
+
187
+ Arr.map_spread({"p1": {"x": 2, "y": 3}}, multiply_xy)
188
+ # {"p1": 6}
189
+
190
+ # Reject matching items & partition into (passed, failed)
191
+ Arr.reject([100, "200", 300, "400"], lambda v, k: isinstance(v, str))
192
+ # [100, 300]
193
+
194
+ under_three, three_or_above = Arr.partition([1, 2, 3, 4, 5], lambda i: i < 3)
195
+ # ([1, 2], [3, 4, 5])
196
+ ```
197
+
198
+ ### 6. Sorting, Slicing, Sampling, Joining & Query Strings
199
+
200
+ ```python
201
+ from swiftpy import Arr
202
+
203
+ # Stable ascending & descending value sorting (returns new list or key-ordered dict)
204
+ Arr.sort(["Desk", "Table", "Chair"]) # ["Chair", "Desk", "Table"]
205
+ Arr.sort_desc(["Desk", "Table", "Chair"]) # ["Table", "Desk", "Chair"]
206
+ Arr.sort([{"name": "Desk"}, {"name": "Chair"}], lambda v: v["name"])
207
+ # [{"name": "Chair"}, {"name": "Desk"}]
208
+
209
+ # Take from start (limit >= 0) or end (limit < 0)
210
+ Arr.take([0, 1, 2, 3, 4, 5], 3) # [0, 1, 2]
211
+ Arr.take([0, 1, 2, 3, 4, 5], -2) # [4, 5]
212
+
213
+ # Random sampling and non-mutating shuffle (optional isolated seed; non-cryptographic PRNG)
214
+ Arr.random([1, 2, 3, 4, 5]) # single random element
215
+ Arr.random([1, 2, 3, 4, 5], 2) # 2-element list sample
216
+ Arr.random({"a": 1, "b": 2}, 1, preserve_keys=True)
217
+ Arr.shuffle([1, 2, 3, 4, 5]) # new shuffled list
218
+
219
+ # Security note: Arr.random() and Arr.shuffle() use Python's Mersenne Twister
220
+ # (random.Random). Never use them for auth tokens, OTPs, API keys, or CSRF secrets;
221
+ # use Python's stdlib `secrets` module instead.
222
+
223
+ # Join elements with optional final Oxford-style separator
224
+ Arr.join(["Tailwind", "Alpine", "Laravel", "Livewire"], ", ", ", and ")
225
+ # "Tailwind, Alpine, Laravel, and Livewire"
226
+
227
+ # RFC 3986 bracketed query string encoding
228
+ Arr.query({"name": "Taylor", "order": {"column": "created_at", "direction": "desc"}})
229
+ # "name=Taylor&order%5Bcolumn%5D=created_at&order%5Bdirection%5D=desc"
230
+ ```
231
+
232
+ ---
233
+
234
+ ## Behavioral Contracts & Design Decisions
235
+
236
+ SwiftPY adapts Laravel's PHP `Arr` helpers to Python's explicit `dict` / `list` semantics. These behaviors are guaranteed by the test and typing suites:
237
+
238
+ | Method | Exact Python Behavioral Contract |
239
+ |---|---|
240
+ | `dict()` / `list()` | Accepts native `dict` / `list` and their subclasses (`ValidatedData`, `ModelCollection`). Rejects `MappingProxyType`, `tuple`, `None`, wrong container kinds, and missing keys (without a valid `dict`/`list` `default`) with `TypeError`. |
241
+ | `collapse()` | Collapses one level of mappings into a `dict` (later keys overwrite earlier keys) or non-string iterables into a `list`. Scalar items (including `str` and `bytes`) are skipped. Mixing mappings and iterables in one call raises `TypeError`. |
242
+ | `cross_join()` | Returns `list[list]` when all inputs are non-string iterables, or `list[dict]` (combining one `(k, v)` entry from each mapping, later keys winning on collision) when all inputs are mappings. Mixing mappings and sequences raises `TypeError`; `0` arguments returns `[[]]`; any empty input yields `[]`. |
243
+ | `exists()` | Performs direct top-level lookup only (**no** dot splitting; use `has()` for nested paths). Accepts non-negative `int` indices on sequences (`bool` and negative indices return `False`). Returns `True` even when the stored value is `None`. |
244
+ | `has()` / `has_all()` / `has_any()` | `has()` and `has_all()` require `data` to be non-empty and **every** specified key/dot-path to exist; `has_any()` requires **at least one** to exist. Checks literal keys before dot traversal, treats stored `None` values as existing, and returns `False` for empty `keys`. |
245
+ | `except_()` | Pure and non-mutating. Supports dot-notation paths on both mappings and sequences, uses path-keyed copy-on-write cloning (isolating aliased sub-containers and preserving untouched sibling references and nested `tuple` types), and removes sibling list indices in descending order. |
246
+ | `set()` / `push()` / `pull()` | Mutate only mutable dicts and `MutableSequence` containers (such as `list` and `UserList`). Reject immutable nested containers (`MappingProxyType`, `tuple`) with `TypeError` instead of silently clobbering or skipping removal. `set()` always splits dot paths; `get()` checks literal keys before dot paths. |
247
+ | `pluck()` / `select()` | Missing paths resolve to `None` in `pluck()` and are omitted in `select()`. When `key` is provided in `pluck()`, later entries with duplicate keys (including duplicate `None` keys) overwrite earlier entries. Respects `Model.__hidden__` (including `make_visible()`/`make_hidden()`), gives declared columns precedence over `_pivots`, blocks `_`-prefixed private attributes, and avoids triggering ORM lazy loads. |
248
+ | `map_spread()` | Strictly spreads each nested item via `*item` (non-string iterables) or `**item` (mappings) without guessing trailing key arguments; mismatched item arities raise `TypeError`. Fixed 0–5-tuples infer unannotated lambda parameter types in `mypy` and Pyrefly; use typed `def` callbacks for dynamic `list`/`dict` chunks. |
249
+ | `random()` | Returns a single scalar value when `number=None` (passing `preserve_keys=True` with `number=None` raises `ValueError`). When `number` is given (even `number=1`), always returns a `list` (or `dict` when `preserve_keys=True` on a mapping) sampled without position replacement. Uses a non-cryptographic PRNG (`random.Random`); do not use for security secrets. |
250
+ | `sort()` / `sort_desc()` | Pure stable sort (`list` or key-ordered `dict` sorted by value, preserving keys and relative order on ties). Accepts `None`, dot-path `str`, or 1-arg / 2-arg `(value, key)` callbacks, and raises `TypeError` explicitly on incomparable values (such as mixed `int`/`str` or unguarded `None`). |
251
+ | `flatten()` / `query()` | Iterative (stack-safe against deeply nested payloads) and cycle-guarded (`ValueError`). `flatten()` supports `depth=None`/`math.inf` (complete), `depth=0` (top-level), or `depth >= 1` without splitting `str`/`bytes`. `query()` emits RFC 3986 bracketed parameters, percent-encodes `bytes`/`bytearray`/`memoryview`, encodes booleans as `1`/`0`, skips `None`, and rejects unordered sets/iterators with `TypeError`. |
252
+
253
+ ---
254
+
255
+ ## Number Formatting & Parsing Helpers (`Number`)
256
+
257
+ `Number` provides pure-Python, standard-library-only locale formatting, ISO-4217 currency rendering, short-scale abbreviations, file sizes, localized parsing, ordinals, English spelling, and trailing-zero trimming—without calling OS `locale.setlocale()` or requiring third-party CLDR/ICU packages.
258
+
259
+ ### 1. Formatting, Currency & Trimming
260
+
261
+ ```python
262
+ from decimal import Decimal
263
+ from swiftpy import Number
264
+
265
+ # Locale-aware number formatting (exact Decimal ROUND_HALF_UP rounding)
266
+ Number.format(100000) # "100,000"
267
+ Number.format(100000, precision=2) # "100,000.00"
268
+ Number.format(100000.123, max_precision=2) # "100,000.12"
269
+ Number.format(100000, locale="de") # "100.000"
270
+
271
+ # ISO-4217 currency formatting (`in_` replaces PHP keyword `in`)
272
+ Number.currency(1000) # "$1,000.00"
273
+ Number.currency(1000, in_="EUR") # "€1,000.00"
274
+ Number.currency(1000, in_="EUR", locale="de") # "1.000,00 €"
275
+ Number.currency(1000, in_="EUR", locale="de", precision=0) # "1.000 €"
276
+ Number.currency(1000, in_="JPY") # "¥1,000"
277
+
278
+ # Strip trailing decimal zeros (preserves Decimal fixed-point precision)
279
+ Number.trim(12.0) # 12 (int)
280
+ Number.trim(12.30) # 12.3 (float)
281
+ Number.trim(Decimal("1200.00")) # Decimal("1200")
282
+ ```
283
+
284
+ ### 2. Abbreviations, Human Scales & File Sizes
285
+
286
+ ```python
287
+ from swiftpy import Number
288
+
289
+ # Short abbreviations & human-readable scale words (auto-promotes on rounding)
290
+ Number.abbreviate(1000) # "1K"
291
+ Number.abbreviate(489939) # "490K"
292
+ Number.abbreviate(1230000, precision=2) # "1.23M"
293
+
294
+ Number.for_humans(1000) # "1 thousand"
295
+ Number.for_humans(489939) # "490 thousand"
296
+ Number.for_humans(1230000, precision=2) # "1.23 million"
297
+
298
+ # 1024-based binary byte sizes (B through YB)
299
+ Number.file_size(1024) # "1 KB"
300
+ Number.file_size(1024 * 1024) # "1 MB"
301
+ Number.file_size(1024, precision=2) # "1.00 KB"
302
+ Number.file_size(1536, max_precision=2) # "1.5 KB"
303
+ ```
304
+
305
+ ### 3. Localized Parsing, Ordinals & English Spelling
306
+
307
+ ```python
308
+ from swiftpy import Number
309
+
310
+ # Strict localized numeric parsing (raises ValueError on malformed input)
311
+ Number.parse("10,123", locale="en") # 10123.0
312
+ Number.parse("10,123", locale="fr") # 10.123
313
+ Number.parse_int("10.123") # 10
314
+ Number.parse_int("10,123", locale="fr") # 10
315
+
316
+ # Ordinals (English + localized rules such as de, fr, es, it, pt, nl, sv, ja)
317
+ Number.ordinal(1) # "1st"
318
+ Number.ordinal(2) # "2nd"
319
+ Number.ordinal(21) # "21st"
320
+ Number.ordinal(1, locale="fr") # "1er"
321
+
322
+ # English cardinal spelling (`en*` locales) with optional thresholds
323
+ Number.spell(102) # "one hundred and two"
324
+ Number.spell(10, after=10) # "10"
325
+ Number.spell(11, after=10) # "eleven"
326
+ ```
327
+
328
+ ### 4. Application Defaults & Async Request Scoping
329
+
330
+ Use `Number.use_locale()` and `Number.use_currency()` once during application bootstrap (e.g. inside `ServiceProvider.boot()`), and use the `ContextVar`-backed `Number.with_locale()` / `Number.with_currency()` context managers for per-request overrides in concurrent ASGI handlers or middleware:
331
+
332
+ ```python
333
+ from swiftpy import Number
334
+
335
+ # Bootstrap defaults (process-wide)
336
+ Number.use_locale("de")
337
+ Number.use_currency("GBP")
338
+ Number.default_locale() # "de"
339
+ Number.default_currency() # "GBP"
340
+
341
+ # Per-request task-isolated override (safe across concurrent async tasks)
342
+ with Number.with_locale("fr"), Number.with_currency("EUR"):
343
+ formatted = Number.currency(1000) # "1 000,00 €"
344
+ # Reverts automatically to ("de", "GBP") on exit or exception
345
+ ```
346
+
347
+ ### `Number` Behavioral Contracts
348
+
349
+ | Method | Exact Python Behavioral Contract |
350
+ |---|---|
351
+ | `format()` / `currency()` | Accepts strictly `int`, `float`, and `Decimal` (`bool`, `None`, `complex`, `str`, and custom `__int__`/`__float__` objects raise `TypeError`; `NaN`/`Infinity` raise `ValueError`). Uses isolated `decimal.localcontext(DefaultContext)` with `ROUND_HALF_UP` (never mutating or breaking under caller `decimal` settings/traps). Normalizes `-0` / `-0.00` to positive zero. Currency parameter is `in_` (avoiding Python's `in` keyword); emits standard ASCII space `" "` in space-grouped or space-separated outputs. |
352
+ | `abbreviate()` / `for_humans()` / `file_size()` | Scales via exact `Decimal` division and rounds with `ROUND_HALF_UP`, promoting tiers automatically when rounding reaches the next unit boundary (`1499` → `"1K"`, `1500` → `"2K"`, `999_999` → `"1M"` / `"1 million"`, `1536` bytes → `"2 KB"` at `precision=0`, `1024**2 - 1` → `"1 MB"`). `file_size()` uses technical `"."` decimals (`B`–`YB`). |
353
+ | `parse()` / `parse_int()` | Accepts ASCII digits with optional leading `+`/`-`/`\u2212` and locale separators (including standard ASCII space, NBSP `\u00a0`, NNBSP `\u202f`, and Swiss `'`/`\u2019`). Rejects accounting parentheses `(1,000)`, non-ASCII Unicode digits, currency symbols (`$1,000.00`, `1.000,00 €`), and malformed strings with `ValueError`, and raises `TypeError` on non-`str`. `parse_int()` truncates toward zero via lossless `Decimal` before `int()` conversion. |
354
+ | `ordinal()` / `spell()` / `trim()` | `ordinal()` requires whole integers (`ValueError` on fractional floats/Decimals). `spell()` supports English (`en*`) up to `< 10^36` (`ValueError` on unsupported non-English locales). `trim()` returns `int` when `float.is_integer()`, preserves `float` otherwise, and strips trailing fractional zeros on `Decimal` without scientific-notation output (`Decimal("1200.00")` → `Decimal("1200")`). |
355
+ | `use_locale()` / `with_locale()` | Resolution precedence: explicit argument > active `ContextVar` (`with_locale` / `with_currency`) > bootstrap default (`use_locale` / `use_currency`) > `"en"` / `"USD"`. Changing locale leaves currency unchanged and vice versa; `ContextVar` overrides isolate safely across both concurrent `asyncio` tasks and worker threads, and `Number` never calls OS `locale.setlocale()`. Locale tags must be BCP-47/underscore identifiers without POSIX encoding suffixes (e.g. pass `"de_DE"`, not `"de_DE.UTF-8"`). |
356
+
357
+ ---
358
+
359
+ ## Additional Support Helpers
360
+
361
+ - **`isset(data, *keys)`** ([Application & Config Guide](2026-11-15-core-application-di-and-config.md#helper-functions-isset-env-config-)): Checks whether every key/dot-path exists and is not `None` across dicts, sequences, sets, `Request`, `FormData`, `FormRequest`, `ValidatedData`, `Config`, `Model`, `BaseSchema`, and dataclasses.
362
+ - **`snake_case(name)` / `pluralize(word)`**: Zero-dependency acronym-aware string inflection used by ORM table naming and CLI scaffolding (`APIKey` -> `api_key` -> `api_keys`).
363
+ - **`Hash` & Async Password Helpers** ([Authentication & Security Guide](2026-11-15-authentication-and-security.md)): `Hash.make()`, `Hash.check()`, `await Hash.make_async()`, `await Hash.check_async()`, and `Hash.needs_rehash()`.
364
+
365
+ ---
366
+
367
+ ## Important Defaults & Production Safeguards
368
+
369
+ 1. **Mutation vs. Copy-on-Write:** Only `Arr.set()`, `Arr.forget()`, `Arr.pull()`, and `Arr.push()` mutate inputs in place. All other `Arr` helpers return new containers (`Arr.except_()` uses copy-on-write path cloning so caller nested dicts/lists remain untouched).
370
+ 2. **Synchronous Callbacks Only:** All callback-taking `Arr` methods reject `async def` coroutine functions with `TypeError` rather than evaluating unawaited coroutine objects as truthy.
371
+ 3. **Private-Attribute & Lazy-Load Protection:** When `Arr.pluck()` or `Arr.select()` inspects `Model`, `BaseSchema`, or Python object instances, `_`-prefixed and dunder attributes raise `ValueError`, and unloaded ORM relationships return `None` / omitted without triggering `LazyLoadingDisabledError`.
372
+ 4. **Cycle & Memory Guards:** `Arr.flatten()` and `Arr.query()` detect circular container references and raise `ValueError`. `Arr.take()` uses `itertools.islice` and bounded `collections.deque` so lazy iterators do not allocate unbounded memory.
373
+ 5. **Non-Cryptographic Randomness:** `Arr.random()` and `Arr.shuffle()` use Python's `random` PRNG (and an isolated `random.Random(seed)` when `seed` is provided so concurrent ASGI tasks never share seed state). Use Python's `secrets` module for tokens, keys, or security-sensitive randomness.
374
+ 6. **Concurrency-Safe Number Localization & Strict Bounds:** Never call `Number.use_locale()` or `Number.use_currency()` per request on concurrent ASGI workers; use `with Number.with_locale(...):` / `with Number.with_currency(...):` instead. `Number` rejects `bool`, `NaN`, and `Infinity`/`-Infinity` across all numeric inputs and caps precision (`<= 100`), exponents (`abs(exp) <= 1000`), raw locale tag length (`<= 64`), raw currency code length (`<= 16`), and raw parsed string length (`<= 1000`).
375
+
376
+ ---
377
+
378
+ ## Next Step
379
+
380
+ Continue to [Core Kernel, Lifecycle, Config & DI Container](2026-11-15-core-application-di-and-config.md) or [Active Record ORM & Relationships](2026-11-15-orm-models-and-relationships.md) to apply these helpers alongside `ModelCollection`, `Request`, and `Config`.
@@ -10,7 +10,7 @@ dev = [
10
10
 
11
11
  [project]
12
12
  name = "swiftpy-framework"
13
- version = "0.4.2"
13
+ version = "0.4.4"
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 = [