swiftpy-framework 0.1.1__tar.gz → 0.1.3__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.1 → swiftpy_framework-0.1.3}/CHANGELOG.md +20 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/PKG-INFO +1 -1
- swiftpy_framework-0.1.3/documentations/2026-11-14-installation-quick-start.md +287 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/pyproject.toml +1 -1
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/cli.py +29 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/new.py +48 -18
- swiftpy_framework-0.1.3/tests/console/test_cli.py +51 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/test_new_command.py +23 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/test_phase9_cli_remediation.py +4 -1
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/uv.lock +1 -1
- swiftpy_framework-0.1.1/documentations/2026-11-14-installation-quick-start.md +0 -243
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/.dockerignore +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/.env.example +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/.github/workflows/ci.yml +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/.github/workflows/publish.yml +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/.gitignore +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/CONTRIBUTING.md +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/Dockerfile +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/LICENSE +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/README.md +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/events/user_registered.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/http/handler/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/http/middleware/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/http/middleware/admin_middleware.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/http/middleware/auth_middleware.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/http/middleware/test_middleware.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/http/requests/create_user_request.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/jobs/send_notification_job.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/listeners/send_welcome_notification.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/mail/welcome_email.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/models/user.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/app_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/auth_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/cache_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/database_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/event_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/filesystem_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/mail_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/providers/queue_service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/repositories/user_repository.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/schemas/user_schema.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/app/services/user_service.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/bootstrap/cache/.gitkeep +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/ai.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/app.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/auth.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/cache.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/cors.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/database.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/events.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/filesystems.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/logging.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/mail.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/config/queue.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/database/seeders/database_seeder.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/docker-compose.yml +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/documentations/2026-11-15-core-application-di-and-config.md +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/main.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/red-black.png +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/routes/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/routes/api.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/.gitignore +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/admin/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/admin/auth.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/admin/registry.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/admin/views.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/_deterministic.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/_fake.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/agents/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/agents/base_agent.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/agents/memory.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/client.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/conversation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/embeddings.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/history_strategies.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/middleware.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/observability/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/observability/drivers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/observability/observer.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/pool.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/pricing.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/prompts/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/prompts/loader.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/anthropic_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/base.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/openai_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/context_formatter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/pipeline_builder.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/reranker.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/result.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/retriever.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/redis_store.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/streaming.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/base_tool.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/first_party.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/tool_loop.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/base.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/api_key_guard.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/auth_manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/jwt_guard.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/jwt_issuer.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/auth/token_blacklist.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/cache/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/cache/cache.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/cache/driver.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/cache/drivers/memory.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/cache/drivers/redis.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/cache.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/make.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/migrate.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/queue.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/seed.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/start.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/commands/storage.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/loader.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/controller.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/event.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/job.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/listener.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/mail.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/middleware.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.alter.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.blank.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.create.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.update.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/model.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/provider.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/repository.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/request.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/resource.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/schema.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/seeder.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/service.stub +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/application.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/bootstrap.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/container.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/container_exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/context.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/core/providers/base.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/identifiers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/blueprint.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/lock.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/migration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/migrator.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/schema.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/orm/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/orm/fields.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/orm/model.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/orm/registry.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/orm/relationships.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/contracts.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/paginator.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/simple_paginator.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/pool.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/query_builder.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/seeder.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/database/transaction.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/events/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/events/dispatcher.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/events/redis_bus.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/disk.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/base.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/local.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/s3.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/events.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/metadata.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/paths.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/handlers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/validators.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/filesystem/visibility.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/helpers/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/helpers/helper.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/http/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/http/middleware.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/http/request.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/http/response.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/http/router.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/attachments.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/envelope.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/facade.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/mailable.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/message.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/models.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/queue/job.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/service_provider.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/templates/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/templates/renderer.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/base.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/mailgun.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/resend.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/sendgrid.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/base.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/console.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/sendmail.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/smtp.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/queue/dispatcher.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/queue/job.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/queue/worker.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/support/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/support/keys.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/support/redis_config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/support/strings.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/fakes/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/fakes/ai_fake.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/fixtures.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/http_client.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/testing/test_case.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/form_request.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/protocols.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/builtin.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/exists.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/registry.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/required.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/unique.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/validation/validator.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/websockets/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/websockets/connection.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/swiftpy/websockets/manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/admin/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/admin/test_admin.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/conftest.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/integration/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/integration/test_chroma.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/integration/test_lancedb.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/integration/test_pinecone.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/integration/test_qdrant.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/integration/test_rag_integration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_agents.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_ai_fake.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_ai_fake_isolation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_client.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_conversation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_embeddings.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_middleware.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_middleware_concurrency.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_observability.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_observability_resilience.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_phase7_ai_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_phase8_rag_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_prompts.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_prompts_security.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_providers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_rag.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_streaming.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_tools.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_vectorstore.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/ai/test_vectorstore_adapters.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/app/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/app/test_application_providers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/app/test_starter_auth.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/test_api_key_guard.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/test_auth_manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/test_auth_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/test_auth_security.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/test_jwt_issuer.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/auth/test_token_blacklist.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/benchmarks.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/cache/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/cache/test_cache_concurrency.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/cache/test_cache_manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/cache/test_driver_correctness.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/cache/test_memory_cache.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/cache/test_redis_cache.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/concurrency/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/concurrency/test_circular_dependency.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/concurrency/test_container_semantics.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/concurrency/test_resolution.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/concurrency/test_resolution2.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/conftest.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/test_cache_commands.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/test_start.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/test_stubs_and_make.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/core/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/core/test_application_config_isolation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/core/test_core_config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/core/test_exceptions.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/core/test_instance_singletons.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/core/test_lifespan.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_orm_expansion.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_orm_vector.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_pagination_and_grouping.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_pagination_pg_integration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_pgvector_integration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_phase4_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_query_expansion.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_query_expansion_pg_integration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/database/test_seeder.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/load_test_database.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/load_test_database2.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_arbitrary_primary_keys.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_identifiers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_mass_writes.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_pool_config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_query_builder_terminals.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_sql_injections.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/db/test_transaction_isolation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/docs/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/docs/test_readme_examples.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/e2e/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/e2e/test_concurrent_auth.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/e2e/test_crud_auth_e2e.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/events/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/events/test_event_dispatcher.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/events/test_model_events.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/events/test_redis_bus.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/events/test_redis_bus_reliability.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_cli_storage_link.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_disk.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_filesystem_concurrency.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_filesystem_config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_http_integration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_local_driver.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_multipart.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_paths.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_s3_driver.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_signed_urls.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_storage_facade.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_uploaded_file.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/filesystem/test_validation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_error_pipeline.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_http_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_include_router.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_request.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_response.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_route_groups.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/http/test_router.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/integration/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/integration/test_queue_event_websocket.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_api_transports.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_attachments.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_cli_make_mail.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_console_transport.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_envelope.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_facade_and_fake.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_mailable.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_manager_and_config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_message.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_phase6_mail_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_queue_integration.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_service_provider_and_helpers.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_smtp_and_sendmail.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/mail/test_templates.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/migrations/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/migrations/test_migrations.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/test_defaults_dirty.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/test_eager_loading.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/test_hidden.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/test_mass_assignment.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/test_model_events_transaction.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/orm/test_relationships_hardening.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_after_commit.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_phase5_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_poison_messages.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_queue.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_reliability.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_signing.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/queue/test_worker_behavior.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/security/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/security/test_security_audit.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/stress/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/stress/test_context_isolation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/support/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/support/test_redis_config.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/support/test_strings.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/testing/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/testing/test_fixtures.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/testing/test_phase9_testing_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/testing/test_test_client.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/typing/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/typing/test_orm_typing.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_db_rules.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_form_request_fail_closed.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_form_request_pipeline.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_phase6_validation_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_rules_hardening.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_validation_concurrency.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/validation/test_validator_rules.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/__init__.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_broadcast.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_handshake.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_lifecycle.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_concurrency.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_connection.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_manager.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_remediation.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/views/admin/dashboard.html +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/views/admin/login.html +0 -0
- {swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/views/mail/template.html +0 -0
|
@@ -4,6 +4,26 @@ All notable changes to SwiftPY will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.3] - 2026-11-16
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- **Scaffolding (`swiftpy new`):**
|
|
11
|
+
- Updated generated `main.py` with a root `GET /` handler returning JSON status alongside `register_exception_handlers(app)` and `/api` routing.
|
|
12
|
+
- Added `DB_HOST: postgres` and `REDIS_HOST: redis` under the `app` service in generated `docker-compose.yml` so containerized runs connect to Compose services automatically without modifying `.env`.
|
|
13
|
+
- Updated generated `pyproject.toml` dependency floor to `swiftpy-framework>=0.1.3`.
|
|
14
|
+
- **Documentation (`documentations/2026-11-14-installation-quick-start.md`):** Reorganized quick start into clear tracks: minimal app without scaffolding first, followed by scaffolded setup with separate fully Dockerized and Docker-free instructions.
|
|
15
|
+
|
|
16
|
+
## [0.1.2] - 2026-11-16
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- **CLI (`swiftpy -v` / `swiftpy --version`):** Added `-v` and `--version` flags to `CLI` reporting the installed `swiftpy-framework` version (with `pyproject.toml` fallback).
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- **Scaffolding (`swiftpy new`):**
|
|
23
|
+
- Removed hardcoded fallback database names, users, and passwords from generated `docker-compose.yml` so `POSTGRES_DB`, `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `pg_isready` `healthcheck` directly reference `${DB_DATABASE}`, `${DB_USERNAME}`, and `${DB_PASSWORD}` from `.env`.
|
|
24
|
+
- Added top-level `name: <project_name>` to generated `docker-compose.yml` and initialized `DB_DATABASE=<project_name>` in generated `.env`, `.env.example`, and `config/database.py`.
|
|
25
|
+
- Updated generated `pyproject.toml` dependency floor to `swiftpy-framework>=0.1.2`.
|
|
26
|
+
|
|
7
27
|
## [0.1.1] - 2026-11-15
|
|
8
28
|
|
|
9
29
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: swiftpy-framework
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
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
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# SwiftPY Installation and Quick Start
|
|
2
|
+
|
|
3
|
+
This guide covers two ways to get started with SwiftPY:
|
|
4
|
+
|
|
5
|
+
1. **Quick Start Without Scaffolding** — run a minimal single-file app with no database, Redis, or Docker.
|
|
6
|
+
2. **Full Project Scaffolding (`swiftpy new`)** — scaffold a full API application, then choose **either** the **Fully Dockerized** workflow **or** the **Without Docker at All** workflow.
|
|
7
|
+
|
|
8
|
+
> **Avoid duplicate commands:** Pick **one** track (and inside Full Project Scaffolding, pick **either** Option A or Option B). You never need to create two `.venv` folders or run both Docker and local `swiftpy start` at the same time.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Requirements
|
|
13
|
+
|
|
14
|
+
- **Distribution vs. import vs. CLI name:** On PyPI, install **`swiftpy-framework`**. In Python code, import **`swiftpy`**. In the terminal, run **`swiftpy`**.
|
|
15
|
+
- **For Quick Start Without Scaffolding (Minimal App):** Python `>= 3.12` only. PostgreSQL, Redis, and Docker are **not** required.
|
|
16
|
+
- **For Full Project Scaffolding:**
|
|
17
|
+
- **Option A (Fully Dockerized):** Docker Engine / Docker Desktop with Compose v2, plus Python `>= 3.12` (or a one-off CLI env) only to run `swiftpy new`.
|
|
18
|
+
- **Option B (Without Docker at All):** Python `>= 3.12`, **PostgreSQL 16** (with `pgvector` if using AI vector stores), and **Redis 7** running natively on your machine.
|
|
19
|
+
- Optional extras if needed later: `jinja2` (HTML mail/admin templates) and `aiosmtplib` (`smtp` mail transport).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Track 1: Quick Start Without Scaffolding (Minimal Single-File App)
|
|
24
|
+
|
|
25
|
+
Use this path when you want to test SwiftPY or build a lightweight service without a database or Redis. A single-file app with no `config/database.py` does **not** initialize `DatabasePool`.
|
|
26
|
+
|
|
27
|
+
### 1. Create a Folder and Install `swiftpy-framework`
|
|
28
|
+
|
|
29
|
+
Create a project directory, set up **one** virtual environment, and install `swiftpy-framework`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
mkdir swiftpy-minimal
|
|
33
|
+
cd swiftpy-minimal
|
|
34
|
+
python -m venv .venv
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Activate the virtual environment:
|
|
38
|
+
|
|
39
|
+
- **macOS / Linux:** `source .venv/bin/activate`
|
|
40
|
+
- **Windows PowerShell:** `.venv\Scripts\Activate.ps1`
|
|
41
|
+
|
|
42
|
+
Install `swiftpy-framework` and verify the CLI:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
python -m pip install --upgrade pip
|
|
46
|
+
python -m pip install swiftpy-framework
|
|
47
|
+
swiftpy --version
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
> **Using `uv` instead of `venv` + `pip`:** Run `uv init --python 3.12 && uv add swiftpy-framework` inside `swiftpy-minimal`, then prefix commands with `uv run` (or activate `.venv`).
|
|
51
|
+
|
|
52
|
+
### 2. Create `main.py`
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from __future__ import annotations
|
|
56
|
+
|
|
57
|
+
from swiftpy import Application, Request, Response, json_response
|
|
58
|
+
|
|
59
|
+
app = Application()
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@app.get("/")
|
|
63
|
+
async def home(request: Request) -> Response:
|
|
64
|
+
return json_response(
|
|
65
|
+
{
|
|
66
|
+
"status": "ok",
|
|
67
|
+
"message": "Hello from SwiftPY",
|
|
68
|
+
"app": "SwiftPY",
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@app.get("/health")
|
|
74
|
+
async def health(request: Request) -> dict[str, str]:
|
|
75
|
+
return {"status": "ok"}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Route handlers may return an explicit `Response` (such as `json_response(...)`) or a plain `dict` / `list` (automatically serialized to JSON).
|
|
79
|
+
|
|
80
|
+
### 3. Start and Verify
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
swiftpy start --reload
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
(Or directly with Uvicorn: `uvicorn main:app --reload`.)
|
|
87
|
+
|
|
88
|
+
Visit:
|
|
89
|
+
|
|
90
|
+
- `http://127.0.0.1:8000/` -> `{"status": "ok", "message": "Hello from SwiftPY", "app": "SwiftPY"}`
|
|
91
|
+
- `http://127.0.0.1:8000/health` -> `{"status": "ok"}`
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Track 2: Full Project Scaffolding (`swiftpy new`)
|
|
96
|
+
|
|
97
|
+
Use this path for full-stack APIs with config files, migrations, ORM models, storage, queues, and Docker support.
|
|
98
|
+
|
|
99
|
+
### 1. Scaffold the Project
|
|
100
|
+
|
|
101
|
+
From the workspace parent directory where you want your project folder created, install or activate `swiftpy` once and generate the project:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# If swiftpy is not already installed in your current shell environment:
|
|
105
|
+
python -m pip install swiftpy-framework
|
|
106
|
+
|
|
107
|
+
swiftpy new my_api
|
|
108
|
+
cd my_api
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Pass `--force` only if overwriting an existing non-empty directory (existing `.env` files are preserved when `--force` is used).
|
|
112
|
+
|
|
113
|
+
### 2. Generated Project Structure
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
my_api/
|
|
117
|
+
├── app/
|
|
118
|
+
│ ├── events/ # Domain events
|
|
119
|
+
│ ├── http/
|
|
120
|
+
│ │ ├── handler/ # Exception handlers (exceptions.py -> register_exception_handlers)
|
|
121
|
+
│ │ ├── middleware/ # Auth & Admin middleware templates
|
|
122
|
+
│ │ └── requests/ # Typed FormRequest classes
|
|
123
|
+
│ ├── jobs/ # Background Queue jobs
|
|
124
|
+
│ ├── listeners/ # Event listeners
|
|
125
|
+
│ ├── mail/ # Mailables (WelcomeEmail)
|
|
126
|
+
│ ├── models/ # Active Record ORM models (User)
|
|
127
|
+
│ ├── providers/ # Auto-discovered service providers
|
|
128
|
+
│ ├── repositories/ # Data access layer
|
|
129
|
+
│ ├── schemas/ # Typed dataclasses/schemas
|
|
130
|
+
│ └── services/ # Business logic services
|
|
131
|
+
├── config/ # Configuration files loading .env via env() / env_bool()
|
|
132
|
+
├── database/
|
|
133
|
+
│ ├── migrations/ # Timestamped schema migrations (initial users table included)
|
|
134
|
+
│ └── seeders/ # DatabaseSeeders
|
|
135
|
+
├── public/ # Public web assets (storage symlink target)
|
|
136
|
+
├── routes/
|
|
137
|
+
│ └── api.py # Starter /api/health and /api/users routes
|
|
138
|
+
├── storage/ # Private, public, framework cache, and log directories
|
|
139
|
+
├── views/ # Jinja2 HTML templates (admin/, mail/)
|
|
140
|
+
├── tests/ # pytest conftest.py & starter API test
|
|
141
|
+
├── .env # Generated APP_KEY & JWT_SECRET, DB_DATABASE=my_api
|
|
142
|
+
├── .env.example
|
|
143
|
+
├── docker-compose.yml # name: my_api; app, postgres (pgvector:pg16), & redis services
|
|
144
|
+
├── Dockerfile
|
|
145
|
+
├── main.py # Entrypoint: GET /, /api router, register_exception_handlers(app)
|
|
146
|
+
└── pyproject.toml # Configured with swiftpy-framework>=0.1.3, setuptools, & mypy strict settings
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
What `swiftpy new my_api` configures automatically:
|
|
150
|
+
|
|
151
|
+
- **`.env` and `.env.example`:** Generates random `APP_KEY` and `JWT_SECRET` in `.env`, sets `DB_DATABASE=my_api`, `DB_HOST=127.0.0.1`, `DB_PORT=5432`, `DB_USERNAME=postgres`, `DB_PASSWORD=secret`, and `REDIS_HOST=127.0.0.1`.
|
|
152
|
+
- **`docker-compose.yml`:** Sets `name: my_api`, reads `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD` directly from `.env` (`${DB_DATABASE}`, `${DB_USERNAME}`, `${DB_PASSWORD}`), and sets `DB_HOST: postgres` and `REDIS_HOST: redis` for the `app` container so container networking works without editing `.env`.
|
|
153
|
+
- **Important:** When `Application` boots, `Config.load()` reads `.env` into SwiftPY's active env context without mutating `os.environ` (existing process environment variables still override `.env`).
|
|
154
|
+
|
|
155
|
+
Now choose **ONE** of the two run modes below (Option A **or** Option B).
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### Option A: Fully Dockerized (App + PostgreSQL + Redis in Docker)
|
|
160
|
+
|
|
161
|
+
Use this mode if you want Docker to run everything — **you do not need to create a `.venv`, install Python packages locally, or install Postgres/Redis on your host.**
|
|
162
|
+
|
|
163
|
+
1. Inside `my_api`, review `.env` (optional — defaults already work out of the box with Compose).
|
|
164
|
+
2. Build and start `app`, `postgres`, and `redis`:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
docker compose up -d --build
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
3. Run database migrations and link public storage **inside the running `app` container**:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
docker compose exec app swiftpy migrate
|
|
174
|
+
docker compose exec app swiftpy storage:link
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
4. Verify the starter endpoints from your browser or `curl`:
|
|
178
|
+
|
|
179
|
+
- `GET http://127.0.0.1:8000/` -> `{"status": "ok", "message": "Hello from SwiftPY", "app": "SwiftPY"}`
|
|
180
|
+
- `GET http://127.0.0.1:8000/api/health` -> `{"status": "ok", "app": "SwiftPY"}`
|
|
181
|
+
- `GET http://127.0.0.1:8000/api/users` -> `[{"id": 1, "name": "Alice Doe", "email": "alice@example.com"}]`
|
|
182
|
+
|
|
183
|
+
Common Docker lifecycle commands:
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
# View live application logs
|
|
187
|
+
docker compose logs -f app
|
|
188
|
+
|
|
189
|
+
# Stop containers (keeps database data)
|
|
190
|
+
docker compose down
|
|
191
|
+
|
|
192
|
+
# Stop containers AND delete database/redis volumes (use this if an old volume with different credentials existed)
|
|
193
|
+
docker compose down -v
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
> **Troubleshooting `InvalidPasswordError` in Docker:** PostgreSQL only initializes `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD` when its data volume is brand new. If a Docker volume named `my_api_postgres_data` already existed from another project or earlier setup with different credentials, run `docker compose down -v` and then `docker compose up -d --build`.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
### Option B: Without Docker at All (Local Python + Native PostgreSQL & Redis)
|
|
201
|
+
|
|
202
|
+
Use this mode if you have PostgreSQL 16+ and Redis 7 installed locally on your machine and do **not** want to use Docker at all.
|
|
203
|
+
|
|
204
|
+
1. Inside `my_api`, install project dependencies into **one** virtual environment:
|
|
205
|
+
|
|
206
|
+
- **With `uv` (recommended):**
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
uv sync
|
|
210
|
+
source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
- **Or with `python -m venv` + `pip`:**
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
python -m venv .venv
|
|
217
|
+
source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1
|
|
218
|
+
python -m pip install --upgrade pip
|
|
219
|
+
python -m pip install -e .
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
*(Skip creating `my_api/.venv` only if you intentionally installed `swiftpy-framework` in a parent workspace `.venv` that is already activated.)*
|
|
223
|
+
|
|
224
|
+
2. Ensure local **PostgreSQL** (`127.0.0.1:5432`) and **Redis** (`127.0.0.1:6379`) services are running on your machine.
|
|
225
|
+
3. Make sure your local PostgreSQL database exists and `.env` matches your local Postgres credentials:
|
|
226
|
+
- Default `.env` expects database `my_api`, user `postgres`, password `secret`.
|
|
227
|
+
- Update `DB_USERNAME`, `DB_PASSWORD`, `DB_PORT`, or `REDIS_PASSWORD` in `.env` if your local services use different values, then create the database if it does not exist yet:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
createdb -U postgres my_api
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
*(Or in `psql`: `CREATE DATABASE my_api;`.)*
|
|
234
|
+
|
|
235
|
+
4. Run migrations, link public storage, and start the dev server **once**:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
swiftpy migrate
|
|
239
|
+
swiftpy storage:link
|
|
240
|
+
swiftpy start --reload
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
5. Verify the endpoints:
|
|
244
|
+
|
|
245
|
+
- `GET http://127.0.0.1:8000/` -> `{"status": "ok", "message": "Hello from SwiftPY", "app": "SwiftPY"}`
|
|
246
|
+
- `GET http://127.0.0.1:8000/api/health` -> `{"status": "ok", "app": "SwiftPY"}`
|
|
247
|
+
- `GET http://127.0.0.1:8000/api/users` -> `[{"id": 1, "name": "Alice Doe", "email": "alice@example.com"}]`
|
|
248
|
+
|
|
249
|
+
> **Hybrid alternative (Docker only for PostgreSQL + Redis, local Python for the app):** Instead of Option A or installing Postgres/Redis natively in Option B, you can start only the backing containers with `docker compose up -d postgres redis`, keep `.env` pointing to `127.0.0.1`, and run steps 1, 4, and 5 above on your host. Do **not** run `docker compose up -d` (all services) at the same time as a local `swiftpy start` process, or port `8000` will conflict.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Choosing a Server Mode (`swiftpy start`)
|
|
254
|
+
|
|
255
|
+
`swiftpy start` wraps `uvicorn.run(...)` and resolves defaults in order: CLI flags -> `config/server.*` or `config/app.*` -> built-in defaults (`target="main:app"`, `host="127.0.0.1"`, `port=8000`, `workers=1`, `reload=False`).
|
|
256
|
+
|
|
257
|
+
Common invocations:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
# Development (single worker + file watching; --reload defaults to False)
|
|
261
|
+
swiftpy start --reload
|
|
262
|
+
|
|
263
|
+
# Explicit ASGI target, host, port, and .env file
|
|
264
|
+
swiftpy start main:app --host 127.0.0.1 --port 8080 --env-file .env
|
|
265
|
+
|
|
266
|
+
# Multi-worker production mode (must NOT pass --reload)
|
|
267
|
+
swiftpy start main:app --host 0.0.0.0 --port 8000 --workers 4 --no-access-log --log-level warning
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Supported `swiftpy start` options:
|
|
271
|
+
|
|
272
|
+
| Option / Argument | Default | Notes |
|
|
273
|
+
|---|---|---|
|
|
274
|
+
| `target` (positional) | `main:app` | ASGI module:attribute path (`server.target` / `app.target`) |
|
|
275
|
+
| `--host` | `127.0.0.1` | Socket bind host (`server.host` / `app.host`) |
|
|
276
|
+
| `--port` | `8000` | Socket bind port (`0`–`65535`; `server.port` / `app.port`) |
|
|
277
|
+
| `--workers` | `1` | Worker process count (`>= 1`; `server.workers`) |
|
|
278
|
+
| `--reload` | `False` | Enable hot reload (cannot be combined with `--workers > 1`) |
|
|
279
|
+
| `--env-file` | `None` | Environment file path passed to Uvicorn (`server.env_file`) |
|
|
280
|
+
| `--access-log` / `--no-access-log` | `None` | Override Uvicorn HTTP access logging (`server.access_log`) |
|
|
281
|
+
| `--log-level` | `None` | `critical`, `error`, `warning`, `info`, `debug`, or `trace` (`server.log_level`) |
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Next Step
|
|
286
|
+
|
|
287
|
+
Continue with the documentation sequence in [`docs/2026-11-14_documentation_plan.md`](../docs/2026-11-14_documentation_plan.md) (next guide: `documentations/2026-11-15-core-application-di-and-config.md`).
|
|
@@ -10,7 +10,7 @@ dev = [
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "swiftpy-framework"
|
|
13
|
-
version = "0.1.
|
|
13
|
+
version = "0.1.3"
|
|
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 = [
|
|
@@ -2,6 +2,9 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import argparse
|
|
4
4
|
import sys
|
|
5
|
+
import tomllib
|
|
6
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
7
|
+
from pathlib import Path
|
|
5
8
|
|
|
6
9
|
from swiftpy.console.commands.cache import CacheCommand
|
|
7
10
|
from swiftpy.console.commands.make import MakeCommand
|
|
@@ -13,6 +16,26 @@ from swiftpy.console.commands.start import StartCommand
|
|
|
13
16
|
from swiftpy.console.commands.storage import StorageCommand
|
|
14
17
|
|
|
15
18
|
|
|
19
|
+
def _get_framework_version() -> str:
|
|
20
|
+
"""Return the installed SwiftPY version, falling back to pyproject.toml."""
|
|
21
|
+
try:
|
|
22
|
+
return version("swiftpy-framework")
|
|
23
|
+
except PackageNotFoundError:
|
|
24
|
+
pyproject_path = Path(__file__).resolve().parents[2] / "pyproject.toml"
|
|
25
|
+
if pyproject_path.is_file():
|
|
26
|
+
try:
|
|
27
|
+
with pyproject_path.open("rb") as handle:
|
|
28
|
+
data = tomllib.load(handle)
|
|
29
|
+
project = data.get("project")
|
|
30
|
+
if isinstance(project, dict):
|
|
31
|
+
pkg_version = project.get("version")
|
|
32
|
+
if isinstance(pkg_version, str) and pkg_version:
|
|
33
|
+
return pkg_version
|
|
34
|
+
except (OSError, tomllib.TOMLDecodeError):
|
|
35
|
+
pass
|
|
36
|
+
return "unknown"
|
|
37
|
+
|
|
38
|
+
|
|
16
39
|
class CLI:
|
|
17
40
|
"""
|
|
18
41
|
SwiftPY command line entrypoint.
|
|
@@ -28,6 +51,12 @@ class CLI:
|
|
|
28
51
|
prog="swiftpy",
|
|
29
52
|
description="SwiftPY Framework CLI",
|
|
30
53
|
)
|
|
54
|
+
self.parser.add_argument(
|
|
55
|
+
"-v",
|
|
56
|
+
"--version",
|
|
57
|
+
action="version",
|
|
58
|
+
version=f"%(prog)s {_get_framework_version()}",
|
|
59
|
+
)
|
|
31
60
|
|
|
32
61
|
self.subparsers = self.parser.add_subparsers(
|
|
33
62
|
dest="command",
|
|
@@ -49,6 +49,9 @@ DOCKER_COMPOSE_CONTENT = """services:
|
|
|
49
49
|
- "127.0.0.1:8000:8000"
|
|
50
50
|
env_file:
|
|
51
51
|
- .env
|
|
52
|
+
environment:
|
|
53
|
+
DB_HOST: postgres
|
|
54
|
+
REDIS_HOST: redis
|
|
52
55
|
volumes:
|
|
53
56
|
- .:/app
|
|
54
57
|
depends_on:
|
|
@@ -62,13 +65,13 @@ DOCKER_COMPOSE_CONTENT = """services:
|
|
|
62
65
|
ports:
|
|
63
66
|
- "127.0.0.1:5432:5432"
|
|
64
67
|
environment:
|
|
65
|
-
POSTGRES_DB: ${DB_DATABASE
|
|
66
|
-
POSTGRES_USER: ${DB_USERNAME
|
|
67
|
-
POSTGRES_PASSWORD: ${DB_PASSWORD
|
|
68
|
+
POSTGRES_DB: ${DB_DATABASE}
|
|
69
|
+
POSTGRES_USER: ${DB_USERNAME}
|
|
70
|
+
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
68
71
|
volumes:
|
|
69
72
|
- postgres_data:/var/lib/postgresql/data
|
|
70
73
|
healthcheck:
|
|
71
|
-
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME
|
|
74
|
+
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE}"]
|
|
72
75
|
interval: 5s
|
|
73
76
|
timeout: 5s
|
|
74
77
|
retries: 5
|
|
@@ -237,7 +240,7 @@ ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
|
|
|
237
240
|
|
|
238
241
|
MAIN_PY_CONTENT = """from __future__ import annotations
|
|
239
242
|
|
|
240
|
-
from swiftpy
|
|
243
|
+
from swiftpy import Application, Request, Response, json_response
|
|
241
244
|
|
|
242
245
|
from app.http.handler.exceptions import register_exception_handlers
|
|
243
246
|
from routes.api import router as api_router
|
|
@@ -245,16 +248,19 @@ from routes.api import router as api_router
|
|
|
245
248
|
app = Application()
|
|
246
249
|
register_exception_handlers(app)
|
|
247
250
|
|
|
248
|
-
# Enable opt-in CORS middleware (configured in config/cors.py):
|
|
249
|
-
# from swiftpy.http.middleware import CORSMiddleware
|
|
250
|
-
# app.middleware([CORSMiddleware])
|
|
251
|
-
|
|
252
251
|
# Mount default API routes under /api
|
|
253
252
|
app.include_router(api_router, prefix="/api")
|
|
254
253
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
|
|
255
|
+
@app.get("/")
|
|
256
|
+
async def home(request: Request) -> Response:
|
|
257
|
+
return json_response(
|
|
258
|
+
{
|
|
259
|
+
"status": "ok",
|
|
260
|
+
"message": "Hello from SwiftPY",
|
|
261
|
+
"app": "SwiftPY",
|
|
262
|
+
}
|
|
263
|
+
)
|
|
258
264
|
"""
|
|
259
265
|
|
|
260
266
|
ROUTES_API_PY_CONTENT = """from __future__ import annotations
|
|
@@ -1493,6 +1499,29 @@ async def test_health_check_endpoint(client: TestClient) -> None:
|
|
|
1493
1499
|
"""
|
|
1494
1500
|
|
|
1495
1501
|
|
|
1502
|
+
def _get_docker_compose(project_name: str) -> str:
|
|
1503
|
+
"""Return generated docker-compose.yml content scoped to `project_name`."""
|
|
1504
|
+
return f"name: {project_name}\n\n{DOCKER_COMPOSE_CONTENT}"
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
def _get_env_example(project_name: str) -> str:
|
|
1508
|
+
"""Return .env.example content with `DB_DATABASE` set to `project_name`."""
|
|
1509
|
+
return ENV_EXAMPLE_CONTENT.replace(
|
|
1510
|
+
"\nDB_DATABASE=swiftpy\n",
|
|
1511
|
+
f"\nDB_DATABASE={project_name}\n",
|
|
1512
|
+
1,
|
|
1513
|
+
)
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
def _get_config_database(project_name: str) -> str:
|
|
1517
|
+
"""Return config/database.py content defaulting `database` to `project_name`."""
|
|
1518
|
+
return CONFIG_DATABASE_CONTENT.replace(
|
|
1519
|
+
'"database": env("DB_DATABASE", "swiftpy"),',
|
|
1520
|
+
f'"database": env("DB_DATABASE", "{project_name}"),',
|
|
1521
|
+
1,
|
|
1522
|
+
)
|
|
1523
|
+
|
|
1524
|
+
|
|
1496
1525
|
def _get_pyproject_toml(project_name: str) -> str:
|
|
1497
1526
|
return f"""[build-system]
|
|
1498
1527
|
requires = ["setuptools>=75.0"]
|
|
@@ -1504,7 +1533,7 @@ version = "0.1.0"
|
|
|
1504
1533
|
description = "A SwiftPY web application"
|
|
1505
1534
|
requires-python = ">=3.12"
|
|
1506
1535
|
dependencies = [
|
|
1507
|
-
"swiftpy-framework>=0.1.
|
|
1536
|
+
"swiftpy-framework>=0.1.3",
|
|
1508
1537
|
"uvicorn[standard]>=0.52.4",
|
|
1509
1538
|
"asyncpg>=0.30.0",
|
|
1510
1539
|
"redis>=8.1.0",
|
|
@@ -1723,17 +1752,18 @@ class NewCommand:
|
|
|
1723
1752
|
dir_path.mkdir(parents=True, exist_ok=True)
|
|
1724
1753
|
_validate_safe_path(dir_path)
|
|
1725
1754
|
|
|
1726
|
-
# Generate active .env with APP_KEY and JWT_SECRET
|
|
1755
|
+
# Generate active .env with project DB_DATABASE, APP_KEY, and JWT_SECRET
|
|
1756
|
+
env_example = _get_env_example(raw_name)
|
|
1727
1757
|
jwt_secret = secrets.token_urlsafe(48)
|
|
1728
|
-
env_content =
|
|
1758
|
+
env_content = env_example.replace("APP_KEY=", f"APP_KEY={app_key}")
|
|
1729
1759
|
env_content = env_content.replace("JWT_SECRET=", f"JWT_SECRET={jwt_secret}")
|
|
1730
1760
|
|
|
1731
1761
|
files: dict[str, str] = {
|
|
1732
1762
|
".dockerignore": DOCKERIGNORE_CONTENT,
|
|
1733
|
-
".env.example":
|
|
1763
|
+
".env.example": env_example,
|
|
1734
1764
|
".env": env_content,
|
|
1735
1765
|
".gitignore": GITIGNORE_CONTENT,
|
|
1736
|
-
"docker-compose.yml":
|
|
1766
|
+
"docker-compose.yml": _get_docker_compose(raw_name),
|
|
1737
1767
|
"Dockerfile": DOCKERFILE_CONTENT,
|
|
1738
1768
|
"main.py": MAIN_PY_CONTENT,
|
|
1739
1769
|
"pyproject.toml": _get_pyproject_toml(raw_name),
|
|
@@ -1765,7 +1795,7 @@ class NewCommand:
|
|
|
1765
1795
|
"config/auth.py": CONFIG_AUTH_CONTENT,
|
|
1766
1796
|
"config/cache.py": CONFIG_CACHE_CONTENT,
|
|
1767
1797
|
"config/cors.py": CONFIG_CORS_CONTENT,
|
|
1768
|
-
"config/database.py":
|
|
1798
|
+
"config/database.py": _get_config_database(raw_name),
|
|
1769
1799
|
"config/events.py": CONFIG_EVENTS_CONTENT,
|
|
1770
1800
|
"config/filesystems.py": CONFIG_FILESYSTEMS_CONTENT,
|
|
1771
1801
|
"config/logging.py": CONFIG_LOGGING_CONTENT,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from unittest.mock import patch
|
|
6
|
+
|
|
7
|
+
import pytest
|
|
8
|
+
|
|
9
|
+
from swiftpy.console.cli import CLI, _get_framework_version
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@pytest.mark.parametrize("flag", ["-v", "--version"])
|
|
13
|
+
def test_cli_version_flags(flag: str, capsys: pytest.CaptureFixture[str]) -> None:
|
|
14
|
+
"""Verify `swiftpy -v` and `swiftpy --version` print framework version and exit 0."""
|
|
15
|
+
with patch("swiftpy.console.cli.version", return_value="9.8.7"):
|
|
16
|
+
cli = CLI()
|
|
17
|
+
with pytest.raises(SystemExit) as exc_info:
|
|
18
|
+
cli.run([flag])
|
|
19
|
+
|
|
20
|
+
assert exc_info.value.code == 0
|
|
21
|
+
captured = capsys.readouterr()
|
|
22
|
+
assert captured.out.strip() == "swiftpy 9.8.7"
|
|
23
|
+
assert captured.err == ""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def test_get_framework_version_fallback_to_pyproject() -> None:
|
|
27
|
+
"""Fallback reads pyproject.toml when package distribution metadata is absent."""
|
|
28
|
+
with patch(
|
|
29
|
+
"swiftpy.console.cli.version",
|
|
30
|
+
side_effect=PackageNotFoundError("swiftpy-framework"),
|
|
31
|
+
):
|
|
32
|
+
resolved = _get_framework_version()
|
|
33
|
+
|
|
34
|
+
assert resolved
|
|
35
|
+
assert resolved != "unknown"
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def test_get_framework_version_returns_unknown_without_metadata_or_pyproject(
|
|
39
|
+
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
40
|
+
) -> None:
|
|
41
|
+
"""Fallback returns 'unknown' if neither dist metadata nor pyproject.toml exists."""
|
|
42
|
+
fake_cli_file = tmp_path / "pkg" / "swiftpy" / "console" / "cli.py"
|
|
43
|
+
fake_cli_file.parent.mkdir(parents=True)
|
|
44
|
+
fake_cli_file.write_text("", encoding="utf-8")
|
|
45
|
+
|
|
46
|
+
monkeypatch.setattr("swiftpy.console.cli.__file__", str(fake_cli_file))
|
|
47
|
+
with patch(
|
|
48
|
+
"swiftpy.console.cli.version",
|
|
49
|
+
side_effect=PackageNotFoundError("swiftpy-framework"),
|
|
50
|
+
):
|
|
51
|
+
assert _get_framework_version() == "unknown"
|
|
@@ -405,7 +405,22 @@ def test_scaffolded_packaging_and_plain_mypy_config(
|
|
|
405
405
|
assert "[tool.mypy]" in pyproject
|
|
406
406
|
|
|
407
407
|
compose = (app_dir / "docker-compose.yml").read_text(encoding="utf-8")
|
|
408
|
+
assert compose.startswith("name: pkg_app\n")
|
|
408
409
|
assert "image: pgvector/pgvector:pg16" in compose
|
|
410
|
+
assert "DB_HOST: postgres" in compose
|
|
411
|
+
assert "REDIS_HOST: redis" in compose
|
|
412
|
+
assert "POSTGRES_DB: ${DB_DATABASE}" in compose
|
|
413
|
+
assert "POSTGRES_USER: ${DB_USERNAME}" in compose
|
|
414
|
+
assert "POSTGRES_PASSWORD: ${DB_PASSWORD}" in compose
|
|
415
|
+
assert "pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE}" in compose
|
|
416
|
+
assert ":-" not in compose
|
|
417
|
+
|
|
418
|
+
env_active = (app_dir / ".env").read_text(encoding="utf-8")
|
|
419
|
+
assert "\nDB_DATABASE=pkg_app\n" in env_active
|
|
420
|
+
env_example = (app_dir / ".env.example").read_text(encoding="utf-8")
|
|
421
|
+
assert "\nDB_DATABASE=pkg_app\n" in env_example
|
|
422
|
+
db_cfg = (app_dir / "config" / "database.py").read_text(encoding="utf-8")
|
|
423
|
+
assert '"database": env("DB_DATABASE", "pkg_app")' in db_cfg
|
|
409
424
|
|
|
410
425
|
readme = (app_dir / "README.md").read_text(encoding="utf-8")
|
|
411
426
|
assert "uv sync" in readme
|
|
@@ -461,6 +476,14 @@ async def test_scaffolded_main_wires_exception_handlers(
|
|
|
461
476
|
monkeypatch.setattr(pool, "close", AsyncMock())
|
|
462
477
|
|
|
463
478
|
async with TestClient(loaded_app) as client:
|
|
479
|
+
home_resp = await client.get("/")
|
|
480
|
+
assert home_resp.status_code == 200
|
|
481
|
+
assert home_resp.json() == {
|
|
482
|
+
"status": "ok",
|
|
483
|
+
"message": "Hello from SwiftPY",
|
|
484
|
+
"app": "SwiftPY",
|
|
485
|
+
}
|
|
486
|
+
|
|
464
487
|
resp = await client.get("/conflict-test")
|
|
465
488
|
assert resp.status_code == 409
|
|
466
489
|
assert resp.json() == {"error": "conflict", "detail": "duplicate entry"}
|
{swiftpy_framework-0.1.1 → swiftpy_framework-0.1.3}/tests/console/test_phase9_cli_remediation.py
RENAMED
|
@@ -27,12 +27,15 @@ 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>=0.1.
|
|
30
|
+
assert '"swiftpy-framework>=0.1.3"' in pyproject
|
|
31
31
|
|
|
32
32
|
compose = (app_dir / "docker-compose.yml").read_text(encoding="utf-8")
|
|
33
|
+
assert compose.startswith("name: sample_app\n")
|
|
33
34
|
assert '"127.0.0.1:5432:5432"' in compose
|
|
34
35
|
assert '"127.0.0.1:6379:6379"' in compose
|
|
35
36
|
assert '"127.0.0.1:8000:8000"' in compose
|
|
37
|
+
assert "POSTGRES_PASSWORD: ${DB_PASSWORD}" in compose
|
|
38
|
+
assert ":-" not in compose
|
|
36
39
|
|
|
37
40
|
assert not (app_dir / "public" / "storage" / ".gitkeep").exists()
|
|
38
41
|
assert not (app_dir / "public" / "storage").exists()
|