swiftpy-framework 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/.github/workflows/ci.yml +49 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/CHANGELOG.md +6 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/CONTRIBUTING.md +1 -1
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/PKG-INFO +1 -1
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/documentations/2026-11-14-installation-quick-start.md +1 -1
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/pyproject.toml +1 -1
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/new.py +1 -1
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/start.py +2 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/loader.py +15 -3
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_providers.py +4 -6
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/console/test_phase9_cli_remediation.py +1 -1
- swiftpy_framework-0.1.1/tests/console/test_start.py +308 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/uv.lock +1 -1
- swiftpy_framework-0.1.0/tests/console/test_start.py +0 -128
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/.dockerignore +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/.env.example +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/.github/workflows/publish.yml +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/.gitignore +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/Dockerfile +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/LICENSE +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/README.md +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/events/user_registered.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/http/handler/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/http/middleware/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/http/middleware/admin_middleware.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/http/middleware/auth_middleware.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/http/middleware/test_middleware.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/http/requests/create_user_request.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/jobs/send_notification_job.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/listeners/send_welcome_notification.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/mail/welcome_email.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/models/user.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/app_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/auth_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/cache_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/database_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/event_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/filesystem_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/mail_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/providers/queue_service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/repositories/user_repository.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/schemas/user_schema.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/app/services/user_service.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/bootstrap/cache/.gitkeep +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/ai.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/app.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/auth.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/cache.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/cors.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/database.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/events.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/filesystems.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/logging.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/mail.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/config/queue.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/database/seeders/database_seeder.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/docker-compose.yml +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/documentations/2026-11-15-core-application-di-and-config.md +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/main.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/red-black.png +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/routes/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/routes/api.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/.gitignore +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/admin/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/admin/auth.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/admin/registry.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/admin/views.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/_deterministic.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/_fake.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/agents/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/agents/base_agent.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/agents/memory.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/client.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/conversation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/embeddings.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/history_strategies.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/middleware.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/observability/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/observability/drivers.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/observability/observer.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/pool.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/pricing.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/prompts/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/prompts/loader.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/providers/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/providers/anthropic_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/providers/base.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/providers/openai_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/rag/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/rag/context_formatter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/rag/pipeline_builder.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/rag/reranker.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/rag/result.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/rag/retriever.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/redis_store.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/streaming.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/tools/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/tools/base_tool.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/tools/first_party.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/tools/tool_loop.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/base.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/api_key_guard.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/auth_manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/jwt_guard.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/jwt_issuer.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/auth/token_blacklist.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/cache/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/cache/cache.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/cache/driver.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/cache/drivers/memory.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/cache/drivers/redis.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/cli.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/cache.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/make.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/migrate.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/queue.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/seed.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/commands/storage.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/controller.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/event.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/job.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/listener.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/mail.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/middleware.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/migration.alter.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/migration.blank.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/migration.create.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/migration.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/migration.update.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/model.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/provider.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/repository.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/request.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/resource.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/schema.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/seeder.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/console/stubs/service.stub +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/application.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/bootstrap.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/container.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/container_exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/context.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/core/providers/base.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/identifiers.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/migrations/blueprint.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/migrations/lock.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/migrations/migration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/migrations/migrator.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/migrations/schema.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/orm/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/orm/fields.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/orm/model.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/orm/registry.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/orm/relationships.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/pagination/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/pagination/contracts.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/pagination/paginator.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/pagination/simple_paginator.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/pool.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/query_builder.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/seeder.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/database/transaction.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/events/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/events/dispatcher.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/events/redis_bus.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/disk.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/drivers/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/drivers/base.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/drivers/local.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/drivers/s3.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/events.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/metadata.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/paths.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/uploads/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/uploads/handlers.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/uploads/validators.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/filesystem/visibility.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/helpers/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/helpers/helper.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/http/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/http/middleware.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/http/request.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/http/response.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/http/router.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/attachments.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/envelope.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/facade.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/mailable.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/message.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/models.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/queue/job.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/service_provider.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/templates/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/templates/renderer.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/api/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/api/base.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/api/mailgun.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/api/resend.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/api/sendgrid.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/base.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/console.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/sendmail.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/mail/transports/smtp.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/queue/dispatcher.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/queue/job.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/queue/worker.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/support/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/support/keys.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/support/redis_config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/support/strings.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/fakes/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/fakes/ai_fake.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/fixtures.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/http_client.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/testing/test_case.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/form_request.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/protocols.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/rules/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/rules/builtin.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/rules/exists.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/rules/registry.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/rules/required.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/rules/unique.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/validation/validator.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/websockets/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/websockets/connection.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/swiftpy/websockets/manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/admin/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/admin/test_admin.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/conftest.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/integration/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/integration/test_chroma.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/integration/test_lancedb.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/integration/test_pinecone.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/integration/test_qdrant.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/integration/test_rag_integration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_agents.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_ai_fake.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_ai_fake_isolation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_client.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_conversation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_embeddings.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_middleware.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_middleware_concurrency.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_observability.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_observability_resilience.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_phase7_ai_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_phase8_rag_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_prompts.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_prompts_security.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_rag.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_streaming.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_tools.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_vectorstore.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/ai/test_vectorstore_adapters.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/app/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/app/test_application_providers.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/app/test_starter_auth.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/test_api_key_guard.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/test_auth_manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/test_auth_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/test_auth_security.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/test_jwt_issuer.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/auth/test_token_blacklist.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/benchmarks.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/cache/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/cache/test_cache_concurrency.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/cache/test_cache_manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/cache/test_driver_correctness.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/cache/test_memory_cache.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/cache/test_redis_cache.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/concurrency/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/concurrency/test_circular_dependency.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/concurrency/test_container_semantics.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/concurrency/test_resolution.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/concurrency/test_resolution2.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/conftest.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/console/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/console/test_cache_commands.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/console/test_new_command.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/console/test_stubs_and_make.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/core/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/core/test_application_config_isolation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/core/test_core_config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/core/test_exceptions.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/core/test_instance_singletons.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/core/test_lifespan.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_orm_expansion.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_orm_vector.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_pagination_and_grouping.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_pagination_pg_integration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_pgvector_integration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_phase4_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_query_expansion.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_query_expansion_pg_integration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/database/test_seeder.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/load_test_database.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/load_test_database2.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_arbitrary_primary_keys.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_identifiers.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_mass_writes.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_pool_config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_query_builder_terminals.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_sql_injections.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/db/test_transaction_isolation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/docs/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/docs/test_readme_examples.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/e2e/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/e2e/test_concurrent_auth.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/e2e/test_crud_auth_e2e.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/events/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/events/test_event_dispatcher.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/events/test_model_events.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/events/test_redis_bus.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/events/test_redis_bus_reliability.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_cli_storage_link.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_disk.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_filesystem_concurrency.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_filesystem_config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_http_integration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_local_driver.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_multipart.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_paths.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_s3_driver.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_signed_urls.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_storage_facade.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_uploaded_file.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/filesystem/test_validation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_error_pipeline.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_http_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_include_router.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_request.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_response.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_route_groups.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/http/test_router.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/integration/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/integration/test_queue_event_websocket.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_api_transports.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_attachments.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_cli_make_mail.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_console_transport.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_envelope.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_facade_and_fake.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_mailable.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_manager_and_config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_message.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_phase6_mail_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_queue_integration.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_service_provider_and_helpers.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_smtp_and_sendmail.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/mail/test_templates.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/migrations/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/migrations/test_migrations.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/test_defaults_dirty.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/test_eager_loading.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/test_hidden.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/test_mass_assignment.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/test_model_events_transaction.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/orm/test_relationships_hardening.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_after_commit.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_phase5_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_poison_messages.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_queue.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_reliability.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_signing.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/queue/test_worker_behavior.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/security/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/security/test_security_audit.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/stress/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/stress/test_context_isolation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/support/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/support/test_redis_config.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/support/test_strings.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/testing/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/testing/test_fixtures.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/testing/test_phase9_testing_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/testing/test_test_client.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/typing/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/typing/test_orm_typing.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_db_rules.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_form_request_fail_closed.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_form_request_pipeline.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_phase6_validation_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_rules_hardening.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_validation_concurrency.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/validation/test_validator_rules.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/__init__.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_broadcast.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_handshake.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_lifecycle.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_websocket_concurrency.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_websocket_connection.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_websocket_manager.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_websocket_remediation.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/views/admin/dashboard.html +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/views/admin/login.html +0 -0
- {swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/views/mail/template.html +0 -0
|
@@ -6,6 +6,9 @@ on:
|
|
|
6
6
|
pull_request:
|
|
7
7
|
branches: [main, develop]
|
|
8
8
|
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
9
12
|
jobs:
|
|
10
13
|
test:
|
|
11
14
|
name: Test, lint, type-check, and package validation
|
|
@@ -141,4 +144,50 @@ jobs:
|
|
|
141
144
|
asyncio.run(main())
|
|
142
145
|
'
|
|
143
146
|
)
|
|
147
|
+
/tmp/swiftpy-wheel-smoke/bin/python -c '
|
|
148
|
+
import pathlib, signal, socket, subprocess, tempfile, time, urllib.request
|
|
149
|
+
with tempfile.TemporaryDirectory() as d:
|
|
150
|
+
proj = pathlib.Path(d) / "smoke_app"
|
|
151
|
+
proj.mkdir()
|
|
152
|
+
(proj / "main.py").write_text(
|
|
153
|
+
"from swiftpy import Application, Request, json_response\n"
|
|
154
|
+
"app = Application(auto_discover_providers=False)\n"
|
|
155
|
+
"@app.get(\"/smoke\")\n"
|
|
156
|
+
"async def smoke(req: Request):\n"
|
|
157
|
+
" return json_response({\"ok\": True})\n",
|
|
158
|
+
encoding="utf-8",
|
|
159
|
+
)
|
|
160
|
+
with socket.socket() as s:
|
|
161
|
+
s.bind(("127.0.0.1", 0))
|
|
162
|
+
port = s.getsockname()[1]
|
|
163
|
+
proc = subprocess.Popen(
|
|
164
|
+
["/tmp/swiftpy-wheel-smoke/bin/swiftpy", "start", "--host", "127.0.0.1", "--port", str(port), "--reload"],
|
|
165
|
+
cwd=proj,
|
|
166
|
+
stdout=subprocess.PIPE,
|
|
167
|
+
stderr=subprocess.STDOUT,
|
|
168
|
+
text=True,
|
|
169
|
+
)
|
|
170
|
+
ok = False
|
|
171
|
+
try:
|
|
172
|
+
deadline = time.monotonic() + 10.0
|
|
173
|
+
while time.monotonic() < deadline and proc.poll() is None:
|
|
174
|
+
try:
|
|
175
|
+
with urllib.request.urlopen(f"http://127.0.0.1:{port}/smoke", timeout=0.5) as resp:
|
|
176
|
+
if resp.status == 200:
|
|
177
|
+
ok = True
|
|
178
|
+
break
|
|
179
|
+
except Exception:
|
|
180
|
+
time.sleep(0.1)
|
|
181
|
+
finally:
|
|
182
|
+
if proc.poll() is None:
|
|
183
|
+
proc.send_signal(signal.SIGINT)
|
|
184
|
+
try:
|
|
185
|
+
out, _ = proc.communicate(timeout=5)
|
|
186
|
+
except subprocess.TimeoutExpired:
|
|
187
|
+
proc.kill()
|
|
188
|
+
out, _ = proc.communicate(timeout=5)
|
|
189
|
+
else:
|
|
190
|
+
out, _ = proc.communicate(timeout=5)
|
|
191
|
+
assert ok, out
|
|
192
|
+
'
|
|
144
193
|
rm -rf /tmp/swiftpy-wheel-smoke
|
|
@@ -4,6 +4,12 @@ All notable changes to SwiftPY will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.1] - 2026-11-15
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **CLI (`swiftpy start`):** Added `ensure_project_in_sys_path()` in `swiftpy.console.loader` and invoked it in `StartCommand.handle()` so `Path.cwd()` is placed at `sys.path[0]` before launching Uvicorn. Fixes `Error loading ASGI app. Could not import module "main".` when running `swiftpy start`, `swiftpy start --reload`, or `swiftpy start --workers <N>` from a wheel-installed `swiftpy` console entrypoint.
|
|
11
|
+
- **Scaffolding (`swiftpy new`):** Updated generated `pyproject.toml` dependency floor to `swiftpy-framework>=0.1.1`.
|
|
12
|
+
|
|
7
13
|
### Audit Remediation & Approved Breaking Changes (`G-1`–`G-16`)
|
|
8
14
|
- **Packaging, Core, & HTTP (`G-1`, `G-2`, `G-16`):**
|
|
9
15
|
- **Policy Update (`G-1`):** `swiftpy/ai` (LLM clients, embeddings, vector stores, RAG pipelines, agents, tools, prompts, and observability) is fully implemented and included in the main `swiftpy-framework` v0.1.0 wheel (superseding the earlier `P10-L7` wheel exclusion); `swiftpy/__init__.py` uses PEP 562 lazy exports so lightweight imports do not pull heavy optional submodules eagerly, and `swiftpy.testing` remains documented as a dev-only test utility.
|
|
@@ -116,7 +116,7 @@ uv run --with twine twine check dist/*
|
|
|
116
116
|
## Reporting Bugs & Security Vulnerabilities
|
|
117
117
|
|
|
118
118
|
- **Bugs & feature requests**: Open an issue at <https://github.com/obrainwave/swiftpy/issues> with reproduction steps, expected vs. actual behavior, Python version, and relevant error output (redacting any secrets).
|
|
119
|
-
- **Security vulnerabilities**: Do **not** publish exploit details or sensitive vulnerability reports in public issues. Report security concerns privately by sending a direct email to <
|
|
119
|
+
- **Security vulnerabilities**: Do **not** publish exploit details or sensitive vulnerability reports in public issues. Report security concerns privately by sending a direct email to <akeemsalau@swiftpy.net>.
|
|
120
120
|
|
|
121
121
|
---
|
|
122
122
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: swiftpy-framework
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: SwiftPY is a new generation async-first Python framework purpose built for the modern API and AI economy.
|
|
5
5
|
Project-URL: Homepage, https://github.com/obrainwave/swiftpy
|
|
6
6
|
Project-URL: Repository, https://github.com/obrainwave/swiftpy
|
|
@@ -164,7 +164,7 @@ source .venv/bin/activate
|
|
|
164
164
|
python -m pip install -e .
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
The generated `pyproject.toml` already declares `"swiftpy-framework>=0.1.
|
|
167
|
+
The generated `pyproject.toml` already declares `"swiftpy-framework>=0.1.1"` along with `[build-system]` (`setuptools`), `[tool.setuptools.packages.find]`, and `[tool.mypy]`.
|
|
168
168
|
|
|
169
169
|
### Configure Environment & Backing Services
|
|
170
170
|
|
|
@@ -10,7 +10,7 @@ dev = [
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "swiftpy-framework"
|
|
13
|
-
version = "0.1.
|
|
13
|
+
version = "0.1.1"
|
|
14
14
|
description = "SwiftPY is a new generation async-first Python framework purpose built for the modern API and AI economy."
|
|
15
15
|
requires-python = ">=3.12"
|
|
16
16
|
dependencies = [
|
|
@@ -1504,7 +1504,7 @@ version = "0.1.0"
|
|
|
1504
1504
|
description = "A SwiftPY web application"
|
|
1505
1505
|
requires-python = ">=3.12"
|
|
1506
1506
|
dependencies = [
|
|
1507
|
-
"swiftpy-framework>=0.1.
|
|
1507
|
+
"swiftpy-framework>=0.1.1",
|
|
1508
1508
|
"uvicorn[standard]>=0.52.4",
|
|
1509
1509
|
"asyncpg>=0.30.0",
|
|
1510
1510
|
"redis>=8.1.0",
|
|
@@ -6,6 +6,7 @@ from typing import Any
|
|
|
6
6
|
|
|
7
7
|
import uvicorn
|
|
8
8
|
|
|
9
|
+
from swiftpy.console.loader import ensure_project_in_sys_path
|
|
9
10
|
from swiftpy.core.config import Config, ConfigurationError
|
|
10
11
|
|
|
11
12
|
|
|
@@ -165,6 +166,7 @@ class StartCommand:
|
|
|
165
166
|
if log_level_opt:
|
|
166
167
|
uvicorn_kwargs["log_level"] = str(log_level_opt).lower()
|
|
167
168
|
|
|
169
|
+
ensure_project_in_sys_path()
|
|
168
170
|
uvicorn.run(target, **uvicorn_kwargs)
|
|
169
171
|
|
|
170
172
|
|
|
@@ -7,15 +7,27 @@ from pathlib import Path
|
|
|
7
7
|
from swiftpy.core.application import Application
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
def ensure_project_in_sys_path(project_root: str | Path | None = None) -> str:
|
|
11
|
+
"""Ensure the project root directory is at the front of `sys.path`."""
|
|
12
|
+
root = str(Path.cwd() if project_root is None else Path(project_root))
|
|
13
|
+
if sys.path and sys.path[0] == root:
|
|
14
|
+
return root
|
|
15
|
+
while root in sys.path:
|
|
16
|
+
sys.path.remove(root)
|
|
17
|
+
sys.path.insert(0, root)
|
|
18
|
+
return root
|
|
19
|
+
|
|
20
|
+
|
|
10
21
|
def load_application(target: str = "main:app") -> Application:
|
|
11
22
|
"""Import `module:attribute` from the current project and return the Application."""
|
|
12
23
|
module_name, _, attribute = target.partition(":")
|
|
13
|
-
|
|
14
|
-
if project_root not in sys.path:
|
|
15
|
-
sys.path.insert(0, project_root)
|
|
24
|
+
ensure_project_in_sys_path()
|
|
16
25
|
|
|
17
26
|
module = importlib.import_module(module_name)
|
|
18
27
|
app = getattr(module, attribute or "app")
|
|
19
28
|
if not isinstance(app, Application):
|
|
20
29
|
raise TypeError(f"{target!r} is not a SwiftPY Application")
|
|
21
30
|
return app
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
__all__ = ["ensure_project_in_sys_path", "load_application"]
|
|
@@ -561,11 +561,11 @@ async def test_shared_http_pool_used_across_both_providers(
|
|
|
561
561
|
CRITICAL TEST: Verifies that multiple providers share the EXACT same
|
|
562
562
|
underlying httpx.AsyncClient instance through AIHttpPool.
|
|
563
563
|
"""
|
|
564
|
-
|
|
564
|
+
requested_hosts: list[str] = []
|
|
565
565
|
|
|
566
566
|
def handler(request: httpx.Request) -> httpx.Response:
|
|
567
|
-
|
|
568
|
-
if "openai"
|
|
567
|
+
requested_hosts.append(request.url.host)
|
|
568
|
+
if request.url.host == "api.openai.com":
|
|
569
569
|
return httpx.Response(200, json={"choices": [{"message": {"content": "OpenAI resp"}}]})
|
|
570
570
|
return httpx.Response(200, json={"content": [{"type": "text", "text": "Anthropic resp"}]})
|
|
571
571
|
|
|
@@ -582,9 +582,7 @@ async def test_shared_http_pool_used_across_both_providers(
|
|
|
582
582
|
await openai_provider.send(LLMRequest(messages=[Message(role="user", content="Ping OpenAI")]))
|
|
583
583
|
await anthropic_provider.send(LLMRequest(messages=[Message(role="user", content="Ping Anthropic")]))
|
|
584
584
|
|
|
585
|
-
assert
|
|
586
|
-
assert "openai.com" in requested_urls[0]
|
|
587
|
-
assert "anthropic.com" in requested_urls[1]
|
|
585
|
+
assert requested_hosts == ["api.openai.com", "api.anthropic.com"]
|
|
588
586
|
|
|
589
587
|
|
|
590
588
|
async def test_closing_pool_closes_client() -> None:
|
{swiftpy_framework-0.1.0 → swiftpy_framework-0.1.1}/tests/console/test_phase9_cli_remediation.py
RENAMED
|
@@ -27,7 +27,7 @@ def test_new_command_templates_hardened(
|
|
|
27
27
|
assert "pyproject.toml" in dockerfile
|
|
28
28
|
|
|
29
29
|
pyproject = (app_dir / "pyproject.toml").read_text(encoding="utf-8")
|
|
30
|
-
assert '"swiftpy-framework' in pyproject
|
|
30
|
+
assert '"swiftpy-framework>=0.1.1"' in pyproject
|
|
31
31
|
|
|
32
32
|
compose = (app_dir / "docker-compose.yml").read_text(encoding="utf-8")
|
|
33
33
|
assert '"127.0.0.1:5432:5432"' in compose
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import signal
|
|
5
|
+
import socket
|
|
6
|
+
import subprocess
|
|
7
|
+
import sys
|
|
8
|
+
import time
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from unittest.mock import patch
|
|
11
|
+
|
|
12
|
+
import httpx
|
|
13
|
+
import pytest
|
|
14
|
+
|
|
15
|
+
from swiftpy.console.cli import CLI
|
|
16
|
+
from swiftpy.console.loader import ensure_project_in_sys_path
|
|
17
|
+
from swiftpy.core.config import Config
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def test_start_command_defaults() -> None:
|
|
21
|
+
"""Verify swiftpy start uses default target, host, port, and reload=False."""
|
|
22
|
+
cli = CLI()
|
|
23
|
+
|
|
24
|
+
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
25
|
+
cli.run(["start"])
|
|
26
|
+
mock_run.assert_called_once_with(
|
|
27
|
+
"main:app",
|
|
28
|
+
host="127.0.0.1",
|
|
29
|
+
port=8000,
|
|
30
|
+
reload=False,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def test_start_command_custom_arguments() -> None:
|
|
35
|
+
"""Verify swiftpy start parses custom target, host, port, and reload flag."""
|
|
36
|
+
cli = CLI()
|
|
37
|
+
|
|
38
|
+
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
39
|
+
cli.run([
|
|
40
|
+
"start",
|
|
41
|
+
"app.server:app",
|
|
42
|
+
"--host",
|
|
43
|
+
"0.0.0.0",
|
|
44
|
+
"--port",
|
|
45
|
+
"9000",
|
|
46
|
+
"--reload",
|
|
47
|
+
])
|
|
48
|
+
mock_run.assert_called_once_with(
|
|
49
|
+
"app.server:app",
|
|
50
|
+
host="0.0.0.0",
|
|
51
|
+
port=9000,
|
|
52
|
+
reload=True,
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def test_start_command_workers_support() -> None:
|
|
57
|
+
"""Verify --workers passes worker count to uvicorn when greater than 1."""
|
|
58
|
+
cli = CLI()
|
|
59
|
+
|
|
60
|
+
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
61
|
+
cli.run(["start", "--workers", "4"])
|
|
62
|
+
mock_run.assert_called_once_with(
|
|
63
|
+
"main:app",
|
|
64
|
+
host="127.0.0.1",
|
|
65
|
+
port=8000,
|
|
66
|
+
reload=False,
|
|
67
|
+
workers=4,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def test_start_command_refuses_reload_with_multiple_workers() -> None:
|
|
72
|
+
"""Verify swiftpy start refuses --reload when --workers > 1."""
|
|
73
|
+
cli = CLI()
|
|
74
|
+
|
|
75
|
+
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
76
|
+
with pytest.raises(SystemExit) as exc_info:
|
|
77
|
+
cli.run(["start", "--reload", "--workers", "2"])
|
|
78
|
+
assert exc_info.value.code == 1
|
|
79
|
+
mock_run.assert_not_called()
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def test_start_command_env_file_option() -> None:
|
|
83
|
+
"""Verify --env-file passes path to uvicorn."""
|
|
84
|
+
cli = CLI()
|
|
85
|
+
|
|
86
|
+
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
87
|
+
cli.run(["start", "--env-file", ".env.local"])
|
|
88
|
+
mock_run.assert_called_once_with(
|
|
89
|
+
"main:app",
|
|
90
|
+
host="127.0.0.1",
|
|
91
|
+
port=8000,
|
|
92
|
+
reload=False,
|
|
93
|
+
env_file=".env.local",
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def test_start_command_config_defaults() -> None:
|
|
98
|
+
"""Verify defaults are loaded from Config when CLI arguments are omitted."""
|
|
99
|
+
cli = CLI()
|
|
100
|
+
cfg = Config({
|
|
101
|
+
"server": {
|
|
102
|
+
"target": "custom:asgi",
|
|
103
|
+
"host": "192.168.1.10",
|
|
104
|
+
"port": 7777,
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
with (
|
|
109
|
+
patch("swiftpy.console.commands.start.Config.load", return_value=cfg),
|
|
110
|
+
patch("swiftpy.console.commands.start.uvicorn.run") as mock_run,
|
|
111
|
+
):
|
|
112
|
+
cli.run(["start"])
|
|
113
|
+
mock_run.assert_called_once_with(
|
|
114
|
+
"custom:asgi",
|
|
115
|
+
host="192.168.1.10",
|
|
116
|
+
port=7777,
|
|
117
|
+
reload=False,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def test_cli_help_snapshot_no_placeholder_commands(capsys: pytest.CaptureFixture[str]) -> None:
|
|
122
|
+
"""Verify swiftpy --help displays only real commands and does not expose placeholder ai commands."""
|
|
123
|
+
cli = CLI()
|
|
124
|
+
with pytest.raises(SystemExit) as exc_info:
|
|
125
|
+
cli.run(["--help"])
|
|
126
|
+
assert exc_info.value.code == 0
|
|
127
|
+
|
|
128
|
+
captured = capsys.readouterr().out
|
|
129
|
+
assert "start" in captured
|
|
130
|
+
assert "migrate" in captured
|
|
131
|
+
assert "make:model" in captured
|
|
132
|
+
assert "queue:work" in captured
|
|
133
|
+
|
|
134
|
+
# Decision D-11: ai placeholders must not be exposed as broken commands
|
|
135
|
+
assert " ai " not in captured
|
|
136
|
+
assert "make:ai" not in captured
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def test_ensure_project_in_sys_path_prepends_and_promotes(
|
|
140
|
+
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
141
|
+
) -> None:
|
|
142
|
+
"""ensure_project_in_sys_path places cwd at sys.path[0] and removes duplicates."""
|
|
143
|
+
other = tmp_path / "other"
|
|
144
|
+
proj = tmp_path / "proj"
|
|
145
|
+
other.mkdir()
|
|
146
|
+
proj.mkdir()
|
|
147
|
+
|
|
148
|
+
monkeypatch.chdir(proj)
|
|
149
|
+
monkeypatch.setattr(sys, "path", [str(other), str(proj), str(proj)])
|
|
150
|
+
|
|
151
|
+
resolved = ensure_project_in_sys_path()
|
|
152
|
+
assert resolved == str(proj)
|
|
153
|
+
assert sys.path[0] == str(proj)
|
|
154
|
+
assert sys.path.count(str(proj)) == 1
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def test_start_command_prepends_cwd_before_uvicorn_run(
|
|
158
|
+
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
159
|
+
) -> None:
|
|
160
|
+
"""StartCommand puts the project root at sys.path[0] prior to invoking uvicorn.run."""
|
|
161
|
+
monkeypatch.chdir(tmp_path)
|
|
162
|
+
monkeypatch.setattr(sys, "path", [p for p in sys.path if p != str(tmp_path)])
|
|
163
|
+
|
|
164
|
+
observed_sys_path: list[str] = []
|
|
165
|
+
|
|
166
|
+
def fake_run(target: str, **kwargs: object) -> None:
|
|
167
|
+
observed_sys_path.extend(sys.path)
|
|
168
|
+
|
|
169
|
+
cli = CLI()
|
|
170
|
+
with patch("swiftpy.console.commands.start.uvicorn.run", side_effect=fake_run) as mock_run:
|
|
171
|
+
cli.run(["start", "--reload"])
|
|
172
|
+
|
|
173
|
+
mock_run.assert_called_once_with(
|
|
174
|
+
"main:app",
|
|
175
|
+
host="127.0.0.1",
|
|
176
|
+
port=8000,
|
|
177
|
+
reload=True,
|
|
178
|
+
)
|
|
179
|
+
assert observed_sys_path[0] == str(tmp_path)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def test_start_command_invalid_args_do_not_mutate_sys_path(
|
|
183
|
+
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
184
|
+
) -> None:
|
|
185
|
+
"""Invalid flag combinations exit before mutating sys.path or launching uvicorn."""
|
|
186
|
+
monkeypatch.chdir(tmp_path)
|
|
187
|
+
original_path = [p for p in sys.path if p != str(tmp_path)]
|
|
188
|
+
monkeypatch.setattr(sys, "path", list(original_path))
|
|
189
|
+
|
|
190
|
+
cli = CLI()
|
|
191
|
+
with pytest.raises(SystemExit) as exc_info:
|
|
192
|
+
cli.run(["start", "--reload", "--workers", "2"])
|
|
193
|
+
|
|
194
|
+
assert exc_info.value.code == 1
|
|
195
|
+
assert str(tmp_path) not in sys.path
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def _reserve_free_port() -> int:
|
|
199
|
+
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
|
200
|
+
sock.bind(("127.0.0.1", 0))
|
|
201
|
+
return int(sock.getsockname()[1])
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
@pytest.mark.parametrize("reload_enabled", [False, True])
|
|
205
|
+
def test_start_command_console_entrypoint_imports_project_main_under_wheel_layout(
|
|
206
|
+
tmp_path: Path, reload_enabled: bool
|
|
207
|
+
) -> None:
|
|
208
|
+
"""
|
|
209
|
+
Simulate an installed wheel console script where cwd is NOT on sys.path
|
|
210
|
+
and a competing directory on sys.path has a different main.py.
|
|
211
|
+
Both `swiftpy start` and `swiftpy start --reload` must import the cwd project's main:app.
|
|
212
|
+
"""
|
|
213
|
+
repo_root = Path(__file__).resolve().parents[2]
|
|
214
|
+
site_dir = tmp_path / "site"
|
|
215
|
+
site_dir.mkdir()
|
|
216
|
+
(site_dir / "swiftpy").symlink_to(repo_root / "swiftpy", target_is_directory=True)
|
|
217
|
+
|
|
218
|
+
shadow_dir = tmp_path / "shadow"
|
|
219
|
+
shadow_dir.mkdir()
|
|
220
|
+
(shadow_dir / "main.py").write_text(
|
|
221
|
+
'raise RuntimeError("Imported wrong main.py from shadow_dir!")\n',
|
|
222
|
+
encoding="utf-8",
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
project_dir = tmp_path / "my-api"
|
|
226
|
+
(project_dir / "app").mkdir(parents=True)
|
|
227
|
+
(project_dir / "app" / "greeting.py").write_text(
|
|
228
|
+
'MESSAGE = "from-project-app"\n',
|
|
229
|
+
encoding="utf-8",
|
|
230
|
+
)
|
|
231
|
+
(project_dir / "main.py").write_text(
|
|
232
|
+
"""from __future__ import annotations
|
|
233
|
+
|
|
234
|
+
from app.greeting import MESSAGE
|
|
235
|
+
from swiftpy.core.application import Application
|
|
236
|
+
from swiftpy.http.request import Request
|
|
237
|
+
from swiftpy.http.response import Response, json_response
|
|
238
|
+
|
|
239
|
+
app = Application(auto_discover_providers=False)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
@app.get("/health")
|
|
243
|
+
async def health(request: Request) -> Response:
|
|
244
|
+
return json_response({"status": "ok", "source": MESSAGE})
|
|
245
|
+
""",
|
|
246
|
+
encoding="utf-8",
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
launcher = tmp_path / "swiftpy_console.py"
|
|
250
|
+
launcher.write_text(
|
|
251
|
+
f"""import sys
|
|
252
|
+
|
|
253
|
+
if __name__ == "__main__":
|
|
254
|
+
sys.path = [p for p in sys.path if p not in ({str(repo_root)!r}, {str(tmp_path)!r}, "")]
|
|
255
|
+
sys.path.insert(1, {str(site_dir)!r})
|
|
256
|
+
sys.path.append({str(shadow_dir)!r})
|
|
257
|
+
from swiftpy.console.cli import main
|
|
258
|
+
|
|
259
|
+
sys.exit(main())
|
|
260
|
+
""",
|
|
261
|
+
encoding="utf-8",
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
port = _reserve_free_port()
|
|
265
|
+
cmd = [sys.executable, str(launcher), "start", "--host", "127.0.0.1", "--port", str(port)]
|
|
266
|
+
if reload_enabled:
|
|
267
|
+
cmd.append("--reload")
|
|
268
|
+
|
|
269
|
+
env = {k: v for k, v in os.environ.items() if k != "PYTHONPATH"}
|
|
270
|
+
proc = subprocess.Popen(
|
|
271
|
+
cmd,
|
|
272
|
+
cwd=project_dir,
|
|
273
|
+
env=env,
|
|
274
|
+
stdout=subprocess.PIPE,
|
|
275
|
+
stderr=subprocess.STDOUT,
|
|
276
|
+
text=True,
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
response_json: dict[str, object] | None = None
|
|
280
|
+
deadline = time.monotonic() + 10.0
|
|
281
|
+
try:
|
|
282
|
+
while time.monotonic() < deadline:
|
|
283
|
+
if proc.poll() is not None:
|
|
284
|
+
break
|
|
285
|
+
try:
|
|
286
|
+
resp = httpx.get(f"http://127.0.0.1:{port}/health", timeout=0.5)
|
|
287
|
+
if resp.status_code == 200:
|
|
288
|
+
response_json = resp.json()
|
|
289
|
+
break
|
|
290
|
+
except httpx.HTTPError:
|
|
291
|
+
time.sleep(0.1)
|
|
292
|
+
finally:
|
|
293
|
+
if proc.poll() is None:
|
|
294
|
+
if os.name == "nt":
|
|
295
|
+
proc.terminate()
|
|
296
|
+
else:
|
|
297
|
+
proc.send_signal(signal.SIGINT)
|
|
298
|
+
try:
|
|
299
|
+
output, _ = proc.communicate(timeout=5)
|
|
300
|
+
except subprocess.TimeoutExpired:
|
|
301
|
+
proc.kill()
|
|
302
|
+
output, _ = proc.communicate(timeout=5)
|
|
303
|
+
else:
|
|
304
|
+
output, _ = proc.communicate(timeout=5)
|
|
305
|
+
|
|
306
|
+
assert response_json == {"status": "ok", "source": "from-project-app"}, output
|
|
307
|
+
assert 'Could not import module "main"' not in output
|
|
308
|
+
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from unittest.mock import patch
|
|
4
|
-
|
|
5
|
-
import pytest
|
|
6
|
-
|
|
7
|
-
from swiftpy.console.cli import CLI
|
|
8
|
-
from swiftpy.core.config import Config
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def test_start_command_defaults() -> None:
|
|
12
|
-
"""Verify swiftpy start uses default target, host, port, and reload=False."""
|
|
13
|
-
cli = CLI()
|
|
14
|
-
|
|
15
|
-
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
16
|
-
cli.run(["start"])
|
|
17
|
-
mock_run.assert_called_once_with(
|
|
18
|
-
"main:app",
|
|
19
|
-
host="127.0.0.1",
|
|
20
|
-
port=8000,
|
|
21
|
-
reload=False,
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def test_start_command_custom_arguments() -> None:
|
|
26
|
-
"""Verify swiftpy start parses custom target, host, port, and reload flag."""
|
|
27
|
-
cli = CLI()
|
|
28
|
-
|
|
29
|
-
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
30
|
-
cli.run([
|
|
31
|
-
"start",
|
|
32
|
-
"app.server:app",
|
|
33
|
-
"--host",
|
|
34
|
-
"0.0.0.0",
|
|
35
|
-
"--port",
|
|
36
|
-
"9000",
|
|
37
|
-
"--reload",
|
|
38
|
-
])
|
|
39
|
-
mock_run.assert_called_once_with(
|
|
40
|
-
"app.server:app",
|
|
41
|
-
host="0.0.0.0",
|
|
42
|
-
port=9000,
|
|
43
|
-
reload=True,
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
def test_start_command_workers_support() -> None:
|
|
48
|
-
"""Verify --workers passes worker count to uvicorn when greater than 1."""
|
|
49
|
-
cli = CLI()
|
|
50
|
-
|
|
51
|
-
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
52
|
-
cli.run(["start", "--workers", "4"])
|
|
53
|
-
mock_run.assert_called_once_with(
|
|
54
|
-
"main:app",
|
|
55
|
-
host="127.0.0.1",
|
|
56
|
-
port=8000,
|
|
57
|
-
reload=False,
|
|
58
|
-
workers=4,
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
def test_start_command_refuses_reload_with_multiple_workers() -> None:
|
|
63
|
-
"""Verify swiftpy start refuses --reload when --workers > 1."""
|
|
64
|
-
cli = CLI()
|
|
65
|
-
|
|
66
|
-
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
67
|
-
with pytest.raises(SystemExit) as exc_info:
|
|
68
|
-
cli.run(["start", "--reload", "--workers", "2"])
|
|
69
|
-
assert exc_info.value.code == 1
|
|
70
|
-
mock_run.assert_not_called()
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
def test_start_command_env_file_option() -> None:
|
|
74
|
-
"""Verify --env-file passes path to uvicorn."""
|
|
75
|
-
cli = CLI()
|
|
76
|
-
|
|
77
|
-
with patch("swiftpy.console.commands.start.uvicorn.run") as mock_run:
|
|
78
|
-
cli.run(["start", "--env-file", ".env.local"])
|
|
79
|
-
mock_run.assert_called_once_with(
|
|
80
|
-
"main:app",
|
|
81
|
-
host="127.0.0.1",
|
|
82
|
-
port=8000,
|
|
83
|
-
reload=False,
|
|
84
|
-
env_file=".env.local",
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
def test_start_command_config_defaults() -> None:
|
|
89
|
-
"""Verify defaults are loaded from Config when CLI arguments are omitted."""
|
|
90
|
-
cli = CLI()
|
|
91
|
-
cfg = Config({
|
|
92
|
-
"server": {
|
|
93
|
-
"target": "custom:asgi",
|
|
94
|
-
"host": "192.168.1.10",
|
|
95
|
-
"port": 7777,
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
with (
|
|
100
|
-
patch("swiftpy.console.commands.start.Config.load", return_value=cfg),
|
|
101
|
-
patch("swiftpy.console.commands.start.uvicorn.run") as mock_run,
|
|
102
|
-
):
|
|
103
|
-
cli.run(["start"])
|
|
104
|
-
mock_run.assert_called_once_with(
|
|
105
|
-
"custom:asgi",
|
|
106
|
-
host="192.168.1.10",
|
|
107
|
-
port=7777,
|
|
108
|
-
reload=False,
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
def test_cli_help_snapshot_no_placeholder_commands(capsys: pytest.CaptureFixture[str]) -> None:
|
|
113
|
-
"""Verify swiftpy --help displays only real commands and does not expose placeholder ai commands."""
|
|
114
|
-
cli = CLI()
|
|
115
|
-
with pytest.raises(SystemExit) as exc_info:
|
|
116
|
-
cli.run(["--help"])
|
|
117
|
-
assert exc_info.value.code == 0
|
|
118
|
-
|
|
119
|
-
captured = capsys.readouterr().out
|
|
120
|
-
assert "start" in captured
|
|
121
|
-
assert "migrate" in captured
|
|
122
|
-
assert "make:model" in captured
|
|
123
|
-
assert "queue:work" in captured
|
|
124
|
-
|
|
125
|
-
# Decision D-11: ai placeholders must not be exposed as broken commands
|
|
126
|
-
assert " ai " not in captured
|
|
127
|
-
assert "make:ai" not in captured
|
|
128
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|