swiftpy-framework 0.3.1__tar.gz → 0.3.5__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.3.1 → swiftpy_framework-0.3.5}/.env.example +15 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/CHANGELOG.md +31 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/PKG-INFO +17 -4
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/README.md +16 -3
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/auth.py +6 -0
- swiftpy_framework-0.3.5/config/http.py +42 -0
- swiftpy_framework-0.3.5/config/schedule.py +25 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-14-installation-quick-start.md +1 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-authentication-and-security.md +1 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-cache-events-and-queues.md +2 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-websockets-and-admin.md +1 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-19-cli-and-testing.md +9 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-20-request-and-responses.md +9 -0
- swiftpy_framework-0.3.5/documentations/2026-11-22-task-scheduling.md +247 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/pyproject.toml +1 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/__init__.py +12 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/auth_manager.py +3 -3
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/throttle.py +86 -12
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/cli.py +2 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/new.py +95 -2
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/queue.py +8 -56
- swiftpy_framework-0.3.5/swiftpy/console/commands/schedule.py +227 -0
- swiftpy_framework-0.3.5/swiftpy/console/loader.py +110 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/application.py +107 -13
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/helpers/helper.py +7 -0
- swiftpy_framework-0.3.5/swiftpy/http/client_ip.py +285 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/http/request.py +89 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/queue/worker.py +233 -4
- swiftpy_framework-0.3.5/swiftpy/scheduling/__init__.py +145 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/_redis_lua.py +1135 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/cron.py +479 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/events.py +86 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/exceptions.py +40 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/jobs.py +97 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/models.py +353 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/scheduler.py +1745 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/signing.py +106 -0
- swiftpy_framework-0.3.5/swiftpy/scheduling/store.py +1563 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/websockets/connection.py +39 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_throttle.py +193 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_new_command.py +17 -1
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_phase9_cli_remediation.py +1 -1
- swiftpy_framework-0.3.5/tests/http/test_client_ip.py +515 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_cron_and_timezone.py +203 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_scheduler_core.py +595 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_scheduler_lifecycle_and_cli.py +367 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_scheduler_queue_integration.py +486 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_scheduler_recovery_and_failures.py +498 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_scheduler_redis_store.py +564 -0
- swiftpy_framework-0.3.5/tests/scheduling/test_scheduler_worker_lifecycle.py +587 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/uv.lock +1 -1
- swiftpy_framework-0.3.1/swiftpy/console/loader.py +0 -33
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/.dockerignore +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/.github/workflows/ci.yml +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/.github/workflows/publish.yml +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/.gitignore +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/CONTRIBUTING.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/Dockerfile +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/LICENSE +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/ai/agents/assistant_agent.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/ai/observers/.gitkeep +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/ai/pipelines/.gitkeep +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/ai/providers/.gitkeep +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/ai/tools/system_status_tool.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/ai/vectorstores/.gitkeep +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/events/user_registered.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/controllers/user_controller.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/handler/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/middleware/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/middleware/admin_middleware.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/middleware/auth_middleware.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/middleware/test_middleware.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/requests/create_user_request.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/http/resources/user_resource.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/jobs/send_notification_job.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/listeners/send_welcome_notification.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/mail/welcome_email.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/models/user.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/app_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/auth_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/cache_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/database_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/event_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/filesystem_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/mail_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/providers/queue_service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/repositories/user_repository.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/schemas/user_schema.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/app/services/user_service.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/bootstrap/cache/.gitkeep +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/ai.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/app.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/cache.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/cors.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/database.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/events.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/filesystems.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/logging.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/mail.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/config/queue.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/database/seeders/database_seeder.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/docker-compose.yml +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-ai-subsystem.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-core-application-di-and-config.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-database-query-builder-and-migrations.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-filesystem-storage-and-mail.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-orm-models-and-relationships.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-15-validation-and-form-requests.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-19-application-schemas.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-19-database-schema-and-blueprint.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-20-error-handling.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-20-logging.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-21-application-architecture-and-project-structure.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-21-cors.md +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/main.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/prompts/classify.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/prompts/summarise.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/red-black.png +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/routes/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/routes/api.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/.gitignore +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/_deterministic.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/_fake.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/agents/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/agents/base_agent.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/agents/memory.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/client.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/conversation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/embeddings.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/history_strategies.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/middleware.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/observability/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/observability/drivers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/observability/observer.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/pool.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/pricing.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/prompts/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/prompts/loader.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/providers/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/providers/anthropic_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/providers/base.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/providers/openai_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/rag/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/rag/context_formatter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/rag/pipeline_builder.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/rag/reranker.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/rag/result.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/rag/retriever.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/redis_store.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/streaming.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/tools/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/tools/base_tool.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/tools/first_party.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/tools/tool_loop.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/base.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/api_key_guard.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/events.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/jwt_guard.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/jwt_issuer.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/token_blacklist.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth/user_context.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/auth_manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/cache/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/cache/cache.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/cache/driver.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/cache/drivers/memory.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/cache/drivers/redis.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/cache.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/make.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/migrate.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/seed.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/start.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/commands/storage.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/agent.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/controller.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/event.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/job.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/listener.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/mail.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/middleware.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/migration.alter.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/migration.blank.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/migration.create.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/migration.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/migration.update.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/model.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/prompt.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/provider.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/repository.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/request.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/resource.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/schema.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/seeder.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/service.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/console/stubs/tool.stub +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/bootstrap.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/container.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/container_exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/context.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/core/providers/base.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/identifiers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/migrations/blueprint.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/migrations/lock.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/migrations/migration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/migrations/migrator.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/migrations/schema.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/orm/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/orm/fields.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/orm/model.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/orm/registry.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/orm/relationships.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/pagination/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/pagination/contracts.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/pagination/paginator.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/pagination/simple_paginator.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/pool.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/query_builder.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/seeder.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/database/transaction.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/events/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/events/dispatcher.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/events/redis_bus.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/disk.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/drivers/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/drivers/base.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/drivers/local.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/drivers/s3.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/events.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/metadata.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/paths.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/uploads/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/uploads/handlers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/uploads/validators.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/filesystem/visibility.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/helpers/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/http/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/http/middleware.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/http/response.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/http/router.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/logging/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/logging/channels.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/logging/log.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/logging/manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/attachments.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/envelope.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/facade.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/mailable.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/message.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/models.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/queue/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/queue/job.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/service_provider.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/templates/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/templates/renderer.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/api/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/api/base.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/api/mailgun.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/api/resend.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/api/sendgrid.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/base.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/console.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/sendmail.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/mail/transports/smtp.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/queue/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/queue/dispatcher.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/queue/job.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/support/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/support/hashing.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/support/keys.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/support/redis_config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/support/strings.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/fakes/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/fakes/ai_fake.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/fixtures.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/http_client.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/testing/test_case.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/form_request.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/protocols.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/rules/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/rules/builtin.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/rules/exists.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/rules/registry.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/rules/required.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/rules/unique.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/validation/validator.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/websockets/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/swiftpy/websockets/manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/conftest.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/integration/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/integration/test_chroma.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/integration/test_lancedb.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/integration/test_pinecone.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/integration/test_qdrant.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/integration/test_rag_integration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_agents.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_ai_fake.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_ai_fake_isolation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_client.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_conversation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_embeddings.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_middleware.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_middleware_concurrency.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_observability.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_observability_resilience.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_phase7_ai_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_phase8_rag_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_prompts.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_prompts_security.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_providers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_rag.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_streaming.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_tools.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_vectorstore.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/ai/test_vectorstore_adapters.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/app/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/app/test_application_providers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/app/test_starter_auth.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_api_key_guard.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_attempt.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_context_on_issue.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_proxy.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_auth_security.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_jwt_defaults.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_jwt_issuer.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_password_hashing.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_refresh_and_logout.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/auth/test_token_blacklist.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/benchmarks.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/cache/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/cache/test_cache_concurrency.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/cache/test_cache_manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/cache/test_driver_correctness.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/cache/test_memory_cache.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/cache/test_redis_cache.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/concurrency/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/concurrency/test_circular_dependency.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/concurrency/test_container_semantics.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/concurrency/test_resolution.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/concurrency/test_resolution2.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/conftest.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_cache_commands.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_cli.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_start.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_storage_command.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/console/test_stubs_and_make.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/test_application_config_isolation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/test_core_config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/test_exceptions.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/test_helpers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/test_instance_singletons.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/core/test_lifespan.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_orm_expansion.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_orm_vector.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_pagination_and_grouping.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_pagination_pg_integration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_pgvector_integration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_phase4_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_query_expansion.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_query_expansion_pg_integration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_seeder.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/database/test_sequence_gaps.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/load_test_database.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/load_test_database2.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_arbitrary_primary_keys.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_identifiers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_mass_writes.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_pool_config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_query_builder_terminals.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_sql_injections.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/db/test_transaction_isolation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/docs/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/docs/test_readme_examples.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/e2e/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/e2e/test_concurrent_auth.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/e2e/test_crud_auth_e2e.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/events/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/events/test_event_dispatcher.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/events/test_model_events.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/events/test_redis_bus.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/events/test_redis_bus_reliability.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_cli_storage_link.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_disk.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_filesystem_concurrency.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_filesystem_config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_http_integration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_local_driver.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_multipart.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_paths.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_s3_driver.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_signed_urls.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_storage_facade.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_uploaded_file.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/filesystem/test_validation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_controller_routing.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_error_pipeline.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_http_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_include_router.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_request.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_request_router_abort.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_response.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_route_groups.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_router.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/http/test_router_405_and_has_file.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/integration/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/integration/test_queue_event_websocket.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/logging/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/logging/test_logging.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_api_transports.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_attachments.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_cli_make_mail.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_console_transport.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_envelope.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_facade_and_fake.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_mailable.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_manager_and_config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_message.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_phase6_mail_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_queue_integration.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_service_provider_and_helpers.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_smtp_and_sendmail.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/mail/test_templates.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/migrations/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/migrations/test_migrations.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_defaults_dirty.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_eager_loading.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_hidden.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_instance_update.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_mass_assignment.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_model_events_transaction.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_relationships_hardening.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/orm/test_where_has.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_after_commit.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_phase5_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_poison_messages.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_queue.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_reliability.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_signing.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/queue/test_worker_behavior.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/security/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/security/test_security_audit.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/stress/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/stress/test_context_isolation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/support/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/support/test_redis_config.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/support/test_strings.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/testing/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/testing/test_fixtures.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/testing/test_phase9_testing_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/testing/test_test_client.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/typing/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/typing/test_orm_typing.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_db_rules.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_form_request_fail_closed.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_form_request_pipeline.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_phase6_validation_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_rules_hardening.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_validation_concurrency.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_validation_ergonomics.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/validation/test_validator_rules.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/__init__.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_broadcast.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_handshake.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_lifecycle.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_websocket_concurrency.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_websocket_connection.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_websocket_manager.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_websocket_remediation.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
- {swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/views/mail/template.html +0 -0
|
@@ -6,11 +6,12 @@ APP_KEY=
|
|
|
6
6
|
APP_DEBUG=false
|
|
7
7
|
APP_URL=http://localhost:8000
|
|
8
8
|
|
|
9
|
-
# Server (Uvicorn)
|
|
9
|
+
# Server (Uvicorn) & HTTP Proxy Trust
|
|
10
10
|
SERVER_HOST=127.0.0.1
|
|
11
11
|
SERVER_PORT=8000
|
|
12
12
|
SERVER_WORKERS=1
|
|
13
13
|
SERVER_RELOAD=true
|
|
14
|
+
TRUSTED_PROXIES=
|
|
14
15
|
|
|
15
16
|
# Database (PostgreSQL / asyncpg)
|
|
16
17
|
DB_CONNECTION=postgresql
|
|
@@ -48,6 +49,17 @@ QUEUE_DRIVER=redis
|
|
|
48
49
|
QUEUE_PREFIX=swiftpy_queue:
|
|
49
50
|
QUEUE_NAME=default
|
|
50
51
|
|
|
52
|
+
# Task Scheduler
|
|
53
|
+
SCHEDULE_DRIVER=redis
|
|
54
|
+
SCHEDULE_TIMEZONE=UTC
|
|
55
|
+
SCHEDULE_AUTO_START=false
|
|
56
|
+
SCHEDULE_POLL_INTERVAL=1.0
|
|
57
|
+
SCHEDULE_GRACE_SECONDS=60.0
|
|
58
|
+
SCHEDULE_DISPATCH_LEASE_SECONDS=30.0
|
|
59
|
+
SCHEDULE_MAX_DISPATCH_ATTEMPTS=5
|
|
60
|
+
SCHEDULE_DEFAULT_LOCK_TTL=900
|
|
61
|
+
SCHEDULE_PREFIX=swiftpy_schedule:
|
|
62
|
+
|
|
51
63
|
# Filesystems & Storage
|
|
52
64
|
FILESYSTEM_DISK=local
|
|
53
65
|
STORAGE_LOCAL_ROOT=storage/app/private
|
|
@@ -91,6 +103,8 @@ AUTH_THROTTLE_ENABLED=true
|
|
|
91
103
|
AUTH_THROTTLE_MAX_ATTEMPTS=5
|
|
92
104
|
AUTH_THROTTLE_DECAY_SECONDS=60
|
|
93
105
|
AUTH_THROTTLE_LOCKOUT_SECONDS=60
|
|
106
|
+
AUTH_THROTTLE_IDENTIFIER_MAX_ATTEMPTS=0
|
|
107
|
+
AUTH_THROTTLE_IDENTIFIER_WINDOW_SECONDS=3600
|
|
94
108
|
|
|
95
109
|
# CORS (use explicit comma-separated origins; never pair '*' with CORS_ALLOW_CREDENTIALS=true)
|
|
96
110
|
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8000
|
|
@@ -4,6 +4,37 @@ All notable changes to SwiftPY will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.3.5] - 2026-11-23
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Proxy-Aware Client IP Detection (`swiftpy.http.client_ip`, `swiftpy.http.request`, `swiftpy.websockets.connection`, `swiftpy.auth.auth_manager`):**
|
|
11
|
+
- Added pure stateless resolver module `swiftpy.http.client_ip` (`parse_trusted_proxies`, `extract_trusted_proxies_from_config`, `resolve_client_ip`) defaulting `http.trusted_proxies` fail-safely to `[]` via [`config/http.py`](config/http.py) (`TRUSTED_PROXIES`, `HTTP_TRUSTED_PROXIES`).
|
|
12
|
+
- Added dual instance/class descriptor `request.ip()` and `Request.ip()` on `Request`, `WebSocketConnection.ip()`, WebSocket handshake `Request` context binding in `Application`, and unified `Auth` / `LoginThrottle` IP extraction via `req.ip() or "unknown"`.
|
|
13
|
+
- Enforces strict CIDR validation (`strict=True`), IPv4-mapped IPv6 unwrapping (`::ffff:172.30.0.5` -> `172.30.0.5`), right-to-left `X-Forwarded-For` traversal with header/hop bounds (`4096` bytes / `32` hops) and port/zone-ID/hostname rejection, and conservative resolution to direct peer (without consulting `X-Real-IP`) whenever `X-Forwarded-For` is malformed, empty, or all-trusted.
|
|
14
|
+
- **Native Task Scheduler (`swiftpy.scheduling`):**
|
|
15
|
+
- Added zero-dependency strict 5-field Vixie cron + IANA `ZoneInfo` engine (`cron.py`: macros, ranges, steps, lists, named month/weekday aliases, DOM/DOW OR rule, impossible calendar date rejection with `InvalidCronError`, DST spring-forward/fall-back handling with `fold=0` single firing, `UTC` default).
|
|
16
|
+
- Separated persistent `ScheduleRecord` definitions from `ScheduleOccurrence` execution lifecycles (`pending` -> `claimed` -> `dispatch_pending` -> `dispatched` -> `running` -> `completed` | `failed` | `skipped` | `cancelled`).
|
|
17
|
+
- Added fluent `Schedule` facade, `Scheduler` singleton, `scheduler()` helper, and builders (`cron`, `every_minute`, `every(N).seconds()/minutes()/hours()/days()`, `hourly`, `hourly_at`, `daily`, `daily_at`, `weekly`, `weekly_at`, `monthly`, `monthly_at`, `schedule(at=...)`, `delay(seconds=...)`, `@scheduler.task(...)`, `upsert()`, `update()`, `enable()`, `disable()`, `cancel()`, `get()`, `list_schedules()`, `get_occurrence()`).
|
|
18
|
+
- Added durable `RedisScheduleStore` on `REDIS_QUEUE_DB` (`swiftpy_schedule:`) using atomic Lua scripts (`SAVE_SCHEDULE_LUA`, `CLAIM_DUE_LUA`, `RECLAIM_PENDING_LUA`, `CONFIRM_DISPATCHED_LUA`, compare-and-del `RELEASE_OVERLAP_LOCK_LUA`, monotonic state guards, bounded occurrence history + retention TTLs), plus non-durable process-local `MemoryScheduleStore` (`is_durable = False`, production `ConfigurationError` guard unless opted in) and typed `scheduler.*` lifecycle events (`ScheduleRegistered`, `ScheduledTaskDue`, `ScheduledTaskDispatched`, `ScheduledTaskSkipped`, `ScheduledTaskCompleted`, `ScheduledTaskFailed`).
|
|
19
|
+
- Integrated `QueueWorker` (`running` / `completed` / `failed` hooks, retry overlap lock retention, DLQ lock release, standalone worker Redis prefix resolution), `FrameworkServiceProvider` (`schedule.auto_start = False` default, `SCHEDULE_AUTO_START=true`, clean loop cancellation on shutdown), and CLI commands `schedule:list [--app] [--json] [--prefix]`, `schedule:run [--app] [--limit] [--prefix]`, and `schedule:work [--app] [--sleep] [--max-ticks] [--prefix]`.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- **Packaging, Configuration & Scaffolding:** Bumped `swiftpy-framework` and `swiftpy new` dependency floor to `0.3.5`, added [`config/http.py`](config/http.py) and [`config/schedule.py`](config/schedule.py), added `SCHEDULE_*` keys to [`.env.example`](.env.example), and updated `swiftpy new` templates accordingly.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- **`Application(trusted_proxies="a,b")`:** a comma-separated string passed validation but was stored in config as a single invalid entry, making every `request.ip()` (and therefore `Auth.attempt`) raise `ConfigurationError`. The normalized network list is now stored.
|
|
26
|
+
- **Scheduler wake-up cost:** the scheduler loop no longer lists every schedule per iteration; it reads the earliest due time through the new `ScheduleStore.next_due_at()` (`ZRANGE ... 0 0` on Redis) and backs off instead of spinning when overdue work cannot be claimed.
|
|
27
|
+
- **Overlap lock lifetime:** `without_overlapping()` locks are re-armed to their full `lock_ttl` when the worker starts the job, kept alive by a worker heartbeat while the job runs, and extended across retry backoff delays, so queue wait time or long runs no longer allow overlapping executions. Added `ScheduleStore.extend_overlap_lock()` (token-verified compare-and-pexpire).
|
|
28
|
+
- **Duplicate delivery:** `QueueWorker` acknowledges and skips a scheduled job whose occurrence has already completed. Delivery stays at-least-once; use `job.data["_swiftpy_schedule_occurrence"]` as an idempotency key for non-idempotent work.
|
|
29
|
+
- **Request/Scheduler internals:** `request.ip()` is memoized per request, `_instantiate_job_class` no longer relies on `assert`, and the production `memory` schedule-driver guard is shared through `ensure_memory_driver_allowed()`.
|
|
30
|
+
|
|
31
|
+
### Security
|
|
32
|
+
- **Login throttle (`LoginThrottle`):** IPv6 clients are bucketed by `/64` (IPv4-mapped IPv6 collapses to IPv4) so rotating addresses inside one prefix cannot bypass lockouts; the per-key generation counter now expires (`2 * (lockout_seconds + decay_seconds)`) instead of living forever; added optional identifier-wide cap across all IPs via `auth.throttle.identifier_max_attempts` / `identifier_window_seconds` (`AUTH_THROTTLE_IDENTIFIER_MAX_ATTEMPTS`, `AUTH_THROTTLE_IDENTIFIER_WINDOW_SECONDS`; disabled by default because it lets an attacker lock a known account for `lockout_seconds`).
|
|
33
|
+
- **Signed schedules:** schedule records now carry an HMAC-SHA256 `signature` (APP_KEY, previous keys accepted) over `task_kind`, `task_name`, `args`, `kwargs`, and `queue`. The signature is copied onto each occurrence and verified before a job is built; tampered or unsigned records (for example rewritten directly in Redis) are marked `failed` with `ScheduleSignatureError` and never pushed. Schedules registered before an `APP_KEY` was configured must be re-registered.
|
|
34
|
+
|
|
35
|
+
### Documentation
|
|
36
|
+
- Added dedicated Task Scheduler user guide [`documentations/2026-11-22-task-scheduling.md`](documentations/2026-11-22-task-scheduling.md) and updated Requests & Responses, WebSockets, Authentication & Security, Cache/Events/Queues, CLI & Testing, Installation Quick Start, [`docs/2026-11-14_documentation_plan.md`](docs/2026-11-14_documentation_plan.md), and [`README.md`](README.md) for `v0.3.5`.
|
|
37
|
+
|
|
7
38
|
## [0.3.1] - 2026-11-22
|
|
8
39
|
|
|
9
40
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: swiftpy-framework
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
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
|
|
@@ -60,7 +60,7 @@ SwiftPY brings the joy and productivity of Laravel to the modern asynchronous Py
|
|
|
60
60
|
- **Native AI Subsystem (`swiftpy.ai`)**: Fluent async `AI` client across OpenAI and Anthropic providers with shared `AIHttpPool` pooling and SSE streaming, batched `EmbeddingsClient`, unified `VectorStore` adapters (`PgVectorAdapter` for PostgreSQL `pgvector`, `InMemoryVectorStore`, Qdrant, Pinecone, Chroma, LanceDB), nonce-bounded RAG pipelines (`rag()`, `Retriever`, Cohere/CrossEncoder rerankers), autonomous `@tool` / `Agent` loops (`app/ai/{agents,tools,pipelines,providers,vectorstores,observers}/`), versioned `messages`-list prompt templates (`Prompt.load("summarise.v2")`, `prompts/`), moderation/rate-limit/budget middlewares, observability telemetry, and `AIFake` / `VectorStoreFake` test doubles.
|
|
61
61
|
- **Database Engine & Native Transactions**: Connection pool management, automatic transaction propagation across context variables, nested transaction savepoints, and strict SQL injection prevention with full identifier quoting for reserved words.
|
|
62
62
|
- **Fluent Migration DSL & Schema Builder**: Laravel-inspired `Blueprint` table definitions, safe statement ordering (drops executed before adds), column comments, unsigned checks, composite keys, and distributed PostgreSQL advisory locks.
|
|
63
|
-
- **At-Least-Once Queues & Signed Bus**: Robust background jobs with Redis visibility timeout leases, HMAC-SHA256 envelope signing, dead-letter routing, and a cryptographically protected cross-worker event bus.
|
|
63
|
+
- **At-Least-Once Queues, Task Scheduler & Signed Bus**: Robust background jobs with Redis visibility timeout leases, HMAC-SHA256 envelope signing, dead-letter routing, proxy-aware client IP resolution (`request.ip()`, `Request.ip()`, `websocket.ip()` behind `TRUSTED_PROXIES`), a native 5-field Vixie cron + `ZoneInfo` task scheduler (`Schedule` / `Scheduler`, crash-recoverable `RedisScheduleStore`, overlap locks, `schedule:work` / `schedule:run` / `schedule:list`), and a cryptographically protected cross-worker event bus.
|
|
64
64
|
- **WebSocket Gateway**: Structured WebSocket connection management, topic subscriptions, broadcast fan-out, ping/pong heartbeats, and strict same-origin handshake validation.
|
|
65
65
|
- **Zero-Config Provider Auto-Discovery**: Automatic service provider discovery in `app/providers/` that registers container dependencies behind the scenes without manual entrypoint registration.
|
|
66
66
|
- **Developer CLI (`swiftpy`)**: Built-in CLI for scaffolding new projects (`new`) and components (`make:*`), running/rolling back/resetting/seeding migrations (`migrate*`, `db:seed`), linking public storage, managing queue workers and failed jobs, precompiling caches, and starting the ASGI server.
|
|
@@ -93,8 +93,9 @@ All core architectural, storage, AI, and security hardening phases have been com
|
|
|
93
93
|
| **Release v0.2.2: Model `.update()`, `isset()`, `has_file()`, & Auth TTL** | `Model.update()` / `force_update()`, `JWT_ACCESS_TTL=3600`, 405 `"for route"` detail, `isset()` helper, `request.has_file()` (sync & `await`), CORS guide | ✅ Completed |
|
|
94
94
|
| **Release v0.3.0: Project Structure, AI/Prompts & Controller Routing** | Standardized `app/` + `app/ai/{agents,tools,pipelines,providers,vectorstores,observers}/` + `prompts/` scaffolding, `Prompt.load("summarise.v2")` & `messages` lists, direct unbound controller method DI (`router.get(..., Controller.index)`), `make:agent`/`make:tool`/`make:prompt`, Admin Dashboard removal | ✅ Completed |
|
|
95
95
|
| **Release v0.3.1: Auth Ergonomics, ORM `has()` & Login Throttling** | `Auth.attempt()`, `Callback` conditions + ORM `has()`/`where_has()`, `attempt_when()`, Remember Me cookies (`Blueprint.remember_token()`, `via_remember()`), `login_using_id()`, `once()`, default `LoginThrottle` (`429 TooManyRequestsError`), `Request.cookies` | ✅ Completed |
|
|
96
|
+
| **Release v0.3.5: Client IP Detection & Native Task Scheduler** | Fail-safe `request.ip()` / `Request.ip()` / `websocket.ip()` & `LoginThrottle` IP trust via `TRUSTED_PROXIES`, zero-dependency 5-field cron + `ZoneInfo` scheduler (`Schedule` / `Scheduler`), Redis crash recovery (`_CLAIM_DUE_LUA` / `_RECLAIM_PENDING_LUA`), worker overlap locks, `schedule:list`/`run`/`work` | ✅ Completed |
|
|
96
97
|
|
|
97
|
-
*See [`documentations/2026-11-14-installation-quick-start.md`](./documentations/2026-11-14-installation-quick-start.md)
|
|
98
|
+
*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.*
|
|
98
99
|
|
|
99
100
|
---
|
|
100
101
|
|
|
@@ -487,6 +488,11 @@ swiftpy queue:failed --limit 50
|
|
|
487
488
|
swiftpy queue:retry --all
|
|
488
489
|
swiftpy queue:flush
|
|
489
490
|
|
|
491
|
+
# List, trigger once, or run the dedicated task scheduler loop
|
|
492
|
+
swiftpy schedule:list --app main:app
|
|
493
|
+
swiftpy schedule:run --app main:app
|
|
494
|
+
swiftpy schedule:work --app main:app --sleep 1.0
|
|
495
|
+
|
|
490
496
|
# Run, inspect, rollback, reset, and seed database migrations
|
|
491
497
|
swiftpy migrate
|
|
492
498
|
swiftpy migrate:status
|
|
@@ -544,6 +550,10 @@ SwiftPY reads environment variables and YAML/Python configuration files with str
|
|
|
544
550
|
| `CORS_ALLOWED_ORIGINS` | `cors.allowed_origins` | `[]` | Comma-separated list of exact allowed CORS origins (never pair `"*"` with `CORS_ALLOW_CREDENTIALS=true`). See the [CORS Guide](./documentations/2026-11-21-cors.md). |
|
|
545
551
|
| `CORS_ALLOW_CREDENTIALS` | `cors.allow_credentials` | `False` | Whether cross-origin requests may include credentials/cookies. |
|
|
546
552
|
| `CORS_MAX_AGE` | `cors.max_age` | `600` | Preflight `OPTIONS` cache duration (`Access-Control-Max-Age`) in seconds. |
|
|
553
|
+
| `TRUSTED_PROXIES` | `http.trusted_proxies` | `[]` | Comma-separated or JSON array of trusted proxy IPs / strict CIDRs for `request.ip()`, `ws.ip()`, and `LoginThrottle`. |
|
|
554
|
+
| `SCHEDULE_DRIVER` | `schedule.driver` | `"redis"` | Scheduler persistence backend (`"redis"` on `REDIS_QUEUE_DB` or non-durable `"memory"`). See the [Task Scheduling Guide](./documentations/2026-11-22-task-scheduling.md). |
|
|
555
|
+
| `SCHEDULE_TIMEZONE` | `schedule.timezone` | `"UTC"` | Default IANA timezone name for scheduled cron/one-time tasks (`fallbacks` to `APP_TIMEZONE` then `"UTC"`). |
|
|
556
|
+
| `SCHEDULE_AUTO_START` | `schedule.auto_start` | `False` | Opt-in in-process scheduler loop during `Application.startup()` (keep `False` when scaling multiple web workers). |
|
|
547
557
|
| `AI_ENABLED` | `ai.enabled` | `True` | Master toggle for `swiftpy.ai` requests (raises `AIModuleDisabledError` when disabled). |
|
|
548
558
|
| `AI_DEFAULT_PROVIDER` | `ai.default` | `"openai"` | Default LLM provider (`"openai"` or `"anthropic"`) when not inferred from model name. |
|
|
549
559
|
| `OPENAI_API_KEY` | `ai.providers.openai.api_key` | `""` | OpenAI API key for chat, streaming, and embeddings. |
|
|
@@ -638,9 +648,11 @@ SwiftPY follows a clean, intuitive layout inspired by modern application archite
|
|
|
638
648
|
│ ├── database.py
|
|
639
649
|
│ ├── events.py
|
|
640
650
|
│ ├── filesystems.py
|
|
651
|
+
│ ├── http.py
|
|
641
652
|
│ ├── logging.py
|
|
642
653
|
│ ├── mail.py
|
|
643
|
-
│
|
|
654
|
+
│ ├── queue.py
|
|
655
|
+
│ └── schedule.py
|
|
644
656
|
├── database/
|
|
645
657
|
│ └── migrations/ # Timestamped database migrations
|
|
646
658
|
├── prompts/ # Named & versioned AI prompt templates (summarise.py, classify.py)
|
|
@@ -659,6 +671,7 @@ SwiftPY follows a clean, intuitive layout inspired by modern application archite
|
|
|
659
671
|
│ ├── logging/ # Log facade, LogManager, async QueueHandler/QueueListener drivers
|
|
660
672
|
│ ├── mail/ # Mailables, SMTP/Sendmail/API transports, templates
|
|
661
673
|
│ ├── queue/ # At-least-once queue workers, job serialization
|
|
674
|
+
│ ├── scheduling/ # 5-field cron engine, Redis/Memory stores, Scheduler & builders
|
|
662
675
|
│ ├── support/ # Shared identifiers, keys, Redis config, string inflection
|
|
663
676
|
│ ├── testing/ # TestClient, TestCase, AIFake, MailFake, VectorStoreFake, DB fixtures
|
|
664
677
|
│ ├── validation/ # FormRequest, fail-closed Validator, builtin & DB rules
|
|
@@ -30,7 +30,7 @@ SwiftPY brings the joy and productivity of Laravel to the modern asynchronous Py
|
|
|
30
30
|
- **Native AI Subsystem (`swiftpy.ai`)**: Fluent async `AI` client across OpenAI and Anthropic providers with shared `AIHttpPool` pooling and SSE streaming, batched `EmbeddingsClient`, unified `VectorStore` adapters (`PgVectorAdapter` for PostgreSQL `pgvector`, `InMemoryVectorStore`, Qdrant, Pinecone, Chroma, LanceDB), nonce-bounded RAG pipelines (`rag()`, `Retriever`, Cohere/CrossEncoder rerankers), autonomous `@tool` / `Agent` loops (`app/ai/{agents,tools,pipelines,providers,vectorstores,observers}/`), versioned `messages`-list prompt templates (`Prompt.load("summarise.v2")`, `prompts/`), moderation/rate-limit/budget middlewares, observability telemetry, and `AIFake` / `VectorStoreFake` test doubles.
|
|
31
31
|
- **Database Engine & Native Transactions**: Connection pool management, automatic transaction propagation across context variables, nested transaction savepoints, and strict SQL injection prevention with full identifier quoting for reserved words.
|
|
32
32
|
- **Fluent Migration DSL & Schema Builder**: Laravel-inspired `Blueprint` table definitions, safe statement ordering (drops executed before adds), column comments, unsigned checks, composite keys, and distributed PostgreSQL advisory locks.
|
|
33
|
-
- **At-Least-Once Queues & Signed Bus**: Robust background jobs with Redis visibility timeout leases, HMAC-SHA256 envelope signing, dead-letter routing, and a cryptographically protected cross-worker event bus.
|
|
33
|
+
- **At-Least-Once Queues, Task Scheduler & Signed Bus**: Robust background jobs with Redis visibility timeout leases, HMAC-SHA256 envelope signing, dead-letter routing, proxy-aware client IP resolution (`request.ip()`, `Request.ip()`, `websocket.ip()` behind `TRUSTED_PROXIES`), a native 5-field Vixie cron + `ZoneInfo` task scheduler (`Schedule` / `Scheduler`, crash-recoverable `RedisScheduleStore`, overlap locks, `schedule:work` / `schedule:run` / `schedule:list`), and a cryptographically protected cross-worker event bus.
|
|
34
34
|
- **WebSocket Gateway**: Structured WebSocket connection management, topic subscriptions, broadcast fan-out, ping/pong heartbeats, and strict same-origin handshake validation.
|
|
35
35
|
- **Zero-Config Provider Auto-Discovery**: Automatic service provider discovery in `app/providers/` that registers container dependencies behind the scenes without manual entrypoint registration.
|
|
36
36
|
- **Developer CLI (`swiftpy`)**: Built-in CLI for scaffolding new projects (`new`) and components (`make:*`), running/rolling back/resetting/seeding migrations (`migrate*`, `db:seed`), linking public storage, managing queue workers and failed jobs, precompiling caches, and starting the ASGI server.
|
|
@@ -63,8 +63,9 @@ All core architectural, storage, AI, and security hardening phases have been com
|
|
|
63
63
|
| **Release v0.2.2: Model `.update()`, `isset()`, `has_file()`, & Auth TTL** | `Model.update()` / `force_update()`, `JWT_ACCESS_TTL=3600`, 405 `"for route"` detail, `isset()` helper, `request.has_file()` (sync & `await`), CORS guide | ✅ Completed |
|
|
64
64
|
| **Release v0.3.0: Project Structure, AI/Prompts & Controller Routing** | Standardized `app/` + `app/ai/{agents,tools,pipelines,providers,vectorstores,observers}/` + `prompts/` scaffolding, `Prompt.load("summarise.v2")` & `messages` lists, direct unbound controller method DI (`router.get(..., Controller.index)`), `make:agent`/`make:tool`/`make:prompt`, Admin Dashboard removal | ✅ Completed |
|
|
65
65
|
| **Release v0.3.1: Auth Ergonomics, ORM `has()` & Login Throttling** | `Auth.attempt()`, `Callback` conditions + ORM `has()`/`where_has()`, `attempt_when()`, Remember Me cookies (`Blueprint.remember_token()`, `via_remember()`), `login_using_id()`, `once()`, default `LoginThrottle` (`429 TooManyRequestsError`), `Request.cookies` | ✅ Completed |
|
|
66
|
+
| **Release v0.3.5: Client IP Detection & Native Task Scheduler** | Fail-safe `request.ip()` / `Request.ip()` / `websocket.ip()` & `LoginThrottle` IP trust via `TRUSTED_PROXIES`, zero-dependency 5-field cron + `ZoneInfo` scheduler (`Schedule` / `Scheduler`), Redis crash recovery (`_CLAIM_DUE_LUA` / `_RECLAIM_PENDING_LUA`), worker overlap locks, `schedule:list`/`run`/`work` | ✅ Completed |
|
|
66
67
|
|
|
67
|
-
*See [`documentations/2026-11-14-installation-quick-start.md`](./documentations/2026-11-14-installation-quick-start.md)
|
|
68
|
+
*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.*
|
|
68
69
|
|
|
69
70
|
---
|
|
70
71
|
|
|
@@ -457,6 +458,11 @@ swiftpy queue:failed --limit 50
|
|
|
457
458
|
swiftpy queue:retry --all
|
|
458
459
|
swiftpy queue:flush
|
|
459
460
|
|
|
461
|
+
# List, trigger once, or run the dedicated task scheduler loop
|
|
462
|
+
swiftpy schedule:list --app main:app
|
|
463
|
+
swiftpy schedule:run --app main:app
|
|
464
|
+
swiftpy schedule:work --app main:app --sleep 1.0
|
|
465
|
+
|
|
460
466
|
# Run, inspect, rollback, reset, and seed database migrations
|
|
461
467
|
swiftpy migrate
|
|
462
468
|
swiftpy migrate:status
|
|
@@ -514,6 +520,10 @@ SwiftPY reads environment variables and YAML/Python configuration files with str
|
|
|
514
520
|
| `CORS_ALLOWED_ORIGINS` | `cors.allowed_origins` | `[]` | Comma-separated list of exact allowed CORS origins (never pair `"*"` with `CORS_ALLOW_CREDENTIALS=true`). See the [CORS Guide](./documentations/2026-11-21-cors.md). |
|
|
515
521
|
| `CORS_ALLOW_CREDENTIALS` | `cors.allow_credentials` | `False` | Whether cross-origin requests may include credentials/cookies. |
|
|
516
522
|
| `CORS_MAX_AGE` | `cors.max_age` | `600` | Preflight `OPTIONS` cache duration (`Access-Control-Max-Age`) in seconds. |
|
|
523
|
+
| `TRUSTED_PROXIES` | `http.trusted_proxies` | `[]` | Comma-separated or JSON array of trusted proxy IPs / strict CIDRs for `request.ip()`, `ws.ip()`, and `LoginThrottle`. |
|
|
524
|
+
| `SCHEDULE_DRIVER` | `schedule.driver` | `"redis"` | Scheduler persistence backend (`"redis"` on `REDIS_QUEUE_DB` or non-durable `"memory"`). See the [Task Scheduling Guide](./documentations/2026-11-22-task-scheduling.md). |
|
|
525
|
+
| `SCHEDULE_TIMEZONE` | `schedule.timezone` | `"UTC"` | Default IANA timezone name for scheduled cron/one-time tasks (`fallbacks` to `APP_TIMEZONE` then `"UTC"`). |
|
|
526
|
+
| `SCHEDULE_AUTO_START` | `schedule.auto_start` | `False` | Opt-in in-process scheduler loop during `Application.startup()` (keep `False` when scaling multiple web workers). |
|
|
517
527
|
| `AI_ENABLED` | `ai.enabled` | `True` | Master toggle for `swiftpy.ai` requests (raises `AIModuleDisabledError` when disabled). |
|
|
518
528
|
| `AI_DEFAULT_PROVIDER` | `ai.default` | `"openai"` | Default LLM provider (`"openai"` or `"anthropic"`) when not inferred from model name. |
|
|
519
529
|
| `OPENAI_API_KEY` | `ai.providers.openai.api_key` | `""` | OpenAI API key for chat, streaming, and embeddings. |
|
|
@@ -608,9 +618,11 @@ SwiftPY follows a clean, intuitive layout inspired by modern application archite
|
|
|
608
618
|
│ ├── database.py
|
|
609
619
|
│ ├── events.py
|
|
610
620
|
│ ├── filesystems.py
|
|
621
|
+
│ ├── http.py
|
|
611
622
|
│ ├── logging.py
|
|
612
623
|
│ ├── mail.py
|
|
613
|
-
│
|
|
624
|
+
│ ├── queue.py
|
|
625
|
+
│ └── schedule.py
|
|
614
626
|
├── database/
|
|
615
627
|
│ └── migrations/ # Timestamped database migrations
|
|
616
628
|
├── prompts/ # Named & versioned AI prompt templates (summarise.py, classify.py)
|
|
@@ -629,6 +641,7 @@ SwiftPY follows a clean, intuitive layout inspired by modern application archite
|
|
|
629
641
|
│ ├── logging/ # Log facade, LogManager, async QueueHandler/QueueListener drivers
|
|
630
642
|
│ ├── mail/ # Mailables, SMTP/Sendmail/API transports, templates
|
|
631
643
|
│ ├── queue/ # At-least-once queue workers, job serialization
|
|
644
|
+
│ ├── scheduling/ # 5-field cron engine, Redis/Memory stores, Scheduler & builders
|
|
632
645
|
│ ├── support/ # Shared identifiers, keys, Redis config, string inflection
|
|
633
646
|
│ ├── testing/ # TestClient, TestCase, AIFake, MailFake, VectorStoreFake, DB fixtures
|
|
634
647
|
│ ├── validation/ # FormRequest, fail-closed Validator, builtin & DB rules
|
|
@@ -19,6 +19,12 @@ CONFIG: dict[str, object] = {
|
|
|
19
19
|
"max_attempts": int(env("AUTH_THROTTLE_MAX_ATTEMPTS", "5")),
|
|
20
20
|
"decay_seconds": int(env("AUTH_THROTTLE_DECAY_SECONDS", "60")),
|
|
21
21
|
"lockout_seconds": int(env("AUTH_THROTTLE_LOCKOUT_SECONDS", "60")),
|
|
22
|
+
"identifier_max_attempts": int(
|
|
23
|
+
env("AUTH_THROTTLE_IDENTIFIER_MAX_ATTEMPTS", "0")
|
|
24
|
+
),
|
|
25
|
+
"identifier_window_seconds": int(
|
|
26
|
+
env("AUTH_THROTTLE_IDENTIFIER_WINDOW_SECONDS", "3600")
|
|
27
|
+
),
|
|
22
28
|
"prefix": env("AUTH_THROTTLE_PREFIX", "auth:throttle"),
|
|
23
29
|
},
|
|
24
30
|
"guards": {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from swiftpy.helpers.helper import env
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _parse_proxy_env(raw: Any) -> Any:
|
|
10
|
+
if isinstance(raw, list):
|
|
11
|
+
return raw
|
|
12
|
+
if not isinstance(raw, str):
|
|
13
|
+
return raw
|
|
14
|
+
stripped = raw.strip()
|
|
15
|
+
if not stripped:
|
|
16
|
+
return []
|
|
17
|
+
if stripped.startswith("[") and stripped.endswith("]"):
|
|
18
|
+
try:
|
|
19
|
+
parsed = json.loads(stripped)
|
|
20
|
+
except (json.JSONDecodeError, ValueError):
|
|
21
|
+
return [stripped]
|
|
22
|
+
if isinstance(parsed, list):
|
|
23
|
+
return parsed
|
|
24
|
+
return parsed
|
|
25
|
+
return [entry.strip() for entry in stripped.split(",")]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
_RAW_TRUSTED_PROXIES = env("TRUSTED_PROXIES", env("HTTP_TRUSTED_PROXIES", "")) or ""
|
|
29
|
+
_RAW_MAX_CONTENT_LENGTH = env("HTTP_MAX_CONTENT_LENGTH", None)
|
|
30
|
+
|
|
31
|
+
CONFIG: dict[str, Any] = {
|
|
32
|
+
"trusted_proxies": _parse_proxy_env(_RAW_TRUSTED_PROXIES),
|
|
33
|
+
"max_body_size": int(
|
|
34
|
+
env("HTTP_MAX_BODY_SIZE", str(2 * 1024 * 1024)) or (2 * 1024 * 1024)
|
|
35
|
+
),
|
|
36
|
+
"max_content_length": (
|
|
37
|
+
int(_RAW_MAX_CONTENT_LENGTH)
|
|
38
|
+
if _RAW_MAX_CONTENT_LENGTH not in (None, "")
|
|
39
|
+
else None
|
|
40
|
+
),
|
|
41
|
+
"max_json_depth": int(env("HTTP_MAX_JSON_DEPTH", "32") or "32"),
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from swiftpy.helpers.helper import env, env_bool
|
|
4
|
+
|
|
5
|
+
CONFIG: dict[str, object] = {
|
|
6
|
+
"driver": env("SCHEDULE_DRIVER", "redis"),
|
|
7
|
+
"timezone": env("SCHEDULE_TIMEZONE", env("APP_TIMEZONE", "UTC")),
|
|
8
|
+
"auto_start": env_bool("SCHEDULE_AUTO_START", False),
|
|
9
|
+
"poll_interval": float(env("SCHEDULE_POLL_INTERVAL", "1.0") or "1.0"),
|
|
10
|
+
"grace_seconds": float(env("SCHEDULE_GRACE_SECONDS", "60.0") or "60.0"),
|
|
11
|
+
"dispatch_lease_seconds": float(
|
|
12
|
+
env("SCHEDULE_DISPATCH_LEASE_SECONDS", "30.0") or "30.0"
|
|
13
|
+
),
|
|
14
|
+
"max_dispatch_attempts": int(
|
|
15
|
+
env("SCHEDULE_MAX_DISPATCH_ATTEMPTS", "5") or "5"
|
|
16
|
+
),
|
|
17
|
+
"default_lock_ttl": int(env("SCHEDULE_DEFAULT_LOCK_TTL", "900") or "900"),
|
|
18
|
+
"prefix": env("SCHEDULE_PREFIX", "swiftpy_schedule:"),
|
|
19
|
+
"retention_seconds": int(
|
|
20
|
+
env("SCHEDULE_RETENTION_SECONDS", str(7 * 24 * 3600)) or str(7 * 24 * 3600)
|
|
21
|
+
),
|
|
22
|
+
"max_occurrences_per_schedule": int(
|
|
23
|
+
env("SCHEDULE_MAX_OCCURRENCES", "200") or "200"
|
|
24
|
+
),
|
|
25
|
+
}
|
|
@@ -411,7 +411,7 @@ Supported `Auth` login patterns:
|
|
|
411
411
|
...
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
- **Default Login Throttling (`LoginThrottle`):** Enabled by default on `Auth.attempt()` and `Auth.attempt_when()` (`max_attempts=5`, `decay_seconds=60`, `lockout_seconds=60` in `config/auth.py`). Exceeding `max_attempts` dispatches a `Lockout` event (`"auth.lockout"`) and raises `TooManyRequestsError`, mapping automatically to HTTP `429 Too Many Requests` with a `Retry-After` header. Call `await Auth.too_many_attempts(...)`, `await Auth.available_in(...)`, or `await Auth.clear_throttle(...)` to inspect or reset counters manually, or disable globally with `AUTH_THROTTLE_ENABLED=false`.
|
|
414
|
+
- **Default Login Throttling (`LoginThrottle`):** Enabled by default on `Auth.attempt()` and `Auth.attempt_when()` (`max_attempts=5`, `decay_seconds=60`, `lockout_seconds=60` in `config/auth.py`). Keys rate-limit counters and `Failed` / `Lockout` event client IPs through `request.ip()` so verified `X-Forwarded-For` client IPs work cleanly behind `TRUSTED_PROXIES` while forged forwarding headers from untrusted peers are ignored. Exceeding `max_attempts` dispatches a `Lockout` event (`"auth.lockout"`) and raises `TooManyRequestsError`, mapping automatically to HTTP `429 Too Many Requests` with a `Retry-After` header. Call `await Auth.too_many_attempts(...)`, `await Auth.available_in(...)`, or `await Auth.clear_throttle(...)` to inspect or reset counters manually, or disable globally with `AUTH_THROTTLE_ENABLED=false`. IPv6 clients share one bucket per `/64` prefix (IPv4-mapped IPv6 uses the IPv4 bucket), so rotating addresses inside a prefix does not reset the counter. Optionally set `AUTH_THROTTLE_IDENTIFIER_MAX_ATTEMPTS` (> 0, default `0` = off) to also cap failures per identifier across all IPs within `AUTH_THROTTLE_IDENTIFIER_WINDOW_SECONDS` (default `3600`); when the cap is hit every IP is locked out for `lockout_seconds`, which also lets an attacker who knows an identifier lock that account out temporarily. `Auth.attempt(..., ip=...)` trusts the supplied `ip` as-is, so never pass a raw request header value.
|
|
415
415
|
|
|
416
416
|
### 5. Token Revocation, `auth().logout()` & `auth().logout_all()`
|
|
417
417
|
|
|
@@ -296,6 +296,8 @@ swiftpy queue:retry all --queue emails --app main:app
|
|
|
296
296
|
swiftpy queue:flush --queue emails --app main:app
|
|
297
297
|
```
|
|
298
298
|
|
|
299
|
+
When `QueueWorker` executes tasks submitted by the [Task Scheduler](2026-11-22-task-scheduling.md), it automatically records `running`, `completed`, and `failed` occurrence transitions in Redis, retains `.without_overlapping()` locks across intermediate backoff retries, and releases locks via compare-and-delete Lua upon `ack()` or final DLQ exhaustion.
|
|
300
|
+
|
|
299
301
|
---
|
|
300
302
|
|
|
301
303
|
## Important Defaults & Production Safeguards
|
|
@@ -174,6 +174,7 @@ async def notifications(ws: WebSocketConnection) -> None:
|
|
|
174
174
|
## Important Defaults & Production Safeguards
|
|
175
175
|
|
|
176
176
|
- **Origin checks fail closed against cross-site WebSocket hijacking (`D-14`):** Leave `allowed_origins=None` for same-origin browser policies or list exact origins (never `"*"` when authenticating browser cookies/sessions).
|
|
177
|
+
- **Proxy-aware WebSocket client IP (`ws.ip()`):** Call `ws.ip()` (or `Request.ip()` inside WebSocket handshake middleware) to obtain the canonical proxy-verified client IP governed by `http.trusted_proxies` / `TRUSTED_PROXIES`, ignoring forged forwarding headers from untrusted peers.
|
|
177
178
|
- **Never trust unauthenticated WebSocket handshakes or unbounded frames:** Attach authentication middleware (`JWTGuard` / API keys) to sensitive WebSocket routes/groups and set `ws_idle_timeout` alongside `max_ws_message_size` (`1 MiB` default) to prevent resource exhaustion.
|
|
178
179
|
|
|
179
180
|
---
|
{swiftpy_framework-0.3.1 → swiftpy_framework-0.3.5}/documentations/2026-11-19-cli-and-testing.md
RENAMED
|
@@ -61,7 +61,7 @@ Use the `make:*` commands to generate typed stubs conforming to SwiftPY's conven
|
|
|
61
61
|
|
|
62
62
|
Pass `--app main:app` so migrations and seeders boot your full application `Config`, service providers, and database pool cleanly.
|
|
63
63
|
|
|
64
|
-
### Queues, Caching & Storage Commands
|
|
64
|
+
### Queues, Task Scheduler, Caching & Storage Commands
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
67
|
# Precompile config/*.py and prompts into bootstrap/cache/
|
|
@@ -76,6 +76,11 @@ uv run swiftpy queue:work --app main:app --queue default --concurrency 4
|
|
|
76
76
|
uv run swiftpy queue:failed --app main:app --queue default --limit 20
|
|
77
77
|
uv run swiftpy queue:retry all --app main:app --queue default
|
|
78
78
|
uv run swiftpy queue:flush --app main:app --queue default
|
|
79
|
+
|
|
80
|
+
# Inspect and run scheduled tasks (cron, intervals, and one-time jobs)
|
|
81
|
+
uv run swiftpy schedule:list --app main:app --json
|
|
82
|
+
uv run swiftpy schedule:run --app main:app
|
|
83
|
+
uv run swiftpy schedule:work --app main:app --sleep 1.0
|
|
79
84
|
```
|
|
80
85
|
|
|
81
86
|
Full option summary:
|
|
@@ -87,6 +92,9 @@ Full option summary:
|
|
|
87
92
|
- `queue:failed`: `[--queue] [--limit] [--prefix] [--app]`
|
|
88
93
|
- `queue:retry <id|all>`: `[--queue] [--prefix] [--app]`
|
|
89
94
|
- `queue:flush`: `[--queue] [--prefix] [--app]`
|
|
95
|
+
- `schedule:list`: `[--app] [--json] [--prefix]`
|
|
96
|
+
- `schedule:run`: `[--app] [--limit] [--prefix]`
|
|
97
|
+
- `schedule:work`: `[--app] [--sleep] [--max-ticks] [--prefix]`
|
|
90
98
|
|
|
91
99
|
---
|
|
92
100
|
|
|
@@ -40,6 +40,15 @@ Synchronous request metadata is available immediately without `await`:
|
|
|
40
40
|
| `request.headers` | `RequestHeaders` | Case-insensitive immutable `Mapping[str, str]` |
|
|
41
41
|
| `request.query_params` | `dict[str, str]` | First value for each URL query key (UTF-8 decoded) |
|
|
42
42
|
| `request.query_param_list` | `dict[str, list[str]]` | All values for repeated query keys (`?tag=a&tag=b`) |
|
|
43
|
+
| `request.ip()` / `Request.ip()` | `str \| None` | Proxy-verified client IP resolved from ASGI peer + configured `http.trusted_proxies` |
|
|
44
|
+
|
|
45
|
+
#### Proxy-Aware Client IP Resolution (`request.ip()` / `Request.ip()`)
|
|
46
|
+
|
|
47
|
+
Call `request.ip()` on an injected `Request` or `Request.ip()` class-level inside request-scoped services (`None` outside request context):
|
|
48
|
+
|
|
49
|
+
- **Fail-safe default:** `config/http.py` defaults `"trusted_proxies": []` (`TRUSTED_PROXIES`), ignoring all `X-Forwarded-For` / `X-Real-IP` headers unless the direct ASGI peer IP matches an explicitly trusted proxy IP or strict CIDR (`"172.30.0.0/24"`, `"127.0.0.1"`, `"::1"`). Private/Docker subnets are **never** implicitly trusted.
|
|
50
|
+
- **Validation & normalization:** `Application(...)` validates `trusted_proxies` eagerly at startup (raising `ConfigurationError` on hostnames, `IP:port`, wildcards, or non-strict CIDRs). IPv4-mapped IPv6 addresses (`::ffff:172.30.0.5`) unwrap cleanly to canonical IPv4 (`172.30.0.5`).
|
|
51
|
+
- **Strict forwarding state machine:** When the direct peer is trusted, SwiftPY inspects `X-Forwarded-For` right-to-left skipping trusted hops (`4096` byte max, `32` hop max, rejecting ports/hostnames/zone IDs). If `X-Forwarded-For` is malformed, empty/whitespace-only, oversized, or contains only trusted proxies, it resolves conservatively to the direct peer **without** falling back to `X-Real-IP`; `X-Real-IP` is inspected only when `X-Forwarded-For` is completely absent.
|
|
43
52
|
|
|
44
53
|
`RequestHeaders` decodes header keys/values as `latin-1` per the ASGI spec and supports repeated headers cleanly:
|
|
45
54
|
|