swiftpy-framework 0.4.5__tar.gz → 0.4.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/.github/workflows/ci.yml +62 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/CHANGELOG.md +20 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/PKG-INFO +4 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/README.md +1 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-14-installation-quick-start.md +4 -4
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-filesystem-storage-and-mail.md +2 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-helpers-and-support-utilities.md +166 -7
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-validation-and-form-requests.md +15 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-20-request-and-responses.md +4 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/pyproject.toml +6 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/__init__.py +51 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/new.py +1 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/seed.py +6 -4
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/loader.py +5 -2
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/application.py +63 -7
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/helpers/__init__.py +32 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/helpers/helper.py +38 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/facade.py +3 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/mailable.py +3 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/manager.py +2 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/message.py +8 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/queue/job.py +2 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/templates/renderer.py +9 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/queue/worker.py +59 -35
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/__init__.py +24 -1
- swiftpy_framework-0.4.6/swiftpy/support/benchmark.py +306 -0
- swiftpy_framework-0.4.6/swiftpy/support/defer.py +291 -0
- swiftpy_framework-0.4.6/swiftpy/support/sleep.py +535 -0
- swiftpy_framework-0.4.6/swiftpy/support/timebox.py +158 -0
- swiftpy_framework-0.4.6/swiftpy/support/uri.py +569 -0
- swiftpy_framework-0.4.6/swiftpy/support/values.py +407 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/__init__.py +2 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/validator.py +43 -1
- swiftpy_framework-0.4.6/swiftpy/views/__init__.py +21 -0
- swiftpy_framework-0.4.6/swiftpy/views/engine.py +825 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_phase9_cli_remediation.py +1 -1
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_helpers.py +46 -0
- swiftpy_framework-0.4.6/tests/mail/test_mailable.py +198 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_templates.py +8 -0
- swiftpy_framework-0.4.6/tests/support/test_benchmark.py +279 -0
- swiftpy_framework-0.4.6/tests/support/test_defer.py +558 -0
- swiftpy_framework-0.4.6/tests/support/test_sleep.py +435 -0
- swiftpy_framework-0.4.6/tests/support/test_timebox.py +261 -0
- swiftpy_framework-0.4.6/tests/support/test_uri.py +297 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_values.py +110 -1
- swiftpy_framework-0.4.6/tests/typing/test_v046_helpers_typing.py +183 -0
- swiftpy_framework-0.4.6/tests/validation/test_validator_helper.py +148 -0
- swiftpy_framework-0.4.6/tests/views/test_views.py +670 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/uv.lock +133 -1
- swiftpy_framework-0.4.5/swiftpy/support/values.py +0 -168
- swiftpy_framework-0.4.5/tests/mail/test_mailable.py +0 -87
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/.dockerignore +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/.env.example +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/.github/workflows/publish.yml +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/.gitignore +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/CONTRIBUTING.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/Dockerfile +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/LICENSE +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/ai/agents/assistant_agent.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/ai/observers/.gitkeep +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/ai/pipelines/.gitkeep +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/ai/providers/.gitkeep +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/ai/tools/system_status_tool.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/ai/vectorstores/.gitkeep +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/events/user_registered.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/controllers/user_controller.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/handler/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/middleware/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/middleware/admin_middleware.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/middleware/auth_middleware.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/middleware/test_middleware.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/requests/create_user_request.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/http/resources/user_resource.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/jobs/send_notification_job.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/listeners/send_welcome_notification.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/mail/welcome_email.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/models/profile.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/models/user.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/app_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/auth_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/cache_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/database_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/event_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/filesystem_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/mail_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/providers/queue_service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/repositories/user_repository.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/schemas/user_schema.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/app/services/user_service.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/bootstrap/cache/.gitkeep +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/ai.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/app.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/auth.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/cache.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/cors.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/database.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/events.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/filesystems.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/http.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/logging.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/mail.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/queue.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/config/schedule.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/database/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/database/migrations/2026_11_26_180006_create_profiles_table.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/database/seeders/database_seeder.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/docker-compose.yml +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-ai-subsystem.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-authentication-and-security.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-cache-events-and-queues.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-core-application-di-and-config.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-database-query-builder-and-migrations.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-orm-models-and-relationships.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-15-websockets-and-admin.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-19-application-schemas.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-19-cli-and-testing.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-19-database-schema-and-blueprint.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-20-error-handling.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-20-logging.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-21-application-architecture-and-project-structure.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-21-cors.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/documentations/2026-11-22-task-scheduling.md +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/main.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/prompts/classify.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/prompts/summarise.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/red-black.png +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/routes/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/routes/api.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/.gitignore +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/_deterministic.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/_fake.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/agents/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/agents/base_agent.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/agents/memory.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/client.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/conversation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/embeddings.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/history_strategies.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/middleware.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/observability/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/observability/drivers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/observability/observer.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/pool.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/pricing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/prompts/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/prompts/loader.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/anthropic_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/providers/openai_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/context_formatter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/pipeline_builder.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/reranker.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/result.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/rag/retriever.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/redis_store.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/streaming.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/base_tool.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/first_party.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/tools/tool_loop.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/api_key_guard.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/auth_manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/events.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/jwt_guard.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/jwt_issuer.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/throttle.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/token_blacklist.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth/user_context.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/auth_manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/cache/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/cache/cache.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/cache/driver.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/cache/drivers/memory.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/cache/drivers/redis.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/cli.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/cache.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/make.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/migrate.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/queue.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/schedule.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/start.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/commands/storage.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/agent.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/controller.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/event.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/factory.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/job.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/listener.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/mail.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/middleware.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.alter.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.blank.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.create.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/migration.update.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/model.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/prompt.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/provider.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/repository.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/request.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/resource.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/schema.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/seeder.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/service.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/console/stubs/tool.stub +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/bootstrap.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/container.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/container_exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/context.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/core/providers/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/factories.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/identifiers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/blueprint.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/lock.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/migration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/migrator.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/migrations/schema.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/orm/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/orm/collection.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/orm/fields.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/orm/model.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/orm/registry.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/orm/relationships.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/contracts.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/paginator.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/pagination/simple_paginator.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/pool.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/query_builder.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/seeder.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/database/transaction.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/events/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/events/dispatcher.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/events/redis_bus.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/disk.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/local.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/drivers/s3.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/events.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/metadata.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/paths.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/handlers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/uploads/validators.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/filesystem/visibility.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/helpers/paths.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/helpers/urls.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/http/client_ip.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/http/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/http/middleware.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/http/request.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/http/response.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/http/router.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/logging/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/logging/channels.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/logging/log.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/logging/manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/attachments.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/envelope.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/models.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/queue/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/service_provider.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/templates/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/mailgun.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/resend.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/api/sendgrid.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/console.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/sendmail.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/mail/transports/smtp.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/py.typed +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/queue/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/queue/dispatcher.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/queue/job.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/_redis_lua.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/cron.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/events.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/jobs.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/models.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/scheduler.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/signing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/scheduling/store.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/schemas/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/schemas/base.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/schemas/fields.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/arr.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/crypt.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/dates.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/debug.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/flow.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/hashing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/keys.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/number.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/redis_config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/support/strings.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/fakes/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/fakes/ai_fake.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/fixtures.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/http_client.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/testing/test_case.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/form_request.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/protocols.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/builtin.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/exists.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/file.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/registry.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/required.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/validation/rules/unique.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/websockets/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/websockets/connection.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/swiftpy/websockets/manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/conftest.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/integration/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/integration/test_chroma.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/integration/test_lancedb.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/integration/test_pinecone.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/integration/test_qdrant.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/integration/test_rag_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_agents.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_ai_fake.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_ai_fake_isolation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_client.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_conversation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_embeddings.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_middleware.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_middleware_concurrency.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_observability.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_observability_resilience.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_phase7_ai_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_phase8_rag_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_prompts.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_prompts_security.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_providers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_rag.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_streaming.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_tools.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_vectorstore.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/ai/test_vectorstore_adapters.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/app/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/app/test_application_providers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/app/test_starter_auth.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_api_key_guard.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_attempt.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_context_on_issue.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_proxy.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_security.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_auth_throttle.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_jwt_defaults.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_jwt_issuer.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_password_hashing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_refresh_and_logout.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/auth/test_token_blacklist.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/benchmarks.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/cache/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/cache/test_cache_concurrency.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/cache/test_cache_manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/cache/test_driver_correctness.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/cache/test_memory_cache.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/cache/test_redis_cache.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/concurrency/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/concurrency/test_circular_dependency.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/concurrency/test_container_semantics.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/concurrency/test_resolution.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/concurrency/test_resolution2.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/conftest.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_cache_commands.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_cli.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_new_command.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_start.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_storage_command.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/console/test_stubs_and_make.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_application_config_isolation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_core_config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_exceptions.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_instance_singletons.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_lifespan.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/core/test_path_helpers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_factories.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_orm_expansion.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_orm_vector.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_pagination_and_grouping.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_pagination_pg_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_pgvector_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_phase4_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_query_expansion.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_query_expansion_pg_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_query_helpers_v036.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_seeder.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/database/test_sequence_gaps.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/load_test_database.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/load_test_database2.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_arbitrary_primary_keys.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_identifiers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_mass_writes.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_pool_config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_query_builder_terminals.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_sql_injections.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/db/test_transaction_isolation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/docs/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/docs/test_readme_examples.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/e2e/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/e2e/test_concurrent_auth.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/e2e/test_crud_auth_e2e.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/events/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/events/test_event_dispatcher.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/events/test_model_events.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/events/test_redis_bus.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/events/test_redis_bus_reliability.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_cli_storage_link.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_disk.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_filesystem_concurrency.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_filesystem_config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_http_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_local_driver.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_multipart.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_paths.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_s3_driver.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_signed_urls.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_storage_facade.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_uploaded_file.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/filesystem/test_validation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_abort_helpers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_client_ip.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_controller_routing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_error_pipeline.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_http_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_include_router.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_request.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_request_router_abort.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_response.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_route_groups.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_router.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_router_405_and_has_file.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/http/test_url_helpers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/integration/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/integration/test_queue_event_websocket.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/logging/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/logging/test_logging.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_api_transports.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_attachments.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_cli_make_mail.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_console_transport.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_envelope.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_facade_and_fake.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_manager_and_config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_message.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_phase6_mail_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_queue_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_service_provider_and_helpers.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/mail/test_smtp_and_sendmail.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/migrations/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/migrations/test_migrations.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/migrations/test_migrations_v040.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_defaults_dirty.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_eager_loading.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_hidden.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_instance_update.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_mass_assignment.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_model_collection.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_model_events_transaction.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_relationship_helpers_v042.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_relationships_hardening.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/orm/test_where_has.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_after_commit.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_phase5_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_poison_messages.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_queue.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_reliability.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_signing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/queue/test_worker_behavior.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_cron_and_timezone.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_core.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_lifecycle_and_cli.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_queue_integration.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_recovery_and_failures.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_redis_store.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/scheduling/test_scheduler_worker_lifecycle.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/schemas/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/schemas/test_schema_auth.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/schemas/test_schema_orm_and_cli.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/schemas/test_schema_routing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/schemas/test_schemas.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/security/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/security/test_security_audit.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/stress/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/stress/test_context_isolation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_arr.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_crypt.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_dates.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_debug.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_flow.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_number.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_redis_config.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/support/test_strings.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/testing/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/testing/test_fixtures.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/testing/test_phase9_testing_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/testing/test_test_client.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_auth_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_factory_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_orm_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_schema_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_v042_orm_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_v043_arr_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_v044_number_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_v045_helpers_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/typing/test_validation_typing.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_db_rules.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_file_image_validation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_form_request_fail_closed.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_form_request_pipeline.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_phase6_validation_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_rules_hardening.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_validation_concurrency.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_validation_ergonomics.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/validation/test_validator_rules.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/__init__.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_broadcast.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_handshake.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_lifecycle.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_concurrency.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_connection.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_manager.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_remediation.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
- {swiftpy_framework-0.4.5 → swiftpy_framework-0.4.6}/views/mail/template.html +0 -0
|
@@ -88,7 +88,7 @@ jobs:
|
|
|
88
88
|
|
|
89
89
|
- name: Run Pyrefly
|
|
90
90
|
run: |
|
|
91
|
-
uvx pyrefly check --python-interpreter-path .venv/bin/python --error=no-any-return-implicit swiftpy/database/ swiftpy/support/ swiftpy/helpers/ swiftpy/core/exceptions.py swiftpy/http/exceptions.py swiftpy/http/router.py swiftpy/filesystem/paths.py config/ app/ routes/ database/ main.py tests/typing/ tests/core/test_path_helpers.py tests/core/test_helpers.py tests/core/test_exceptions.py tests/http/test_url_helpers.py tests/http/test_abort_helpers.py tests/support/test_values.py tests/support/test_flow.py tests/support/test_dates.py tests/support/test_debug.py tests/support/test_crypt.py tests/filesystem/test_paths.py
|
|
91
|
+
uvx pyrefly check --python-interpreter-path .venv/bin/python --error=no-any-return-implicit swiftpy/database/ swiftpy/support/ swiftpy/helpers/ swiftpy/views/ swiftpy/core/exceptions.py swiftpy/http/exceptions.py swiftpy/http/router.py swiftpy/filesystem/paths.py swiftpy/validation/validator.py config/ app/ routes/ database/ main.py tests/typing/ tests/core/test_path_helpers.py tests/core/test_helpers.py tests/core/test_exceptions.py tests/http/test_url_helpers.py tests/http/test_abort_helpers.py tests/support/test_values.py tests/support/test_flow.py tests/support/test_dates.py tests/support/test_debug.py tests/support/test_crypt.py tests/support/test_benchmark.py tests/support/test_defer.py tests/support/test_sleep.py tests/support/test_timebox.py tests/support/test_uri.py tests/views/ tests/validation/test_validator_helper.py tests/filesystem/test_paths.py
|
|
92
92
|
|
|
93
93
|
- name: Dependency security audit
|
|
94
94
|
run: uv run --no-sync --with pip-audit pip-audit --desc on
|
|
@@ -111,17 +111,25 @@ jobs:
|
|
|
111
111
|
import swiftpy.testing
|
|
112
112
|
from swiftpy import (
|
|
113
113
|
Application,
|
|
114
|
+
Benchmark,
|
|
114
115
|
Number,
|
|
115
116
|
Request,
|
|
117
|
+
Sleep,
|
|
118
|
+
Timebox,
|
|
119
|
+
Uri,
|
|
120
|
+
View,
|
|
116
121
|
abort_if,
|
|
117
122
|
abort_unless,
|
|
118
123
|
app_path,
|
|
119
124
|
asset,
|
|
125
|
+
atransform,
|
|
120
126
|
base_path,
|
|
121
127
|
blank,
|
|
122
128
|
config_path,
|
|
123
129
|
database_path,
|
|
124
130
|
decrypt,
|
|
131
|
+
defer,
|
|
132
|
+
deferred_scope,
|
|
125
133
|
encrypt,
|
|
126
134
|
filled,
|
|
127
135
|
json_response,
|
|
@@ -138,6 +146,9 @@ jobs:
|
|
|
138
146
|
throw_if,
|
|
139
147
|
throw_unless,
|
|
140
148
|
today,
|
|
149
|
+
transform,
|
|
150
|
+
validator,
|
|
151
|
+
view,
|
|
141
152
|
)
|
|
142
153
|
from swiftpy.ai.client import AI, AIClient
|
|
143
154
|
from swiftpy.ai.embeddings import EmbeddingsClient, generate_deterministic_embedding
|
|
@@ -209,6 +220,20 @@ jobs:
|
|
|
209
220
|
assert _smoke_once() == 7
|
|
210
221
|
app.config.set("app.key", "base64:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
|
|
211
222
|
assert decrypt(encrypt({"v": 45})) == {"v": 45}
|
|
223
|
+
assert transform(5, lambda v: v * 2) == 10
|
|
224
|
+
assert await atransform(None, lambda v: v, "blank") == "blank"
|
|
225
|
+
assert (await validator({"n": "Ada"}, {"n": "required"}).validate()).passes()
|
|
226
|
+
assert Benchmark.value(lambda: 9)[0] == 9
|
|
227
|
+
ran_defer = []
|
|
228
|
+
async with deferred_scope():
|
|
229
|
+
defer(lambda: ran_defer.append("ok"))
|
|
230
|
+
assert ran_defer == ["ok"]
|
|
231
|
+
with Sleep.fake() as sf:
|
|
232
|
+
assert await Sleep.for_(1).second().then(lambda: "ok") == "ok"
|
|
233
|
+
sf.assert_slept_times(1)
|
|
234
|
+
assert await Timebox().call(lambda b: b.return_early(), microseconds=100) is not None
|
|
235
|
+
assert Uri("https://example.com/u").push_onto_query("f", ["a", "b"]).query() == "f=a&f=b"
|
|
236
|
+
assert view("mail.template").name == "mail.template"
|
|
212
237
|
|
|
213
238
|
asyncio.run(main())
|
|
214
239
|
'
|
|
@@ -280,8 +305,10 @@ jobs:
|
|
|
280
305
|
AuthProxy,
|
|
281
306
|
AuthUser,
|
|
282
307
|
BaseSchema,
|
|
308
|
+
Benchmark,
|
|
283
309
|
Container,
|
|
284
310
|
DecryptException,
|
|
311
|
+
DeferredCallback,
|
|
285
312
|
DumpAndDie,
|
|
286
313
|
ExtensionsRule,
|
|
287
314
|
FileRule,
|
|
@@ -296,11 +323,20 @@ jobs:
|
|
|
296
323
|
Pivot,
|
|
297
324
|
Request,
|
|
298
325
|
Response,
|
|
326
|
+
Sleep,
|
|
327
|
+
SleepFake,
|
|
299
328
|
SometimesRule,
|
|
329
|
+
Timebox,
|
|
300
330
|
UniqueRule,
|
|
301
331
|
UploadedFile,
|
|
332
|
+
Uri,
|
|
302
333
|
UrlGenerationError,
|
|
303
334
|
ValidatedData,
|
|
335
|
+
Validator,
|
|
336
|
+
View,
|
|
337
|
+
ViewEngine,
|
|
338
|
+
ViewError,
|
|
339
|
+
ViewNotFoundError,
|
|
304
340
|
abort_if,
|
|
305
341
|
abort_unless,
|
|
306
342
|
action,
|
|
@@ -308,11 +344,14 @@ jobs:
|
|
|
308
344
|
app_path,
|
|
309
345
|
asset,
|
|
310
346
|
atap,
|
|
347
|
+
atransform,
|
|
311
348
|
base_path,
|
|
312
349
|
blank,
|
|
313
350
|
config_path,
|
|
314
351
|
database_path,
|
|
315
352
|
decrypt,
|
|
353
|
+
defer,
|
|
354
|
+
deferred_scope,
|
|
316
355
|
dump,
|
|
317
356
|
encrypt,
|
|
318
357
|
extensions,
|
|
@@ -336,7 +375,10 @@ jobs:
|
|
|
336
375
|
throw_unless,
|
|
337
376
|
to_action,
|
|
338
377
|
today,
|
|
378
|
+
transform,
|
|
339
379
|
unique,
|
|
380
|
+
validator,
|
|
381
|
+
view,
|
|
340
382
|
)
|
|
341
383
|
from swiftpy.auth import auth
|
|
342
384
|
from swiftpy.auth_manager import Auth as LegacyAuth
|
|
@@ -460,6 +502,25 @@ jobs:
|
|
|
460
502
|
return _enc
|
|
461
503
|
|
|
462
504
|
|
|
505
|
+
async def check_helpers_v046_contracts() -> str:
|
|
506
|
+
_tr = assert_type(transform(5, lambda v: v * 2), int | None)
|
|
507
|
+
_maybe_int: int | None = None
|
|
508
|
+
_atr = assert_type(await atransform(_maybe_int, lambda v: str(v), "blank"), str)
|
|
509
|
+
_val = assert_type(validator({"a": 1}, {"a": "required"}), Validator)
|
|
510
|
+
_vw = assert_type(view("mail.template", {"title": "Hi"}), View)
|
|
511
|
+
_bm = assert_type(Benchmark.measure(lambda: 1), float)
|
|
512
|
+
_bma = assert_type(await Benchmark.measure_async(lambda: 1), float)
|
|
513
|
+
async with deferred_scope():
|
|
514
|
+
_dc = assert_type(defer(lambda: None).always(), DeferredCallback)
|
|
515
|
+
with Sleep.fake() as _sf:
|
|
516
|
+
_sl = assert_type(await Sleep.for_(1).second().then(lambda: "ok"), str)
|
|
517
|
+
assert_type(_sf, SleepFake)
|
|
518
|
+
_tb = assert_type(await Timebox().call(lambda b: b.return_early(), microseconds=10), Timebox)
|
|
519
|
+
_uri = assert_type(Uri("https://example.com/u").push_onto_query("f", ["a"]), Uri)
|
|
520
|
+
_ = (_tr, _atr, _val, _vw, _bm, _bma, _dc, _sl, _tb, ViewEngine, ViewError, ViewNotFoundError)
|
|
521
|
+
return _uri.query()
|
|
522
|
+
|
|
523
|
+
|
|
463
524
|
def check_auth_contracts() -> AuthUser:
|
|
464
525
|
_proxy = assert_type(auth(), AuthProxy)
|
|
465
526
|
_user = assert_type(auth().user(), AuthUser)
|
|
@@ -4,6 +4,26 @@ All notable changes to SwiftPY will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.4.6] - 2026-12-05
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Value Transformation & Validator Helpers (`swiftpy/support/values.py`, `swiftpy/validation/validator.py`, `swiftpy/validation/__init__.py`):**
|
|
11
|
+
- Added `transform(value, callback, default=None)` and async `atransform()` executing `callback(value)` when `filled(value)` is true, evaluating non-`type` callable defaults (0-arg or 1-arg), and rejecting awaitable results cleanly in synchronous `transform()`.
|
|
12
|
+
- Added `validator(data, rules, messages=None, *, registry=None, stop_on_first_error=False) -> Validator` matching the 3-argument `(data, rules, messages)` order while rejecting un-awaited `Request` instances with a clear `TypeError` pointing to `await validate(request, rules)`.
|
|
13
|
+
- **HTML Views & Email Integration (`swiftpy/views/`, `swiftpy/core/application.py`, `swiftpy/mail/`):**
|
|
14
|
+
- Added `ViewEngine`, `View`, `ViewError`, `ViewNotFoundError`, and `view()` supporting dot/slash template paths (`"auth.login"` -> `views/auth/login.html`), `namespace::template` package roots (`add_namespace()`), optional `[views]` extra (`jinja2.sandbox.SandboxedEnvironment` with `enable_async=True`, `auto_reload` tied to `app.debug`, production template caching, and `finalize` callable/object guards), fail-closed built-in fallback renderer (HTML/quote-escaping scalar substitution blocking control tags, private `_`/dunder access, and non-scalar values), off-loop path resolution (`asyncio.to_thread`), and traversal/symlink-escape protection.
|
|
15
|
+
- Registered `ViewEngine` singleton in `FrameworkServiceProvider` bound to `Application.project_root` (plus optional `views.path`/`views.paths`), enabled direct `return view(...)` responses in `Application._wrap_handler()`, added optional `view: View | None = None` support to `MailMessage` / `Mailable` / `Mail` / `MailManager`, and added dot-notation template normalization to `MailTemplateRenderer.render()`.
|
|
16
|
+
- **Benchmarking, Deferred Callbacks, Async Sleep, Timebox & Uri (`swiftpy/support/benchmark.py`, `swiftpy/support/defer.py`, `swiftpy/support/sleep.py`, `swiftpy/support/timebox.py`, `swiftpy/support/uri.py`, `swiftpy/queue/worker.py`, `swiftpy/console/`):**
|
|
17
|
+
- Added `Benchmark` (`measure`, `value`, `dd`, `measure_async`, `value_async`, `dd_async`) using `time.perf_counter_ns()`, bounded `iterations` (`<= 1_000_000`), and `support.debug.dd()` integration.
|
|
18
|
+
- Added `defer(callback, *, name=None, always=False, timeout=None)`, `DeferredCallback`, and `deferred_scope(timeout=None)` using task-owned `Context` queues (`<= 1_000` entries), flushing strictly *after* HTTP response transmission in `Application.__call__` (and wrapping `QueueWorker.process_job`, `run_app_action`, and `SeedCommand._execute_seed`) while running only `.always()` callbacks on 4xx/5xx/exceptions/disconnects and propagating `asyncio.CancelledError`.
|
|
19
|
+
- Added immutable async `Sleep` (`for_`, `and_`, `while_`, `then`, `until`, `sleep`, `usleep`, `microsecond(s)`..`day(s)`) backed by `asyncio.sleep()` (yielding on zero/faked `while_()` iterations) and cross-context-safe `ContextVar`-isolated `Sleep.fake()` / `SleepFake`.
|
|
20
|
+
- Added async `Timebox` (`await Timebox().call(callback, microseconds=...)`, `.return_early()`, `.dont_return_early()`) with concurrency-safe per-invocation state and full delay enforcement on `Exception`.
|
|
21
|
+
- Added immutable stdlib-backed `Uri` (`origin`, `scheme`, `authority`, `host`, `port`, `path`, `path_segments`, `query`, `query_params`, `fragment`, `with_query`, `with_query_if_missing`, `replace_query`, `push_onto_query`, `without_query`) with control-char/`1..65535` port/`32,768`-char length validation, early `parse_qsl(..., max_num_fields=...)` / encoding caps (`<= 1_000` params, depth `<= 8`), ignored empty keys, and conflict rejection on mixed scalar/nested keys.
|
|
22
|
+
- **Exports, Typing, Tests, CI & Documentation:** Re-exported all new symbols through `swiftpy.support`, `swiftpy.views`, `swiftpy.validation`, `swiftpy.helpers`, and lazy top-level `swiftpy`; added `tests/views/test_views.py`, `tests/validation/test_validator_helper.py`, `tests/support/test_benchmark.py`, `tests/support/test_defer.py`, `tests/support/test_sleep.py`, `tests/support/test_timebox.py`, `tests/support/test_uri.py`, `tests/typing/test_v046_helpers_typing.py`, expanded `tests/support/test_values.py`, `tests/mail/test_templates.py`, `tests/mail/test_mailable.py`, `tests/core/test_helpers.py`, `.github/workflows/ci.yml`, and developer docs (`documentations/`).
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Bumped `swiftpy-framework` package version (`pyproject.toml`), `swiftpy new` dependency floor (`swiftpy/console/commands/new.py`), `tests/console/test_phase9_cli_remediation.py`, [Installation & Quick Start](documentations/2026-11-14-installation-quick-start.md), [Documentation Plan](docs/2026-11-14_documentation_plan.md), [README.md](README.md), and `uv.lock` to `0.4.6`.
|
|
26
|
+
|
|
7
27
|
## [0.4.5] - 2026-12-04
|
|
8
28
|
|
|
9
29
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: swiftpy-framework
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.6
|
|
4
4
|
Summary: SwiftPY is a new generation async-first Python framework purpose built for the modern API and AI economy.
|
|
5
5
|
Project-URL: Homepage, https://github.com/obrainwave/swiftpy
|
|
6
6
|
Project-URL: Repository, https://github.com/obrainwave/swiftpy
|
|
@@ -26,6 +26,8 @@ Requires-Dist: cryptography>=50.0.2
|
|
|
26
26
|
Requires-Dist: httpx>=0.27.0
|
|
27
27
|
Requires-Dist: redis>=8.1.0
|
|
28
28
|
Requires-Dist: uvicorn[standard]>=0.52.4
|
|
29
|
+
Provides-Extra: views
|
|
30
|
+
Requires-Dist: jinja2>=3.1; extra == 'views'
|
|
29
31
|
Description-Content-Type: text/markdown
|
|
30
32
|
|
|
31
33
|
<p align="center">
|
|
@@ -106,6 +108,7 @@ All core architectural, storage, AI, and security hardening phases have been com
|
|
|
106
108
|
| **Release v0.4.3: Dict & List Support Helpers (`Arr`)** | Added stdlib-only `Arr` utility facade (`swiftpy/support/arr.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) implementing all 36 Pythonic dict/list helpers: dot-notation retrieval/guards (`dict`, `list`, `get`, `exists`, `has`, `has_all`, `has_any`), in-place mutators (`set`, `forget`, `pull`, `push`), non-mutating reshaping & projection (`collapse`, `cross_join`, `divide`, `flatten`, `wrap`, `only`, `except_`, `except_values`, `where_not_null`, `pluck`, `select` with `Model`/`ModelCollection`/`BaseSchema` support), predicates & transforms (`every`, `some`, `first`, `last`, `map`, `map_spread`, `reject`, `partition`), stable sorting/slicing/sampling (`sort`, `sort_desc`, `take`, `random`, `shuffle`), `join()`, and RFC 3986 `query()`, backed by strict `mypy`/`pyrefly` overload contracts and dedicated developer documentation | ✅ Completed |
|
|
107
109
|
| **Release v0.4.4: Number Formatting & Parsing Helpers (`Number`)** | Added zero-dependency, stdlib-only `Number` facade (`swiftpy/support/number.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) with pure-Python CLDR/ISO-4217 registries, `Decimal` `ROUND_HALF_UP` rounding, and `ContextVar`-isolated `with_locale()`/`with_currency()` scoping implementing all 14 insight helpers (`abbreviate`, `currency`, `default_currency`, `default_locale`, `file_size`, `for_humans`, `format`, `ordinal`, `parse`, `parse_int`, `spell`, `trim`, `use_locale`, `use_currency`), backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
108
110
|
| **Release v0.4.5: Path, URL, Redirect, Abort & General-Purpose Helpers** | Added application path helpers (`base_path`, `app_path`, `config_path`, `database_path`, `storage_path`), URL/action/redirect helpers (`asset`, `secure_asset`, `secure_url`, `action`, `redirect`, `to_action` with Host-header protection), conditional/retry/memoization flow helpers (`abort_if`, `abort_unless`, `throw_if`, `throw_unless`, async `retry`, task-scoped `@once`), value/date/request/container helpers (`blank`, `filled`, `literal`, `tap`/`atap`, `now`, `today`, `request`, `app(Type)`), bounded `dump`/`dd` (`DumpAndDie`), and AES-256-GCM + HKDF `encrypt`/`decrypt` (`DecryptException`) with key rotation, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
111
|
+
| **Release v0.4.6: Miscellaneous Helpers (`transform`, `validator`, `view`, `Benchmark`, `defer`, `Sleep`, `Timebox`, `Uri`)** | Added `transform()`/`atransform()` with callable defaults, `validator()` helper, `swiftpy/views/` (`View`, `ViewEngine` with dot/slash paths, `namespace::template` roots, optional Jinja2 sandbox + HTML-escaping fallback, direct ASGI route returns, and `MailMessage.view` / dot-notation mail integration), `Benchmark` sync/async millisecond timing & `dd()`, post-response `defer()`/`deferred_scope()` across HTTP/`QueueWorker`/CLI, immutable async `Sleep` + `ContextVar`-isolated `Sleep.fake()`, concurrency-safe `Timebox`, and immutable `Uri` component inspection & query builders, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
109
112
|
|
|
110
113
|
*See [`documentations/2026-11-14-installation-quick-start.md`](./documentations/2026-11-14-installation-quick-start.md), [`documentations/2026-11-21-application-architecture-and-project-structure.md`](./documentations/2026-11-21-application-architecture-and-project-structure.md), and [`documentations/2026-11-22-task-scheduling.md`](./documentations/2026-11-22-task-scheduling.md) for the complete documentation series and [`CHANGELOG.md`](./CHANGELOG.md) for release notes.*
|
|
111
114
|
|
|
@@ -76,6 +76,7 @@ All core architectural, storage, AI, and security hardening phases have been com
|
|
|
76
76
|
| **Release v0.4.3: Dict & List Support Helpers (`Arr`)** | Added stdlib-only `Arr` utility facade (`swiftpy/support/arr.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) implementing all 36 Pythonic dict/list helpers: dot-notation retrieval/guards (`dict`, `list`, `get`, `exists`, `has`, `has_all`, `has_any`), in-place mutators (`set`, `forget`, `pull`, `push`), non-mutating reshaping & projection (`collapse`, `cross_join`, `divide`, `flatten`, `wrap`, `only`, `except_`, `except_values`, `where_not_null`, `pluck`, `select` with `Model`/`ModelCollection`/`BaseSchema` support), predicates & transforms (`every`, `some`, `first`, `last`, `map`, `map_spread`, `reject`, `partition`), stable sorting/slicing/sampling (`sort`, `sort_desc`, `take`, `random`, `shuffle`), `join()`, and RFC 3986 `query()`, backed by strict `mypy`/`pyrefly` overload contracts and dedicated developer documentation | ✅ Completed |
|
|
77
77
|
| **Release v0.4.4: Number Formatting & Parsing Helpers (`Number`)** | Added zero-dependency, stdlib-only `Number` facade (`swiftpy/support/number.py`, exported via `swiftpy`, `swiftpy.support`, and `swiftpy.helpers`) with pure-Python CLDR/ISO-4217 registries, `Decimal` `ROUND_HALF_UP` rounding, and `ContextVar`-isolated `with_locale()`/`with_currency()` scoping implementing all 14 insight helpers (`abbreviate`, `currency`, `default_currency`, `default_locale`, `file_size`, `for_humans`, `format`, `ordinal`, `parse`, `parse_int`, `spell`, `trim`, `use_locale`, `use_currency`), backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
78
78
|
| **Release v0.4.5: Path, URL, Redirect, Abort & General-Purpose Helpers** | Added application path helpers (`base_path`, `app_path`, `config_path`, `database_path`, `storage_path`), URL/action/redirect helpers (`asset`, `secure_asset`, `secure_url`, `action`, `redirect`, `to_action` with Host-header protection), conditional/retry/memoization flow helpers (`abort_if`, `abort_unless`, `throw_if`, `throw_unless`, async `retry`, task-scoped `@once`), value/date/request/container helpers (`blank`, `filled`, `literal`, `tap`/`atap`, `now`, `today`, `request`, `app(Type)`), bounded `dump`/`dd` (`DumpAndDie`), and AES-256-GCM + HKDF `encrypt`/`decrypt` (`DecryptException`) with key rotation, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
79
|
+
| **Release v0.4.6: Miscellaneous Helpers (`transform`, `validator`, `view`, `Benchmark`, `defer`, `Sleep`, `Timebox`, `Uri`)** | Added `transform()`/`atransform()` with callable defaults, `validator()` helper, `swiftpy/views/` (`View`, `ViewEngine` with dot/slash paths, `namespace::template` roots, optional Jinja2 sandbox + HTML-escaping fallback, direct ASGI route returns, and `MailMessage.view` / dot-notation mail integration), `Benchmark` sync/async millisecond timing & `dd()`, post-response `defer()`/`deferred_scope()` across HTTP/`QueueWorker`/CLI, immutable async `Sleep` + `ContextVar`-isolated `Sleep.fake()`, concurrency-safe `Timebox`, and immutable `Uri` component inspection & query builders, backed by strict `mypy`/`pyrefly` contracts and developer documentation | ✅ Completed |
|
|
79
80
|
|
|
80
81
|
*See [`documentations/2026-11-14-installation-quick-start.md`](./documentations/2026-11-14-installation-quick-start.md), [`documentations/2026-11-21-application-architecture-and-project-structure.md`](./documentations/2026-11-21-application-architecture-and-project-structure.md), and [`documentations/2026-11-22-task-scheduling.md`](./documentations/2026-11-22-task-scheduling.md) for the complete documentation series and [`CHANGELOG.md`](./CHANGELOG.md) for release notes.*
|
|
81
82
|
|
|
@@ -170,7 +170,7 @@ my_api/
|
|
|
170
170
|
├── docker-compose.yml # name: my_api; app, postgres (pgvector:pg16), & redis services
|
|
171
171
|
├── Dockerfile
|
|
172
172
|
├── main.py # Entrypoint: GET /, /api router, register_exception_handlers(app)
|
|
173
|
-
└── pyproject.toml # Configured with swiftpy-framework>=0.4.
|
|
173
|
+
└── pyproject.toml # Configured with swiftpy-framework>=0.4.6, setuptools, & mypy strict settings
|
|
174
174
|
```
|
|
175
175
|
|
|
176
176
|
What `swiftpy new my_api` configures automatically:
|
|
@@ -327,7 +327,7 @@ The scaffolded `Dockerfile` reads `[project].dependencies` from your project's `
|
|
|
327
327
|
name = "my_api"
|
|
328
328
|
version = "0.1.0"
|
|
329
329
|
dependencies = [
|
|
330
|
-
"swiftpy-framework>=0.4.
|
|
330
|
+
"swiftpy-framework>=0.4.6",
|
|
331
331
|
# ...
|
|
332
332
|
]
|
|
333
333
|
```
|
|
@@ -347,7 +347,7 @@ The scaffolded `Dockerfile` reads `[project].dependencies` from your project's `
|
|
|
347
347
|
```
|
|
348
348
|
|
|
349
349
|
- The target version of `swiftpy-framework` must already be published on PyPI before running `docker compose build`. To test an unreleased local framework build in Docker, build a wheel (`uv build --wheel`), copy the `.whl` into your project's build context, and `pip install` that wheel in `Dockerfile`.
|
|
350
|
-
- **Keep your host IDE in sync:** Also run `python -m pip install -U "swiftpy-framework>=0.4.
|
|
350
|
+
- **Keep your host IDE in sync:** Also run `python -m pip install -U "swiftpy-framework>=0.4.6"` on your host machine so your IDE and Pyrefly pick up any new APIs or type annotations from the upgraded release.
|
|
351
351
|
|
|
352
352
|
### Local Virtual Environment Projects (Option B / Minimal App)
|
|
353
353
|
|
|
@@ -358,7 +358,7 @@ If running without Docker, upgrade inside your activated `.venv`:
|
|
|
358
358
|
uv sync --upgrade-package swiftpy-framework
|
|
359
359
|
|
|
360
360
|
# Or with pip
|
|
361
|
-
python -m pip install --upgrade "swiftpy-framework>=0.4.
|
|
361
|
+
python -m pip install --upgrade "swiftpy-framework>=0.4.6"
|
|
362
362
|
swiftpy --version
|
|
363
363
|
```
|
|
364
364
|
|
|
@@ -339,7 +339,8 @@ Key `MailMessage` / `Envelope` behavior:
|
|
|
339
339
|
|
|
340
340
|
By default, `MailTemplateRenderer` resolves templates inside `views/` (configurable via `MailTemplateRenderer(template_dir=...)`):
|
|
341
341
|
|
|
342
|
-
- Passing `template="mail/welcome"` (or `"mail/welcome.html"`) renders **both** `views/mail/welcome.html` and `views/mail/welcome.txt` if present, populating `html_body` and/or `text_body` (explicitly set `html_body` / `text_body` on `MailMessage` take precedence).
|
|
342
|
+
- Passing `template="mail/welcome"` (or `"mail/welcome.html"` or dot-separated `"mail.welcome"`) renders **both** `views/mail/welcome.html` and `views/mail/welcome.txt` if present, populating `html_body` and/or `text_body` (explicitly set `html_body` / `text_body` on `MailMessage` take precedence).
|
|
343
|
+
- You can also pass a `View` directly to `MailMessage(subject=..., to=..., view=view("mail.welcome", {"name": "Ada"}))`, which renders HTML automatically in `Mailable.build_message()`, `Mail.send()`, and `MailManager.send()` when `html_body` is unset.
|
|
343
344
|
- When `jinja2` is installed, SwiftPY uses `jinja2.sandbox.SandboxedEnvironment` with autoescaping enabled for `.html`/`.xml`. Without Jinja2, the built-in fallback renderer substitutes `{{ nested.var }}` with HTML quote escaping for `.html` and unescaped text for `.txt`.
|
|
344
345
|
- Both directory traversal (`../...`) and private/dunder attribute lookups (`_...` / `__...`) raise `MailValidationError`.
|
|
345
346
|
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
# Helpers & Support Utilities (`Arr`, `Number`, Path/URL, Flow, Value, Date & Crypt Helpers)
|
|
1
|
+
# Helpers & Support Utilities (`Arr`, `Number`, Path/URL, Flow, Value, Date, View, Benchmark, Defer, Sleep, Timebox, Uri & Crypt Helpers)
|
|
2
2
|
|
|
3
3
|
## Introduction
|
|
4
4
|
|
|
5
|
-
SwiftPY ships with a lightweight utility suite covering nested dictionaries/lists (`Arr`), locale-aware numbers/currencies (`Number`), filesystem paths, URL/redirect generation, flow control (`abort_if`, `throw_if`, `retry`, `@once`), value/date/request helpers (`blank`, `filled`, `literal`, `tap`, `atap`, `now`, `today`, `request`, `app`), debugging (`dump`, `dd`), encryption (`encrypt`, `decrypt`), strings, and password hashes.
|
|
5
|
+
SwiftPY ships with a lightweight utility suite covering nested dictionaries/lists (`Arr`), locale-aware numbers/currencies (`Number`), filesystem paths, URL/redirect generation, flow control (`abort_if`, `throw_if`, `retry`, `@once`, `defer`), value/date/request/validation helpers (`blank`, `filled`, `literal`, `tap`, `atap`, `transform`, `atransform`, `now`, `today`, `request`, `app`, `validator`), HTML views (`view`, `View`, `ViewEngine`), benchmarking & timing (`Benchmark`, `Sleep`, `Timebox`), immutable URIs (`Uri`), debugging (`dump`, `dd`), encryption (`encrypt`, `decrypt`), strings, and password hashes.
|
|
6
6
|
|
|
7
7
|
All primary utilities are exported from `swiftpy.support`, `swiftpy.helpers`, and lazily from top-level `swiftpy`:
|
|
8
8
|
|
|
9
9
|
```python
|
|
10
10
|
from swiftpy import (
|
|
11
11
|
Arr,
|
|
12
|
+
Benchmark,
|
|
12
13
|
Hash,
|
|
13
14
|
Number,
|
|
15
|
+
Sleep,
|
|
16
|
+
Timebox,
|
|
17
|
+
Uri,
|
|
14
18
|
action,
|
|
15
19
|
app_path,
|
|
16
20
|
asset,
|
|
17
21
|
base_path,
|
|
18
22
|
blank,
|
|
23
|
+
defer,
|
|
19
24
|
encrypt,
|
|
20
25
|
filled,
|
|
21
26
|
isset,
|
|
@@ -26,6 +31,9 @@ from swiftpy import (
|
|
|
26
31
|
retry,
|
|
27
32
|
snake_case,
|
|
28
33
|
tap,
|
|
34
|
+
transform,
|
|
35
|
+
validator,
|
|
36
|
+
view,
|
|
29
37
|
)
|
|
30
38
|
```
|
|
31
39
|
|
|
@@ -483,7 +491,7 @@ class NumberService:
|
|
|
483
491
|
## Value, Object, Date & Request Helpers
|
|
484
492
|
|
|
485
493
|
```python
|
|
486
|
-
from swiftpy import atap, blank, filled, literal, now, request, tap, today
|
|
494
|
+
from swiftpy import atap, atransform, blank, filled, literal, now, request, tap, today, transform, validator
|
|
487
495
|
|
|
488
496
|
# Blank / filled checks (0, 0.0, False are NOT blank; None, whitespace, empty containers ARE blank)
|
|
489
497
|
blank("") # True
|
|
@@ -492,6 +500,17 @@ blank(0) # False
|
|
|
492
500
|
blank(False) # False
|
|
493
501
|
filled("SwiftPY") # True
|
|
494
502
|
|
|
503
|
+
# Conditional value transformation (uses filled() / blank(); supports callable defaults & async atransform())
|
|
504
|
+
maybe_num: int | None = None
|
|
505
|
+
transform(5, lambda v: v * 2) # 10
|
|
506
|
+
transform(maybe_num, lambda v: v * 2, "The value is blank") # "The value is blank"
|
|
507
|
+
transform(maybe_num, lambda v: v * 2, lambda: "fallback") # "fallback"
|
|
508
|
+
# await atransform(user_id, fetch_user, default=None)
|
|
509
|
+
|
|
510
|
+
# Validator helper (mapping data + rules + optional custom messages; use await validate(req, rules) for Request)
|
|
511
|
+
val = validator({"email": "ada@example.com"}, {"email": "required|email"})
|
|
512
|
+
result = await val.validate()
|
|
513
|
+
|
|
495
514
|
# Dynamic attribute namespace (compatible with isset())
|
|
496
515
|
obj = literal(name="Joe", languages=["Python", "SQL"])
|
|
497
516
|
obj.name # "Joe"
|
|
@@ -555,14 +574,154 @@ Invalid, tampered, truncated, cross-mode (`serialize=False` decrypted with `seri
|
|
|
555
574
|
|
|
556
575
|
---
|
|
557
576
|
|
|
577
|
+
## HTML Views (`view`, `View`, `ViewEngine`)
|
|
578
|
+
|
|
579
|
+
Use `view(template, data=None)` to build a lazy HTML view backed by `ViewEngine` (defaulting to `project_root / "views"` or `views.path` / `views.paths` in config). Template names accept dot or slash notation (`"auth.login"` -> `views/auth/login.html`) plus optional package namespaces (`"admin::dashboard"` registered via `engine.add_namespace("admin", path)`):
|
|
580
|
+
|
|
581
|
+
```python
|
|
582
|
+
from swiftpy import Application, View, view
|
|
583
|
+
|
|
584
|
+
app = Application()
|
|
585
|
+
|
|
586
|
+
@app.get("/login")
|
|
587
|
+
async def login_page() -> View:
|
|
588
|
+
return (
|
|
589
|
+
view("auth.login", {"app_name": "SwiftPY"})
|
|
590
|
+
.with_data("title", "Sign In")
|
|
591
|
+
.with_status(200)
|
|
592
|
+
.with_headers({"X-Frame-Options": "DENY"})
|
|
593
|
+
)
|
|
594
|
+
|
|
595
|
+
# Render explicitly to HTML or convert to Response:
|
|
596
|
+
# html = await view("auth.login", {"title": "Sign In"}).render()
|
|
597
|
+
# response = await view("auth.login").to_response()
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
When `jinja2` is installed (optional extra: `uv add "swiftpy-framework[views]"` / `pip install "swiftpy-framework[views]"`), `ViewEngine` renders templates inside `jinja2.sandbox.SandboxedEnvironment` with HTML/XML autoescaping, `enable_async=True`, `auto_reload` tied to `Application.debug` / `app.debug` (caching loaded templates and preloading static `{% extends %}`/`{% include %}` references off-loop when `auto_reload` is false), symlink-confined loaders, `finalize` parity (`None` -> `""`) and recursive rejection of callables and default `object` reprs (including inside containers), and conversion of Jinja2 syntax/missing-include/runtime exceptions into `ViewError` / `ViewNotFoundError` (top-level missing variables render `""`, whereas attribute access on an undefined variable raises `ViewError`). Without `jinja2`, SwiftPY's built-in fallback renderer **fails closed** with `ViewError` on control tags (`{% %}`), comments (`{# #}`), unclosed tags, malformed dotted paths, non-path expressions, or non-scalar values, supporting only `{{ nested.var }}` scalar/`None` substitution with HTML/quote escaping and private/dunder `_attr` and path-escape guards. When rendering `view(...)` inside queued background mailables (`QueueWorker`), configure `views.path` in application config or pass an explicit `engine` if custom view roots/namespaces are needed outside the HTTP container.
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
## Benchmarking & Post-Response Deferred Execution
|
|
605
|
+
|
|
606
|
+
### 1. Micro-Benchmarking (`Benchmark`)
|
|
607
|
+
|
|
608
|
+
Measure **average per-iteration** callback latency in milliseconds (`time.perf_counter_ns()`) across single callables, named scenario mappings, or sequences — note that multi-iteration calls report mean per-iteration milliseconds, not total cumulative duration. Use `measure_async()` / `value_async()` / `dd_async()` for `async def` callbacks (such as ORM queries); `Benchmark.dd()` / `Benchmark.dd_async()` format durations (`"0.500 ms"`) and delegate to `dd()`:
|
|
609
|
+
|
|
610
|
+
```python
|
|
611
|
+
from swiftpy import Benchmark
|
|
612
|
+
|
|
613
|
+
ms = Benchmark.measure(lambda: sum(range(1000)), iterations=10)
|
|
614
|
+
scenarios = await Benchmark.measure_async({
|
|
615
|
+
"Scenario 1": lambda: User.count(),
|
|
616
|
+
"Scenario 2": lambda: User.all(),
|
|
617
|
+
})
|
|
618
|
+
count, duration_ms = await Benchmark.value_async(lambda: User.count())
|
|
619
|
+
|
|
620
|
+
# Dumps formatted milliseconds to stderr and raises DumpAndDie:
|
|
621
|
+
# await Benchmark.dd_async(lambda: User.count(), iterations=10)
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
### 2. Deferred Callbacks (`defer`, `deferred_scope`)
|
|
625
|
+
|
|
626
|
+
Register lightweight sync or async zero-argument work via `defer(callback, *, name=None, always=False, timeout=None)` inside an HTTP request, `QueueWorker` job, async CLI action, or `async with deferred_scope(timeout=None):`. Deferred callbacks execute in **FIFO registration order** immediately **after** the HTTP response finishes transmitting cleanly without body/disconnect errors and with status `< 400` (while the request container and request-scoped bindings remain bound until post-response flush finishes); `.always()` callbacks also execute on 4xx/5xx/exceptions, inner nested `deferred_scope()` blocks flush immediately on exit rather than transferring to parents, and on `asyncio.CancelledError` neither normal nor `.always()` callbacks execute:
|
|
627
|
+
|
|
628
|
+
```python
|
|
629
|
+
from swiftpy import defer
|
|
630
|
+
|
|
631
|
+
@app.post("/orders")
|
|
632
|
+
async def create_order() -> dict[str, str]:
|
|
633
|
+
order_id = "ord_123"
|
|
634
|
+
defer(lambda: metrics.report_order(order_id))
|
|
635
|
+
defer(lambda: audit.record(order_id), name="order-audit").always()
|
|
636
|
+
return {"order_id": order_id}
|
|
637
|
+
```
|
|
638
|
+
|
|
639
|
+
> **Guidance:** `defer()` keeps the ASGI connection open briefly after sending the response while callbacks finish (and child tasks created with `asyncio.create_task()` cannot write into the parent request's queue). Use `dispatch()` / `QueueDispatcher` for long-running background jobs.
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
## Non-Blocking Sleep, `Timebox` & `Uri`
|
|
644
|
+
|
|
645
|
+
### 1. Async `Sleep` & `Sleep.fake()`
|
|
646
|
+
|
|
647
|
+
`Sleep` is non-blocking (`asyncio.sleep`) and immutable, using trailing underscores for Python keywords (`for_`, `and_`, `while_`), validating durations up to `timedelta.max`, and computing `Sleep.until()` delays in exact UTC epoch instants across timezones and DST transitions. Call `Sleep.fake()` in tests for `ContextVar`-isolated duration recording without sleeping:
|
|
648
|
+
|
|
649
|
+
```python
|
|
650
|
+
from datetime import timedelta
|
|
651
|
+
from swiftpy import Sleep, now
|
|
652
|
+
|
|
653
|
+
await Sleep.for_(1).second()
|
|
654
|
+
await Sleep.for_(500).milliseconds()
|
|
655
|
+
await Sleep.for_(5000).microseconds()
|
|
656
|
+
await Sleep.for_(1).second().and_(10).milliseconds()
|
|
657
|
+
await Sleep.until(now() + timedelta(seconds=5))
|
|
658
|
+
result = await Sleep.for_(1).second().then(lambda: 1 + 1)
|
|
659
|
+
await Sleep.for_(1).second().while_(lambda: should_keep_sleeping())
|
|
660
|
+
await Sleep.sleep(2)
|
|
661
|
+
await Sleep.usleep(5000)
|
|
662
|
+
|
|
663
|
+
with Sleep.fake() as fake:
|
|
664
|
+
await Sleep.for_(1).second()
|
|
665
|
+
fake.assert_slept(timedelta(seconds=1), times=1)
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
### 2. Constant-Time Mitigation (`Timebox`)
|
|
669
|
+
|
|
670
|
+
`Timebox` ensures a sync or async callback (receiving the `Timebox` handle whenever it accepts a positional parameter such as `(box: Timebox)`, `(box=None)`, or `(*args)`, or called with zero arguments `()`) consumes at least `microseconds` microseconds (`0..86_400_000_000`, `time.perf_counter_ns()`), continuing to wait the remaining delay even when an `Exception` is raised (`asyncio.CancelledError` propagates immediately):
|
|
671
|
+
|
|
672
|
+
> **Security Note:** `Timebox` mitigates coarse application-level timing differences, not hardware or microarchitectural constant-time execution. Pair it with constant-time comparison primitives such as `hmac.compare_digest()` for secrets, tokens, or signatures.
|
|
673
|
+
|
|
674
|
+
```python
|
|
675
|
+
from swiftpy import Timebox
|
|
676
|
+
|
|
677
|
+
async def verify_login(box: Timebox) -> bool:
|
|
678
|
+
if not valid_signature:
|
|
679
|
+
raise AuthenticationError("Invalid credentials")
|
|
680
|
+
return True
|
|
681
|
+
|
|
682
|
+
await Timebox().call(verify_login, microseconds=10_000)
|
|
683
|
+
# Call box.return_early() inside the callback to skip padding on trusted fast paths
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
### 3. Immutable URI Inspection & Query Manipulation (`Uri`)
|
|
687
|
+
|
|
688
|
+
`Uri` wraps `urllib.parse` as an immutable value object preserving paths verbatim (no automatic dot-segment or slash normalization), rejecting control characters, URIs over `32,768` characters, and out-of-range ports outside `1..65535`, ignoring empty-key query pairs (`?=x`), preserving repeated keys (`?tag=py&tag=rs` -> `{"tag": ["py", "rs"]}`), decoding contiguous zero-based bracket indices (`?a[0]=x&a[1]=y` -> `{"a": ["x", "y"]}`) vs. sparse/non-contiguous keys as string-keyed dicts (`?a[100]=x` -> `{"a": {"100": "x"}}`), keeping the last value on repeated explicit bracket indexes, rejecting conflicting scalar/nested forms (`?a=1&a[b]=2`) with `ValueError`, and decoding blank values (`?name=`, `?flag`) as `""`:
|
|
689
|
+
|
|
690
|
+
```python
|
|
691
|
+
from swiftpy import Uri
|
|
692
|
+
|
|
693
|
+
uri = Uri("https://example.com:8443/users/42?sort=asc&page=1#profile")
|
|
694
|
+
uri.origin() # "https://example.com:8443"
|
|
695
|
+
uri.scheme() # "https"
|
|
696
|
+
uri.authority() # "example.com:8443"
|
|
697
|
+
uri.host() # "example.com"
|
|
698
|
+
uri.port() # 8443
|
|
699
|
+
uri.path() # "/users/42"
|
|
700
|
+
uri.path_segments() # ["users", "42"]
|
|
701
|
+
uri.query() # "sort=asc&page=1"
|
|
702
|
+
uri.query_params() # {"sort": "asc", "page": "1"}
|
|
703
|
+
uri.fragment() # "profile"
|
|
704
|
+
|
|
705
|
+
# Immutable query builders (every method returns a new Uri)
|
|
706
|
+
updated = (
|
|
707
|
+
uri.with_query({"sort": "name"})
|
|
708
|
+
.with_query_if_missing({"page": 1, "limit": 20})
|
|
709
|
+
.push_onto_query("filter", ["active", "pending"])
|
|
710
|
+
.without_query(["page"])
|
|
711
|
+
)
|
|
712
|
+
replaced = uri.replace_query({"page": 1})
|
|
713
|
+
```
|
|
714
|
+
|
|
715
|
+
---
|
|
716
|
+
|
|
558
717
|
## Important Defaults & Production Safeguards
|
|
559
718
|
|
|
560
719
|
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).
|
|
561
|
-
2. **Synchronous
|
|
562
|
-
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`.
|
|
563
|
-
4. **Cycle &
|
|
720
|
+
2. **Synchronous vs. Async Helpers:** Callback-taking `Arr` methods, `@once`, `tap()`, `transform()`, `Benchmark.measure()`, and `retry()`'s `when`/`sleep` callbacks reject awaitables with `TypeError`; use `atap()`, `atransform()`, `Benchmark.measure_async()`, `Sleep`, and `Timebox` in `async def` paths.
|
|
721
|
+
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`. `ViewEngine` likewise blocks traversal, symlink escapes, and `_`/dunder attribute access in templates.
|
|
722
|
+
4. **Cycle, Memory & DoS Guards:** `Arr.flatten()`, `Arr.query()`, and `Uri` detect circular references and raise `ValueError`. `Arr.take()` uses `itertools.islice` and bounded `collections.deque`. `dump()` caps depth (`8`) and output (`64 KiB`), `encrypt()`/`decrypt()` cap payload size (`1 MiB`), `Benchmark` caps `iterations` (`1,000,000`), `defer()` caps callbacks per scope (`1,000`), `Timebox` caps `microseconds` (`86_400_000_000`, 24h), and `Uri` caps URI length (`32,768`, enforced before percent-encoding oversized values), query parameters (`1,000`, enforced early via `parse_qsl(..., max_num_fields=...)` and during encoding), and nesting depth (`8`).
|
|
564
723
|
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 `encrypt()`/`decrypt()` for authenticated secrets and Python's `secrets` module for random tokens.
|
|
565
|
-
6. **Concurrency-Safe Number Localization &
|
|
724
|
+
6. **Concurrency-Safe Number Localization, Deferred Queues & Sleep Faking:** Never call `Number.use_locale()` or `Number.use_currency()` per request on concurrent ASGI workers; use `with Number.with_locale(...):` / `with Number.with_currency(...):`. `Sleep.fake()` uses `ContextVar` isolation, `defer()` enforces task-owned `Context` queues (`RuntimeError` outside an active scope), and `Timebox` isolates per-invocation `return_early()` state across concurrent calls and never skips delays due to `Sleep.fake()`.
|
|
566
725
|
7. **Origin Trust & Open Redirects:** `asset()`, `secure_asset()`, `secure_url()`, and `action()` never read client-controlled `Host` headers; set `APP_URL` (and `ASSET_URL` if serving from a CDN) in `.env`, and always allowlist user-supplied redirect destinations before calling `redirect()`.
|
|
567
726
|
|
|
568
727
|
---
|
|
@@ -30,6 +30,7 @@ from swiftpy.validation import (
|
|
|
30
30
|
str_,
|
|
31
31
|
unique,
|
|
32
32
|
validate,
|
|
33
|
+
validator,
|
|
33
34
|
)
|
|
34
35
|
```
|
|
35
36
|
|
|
@@ -197,7 +198,20 @@ async def update_user(request: Request, id: int) -> Response:
|
|
|
197
198
|
|
|
198
199
|
You can also read matched route path parameters via `request.route("id")` (or `self.route("id")` inside a dynamic `FormRequest.rules()` method).
|
|
199
200
|
|
|
200
|
-
Or use `await validate(data_or_request, schema, ...)` (`Validator(data,
|
|
201
|
+
Or use `await validate(data_or_request, schema, ...)` (or construct a `Validator` first via `validator(data, rules, messages=None, *, registry=None, stop_on_first_error=False)` and await `.validate()`) when you want a `ValidationResult` instead of raising immediately in services, WebSocket handlers, or background jobs:
|
|
202
|
+
|
|
203
|
+
```python
|
|
204
|
+
from swiftpy import validator
|
|
205
|
+
|
|
206
|
+
val = validator(
|
|
207
|
+
{"email": "ada@example.com", "name": "Ada"},
|
|
208
|
+
{"email": "required|email", "name": "required|str|min:2"},
|
|
209
|
+
{"name.min": "Name is too short."},
|
|
210
|
+
)
|
|
211
|
+
res = await val.validate()
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
(`validator()` expects mapping data rather than a `Request` instance — pass `await request.input()` or call `await validate(request, rules)` directly.)
|
|
201
215
|
|
|
202
216
|
```python
|
|
203
217
|
from __future__ import annotations
|
|
@@ -199,6 +199,10 @@ async def cookie_demo() -> Response:
|
|
|
199
199
|
|
|
200
200
|
`StreamingResponse` omits `Content-Length`, streams chunks from any `AsyncIterator[bytes | str]`, and always awaits `.aclose()` (if defined on the iterator) in a `finally` block when streaming completes or aborts. Note that `HEAD` requests automatically suppress sending response body bytes while retaining headers.
|
|
201
201
|
|
|
202
|
+
### 4. Returning HTML Views (`view()`)
|
|
203
|
+
|
|
204
|
+
Route handlers may also return a `View` directly (`return view("auth.login", {"title": "Sign In"})`), which SwiftPY's ASGI dispatcher automatically renders via `ViewEngine` and converts to an HTML `Response` (`text/html; charset=utf-8`). See [Helpers & Support Utilities](2026-11-15-helpers-and-support-utilities.md#html-views-view-view-viewengine).
|
|
205
|
+
|
|
202
206
|
---
|
|
203
207
|
|
|
204
208
|
## Important Defaults & Safeguards
|
|
@@ -10,7 +10,7 @@ dev = [
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "swiftpy-framework"
|
|
13
|
-
version = "0.4.
|
|
13
|
+
version = "0.4.6"
|
|
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 = [
|
|
@@ -46,6 +46,11 @@ classifiers = [
|
|
|
46
46
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
|
47
47
|
]
|
|
48
48
|
|
|
49
|
+
[project.optional-dependencies]
|
|
50
|
+
views = [
|
|
51
|
+
"jinja2>=3.1",
|
|
52
|
+
]
|
|
53
|
+
|
|
49
54
|
[project.urls]
|
|
50
55
|
Homepage = "https://github.com/obrainwave/swiftpy"
|
|
51
56
|
Repository = "https://github.com/obrainwave/swiftpy"
|