swiftpy-framework 0.1.2__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.2 → swiftpy_framework-0.1.3}/CHANGELOG.md +9 -0
- {swiftpy_framework-0.1.2 → 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.2 → swiftpy_framework-0.1.3}/pyproject.toml +1 -1
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/new.py +15 -9
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/test_new_command.py +10 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/test_phase9_cli_remediation.py +1 -1
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/uv.lock +1 -1
- swiftpy_framework-0.1.2/documentations/2026-11-14-installation-quick-start.md +0 -244
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/.dockerignore +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/.env.example +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/.github/workflows/ci.yml +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/.github/workflows/publish.yml +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/.gitignore +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/CONTRIBUTING.md +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/Dockerfile +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/LICENSE +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/README.md +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/events/user_registered.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/http/handler/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/http/middleware/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/http/middleware/admin_middleware.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/http/middleware/auth_middleware.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/http/middleware/test_middleware.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/http/requests/create_user_request.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/jobs/send_notification_job.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/listeners/send_welcome_notification.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/mail/welcome_email.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/models/user.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/app_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/auth_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/cache_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/database_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/event_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/filesystem_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/mail_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/providers/queue_service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/repositories/user_repository.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/schemas/user_schema.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/app/services/user_service.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/bootstrap/cache/.gitkeep +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/ai.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/app.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/auth.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/cache.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/cors.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/database.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/events.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/filesystems.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/logging.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/mail.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/config/queue.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/database/migrations/2026_01_01_000000_create_users_table.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/database/seeders/database_seeder.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/docker-compose.yml +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/documentations/2026-11-15-core-application-di-and-config.md +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/documentations/2026-11-15-http-routing-middleware-and-exceptions.md +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/main.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/red-black.png +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/routes/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/routes/api.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/.gitignore +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/admin/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/admin/auth.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/admin/registry.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/admin/views.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/_deterministic.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/_fake.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/agents/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/agents/base_agent.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/agents/memory.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/client.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/conversation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/embeddings.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/history_strategies.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/middleware.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/observability/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/observability/drivers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/observability/observer.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/pool.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/pricing.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/prompts/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/prompts/loader.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/anthropic_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/base.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/providers/openai_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/context_formatter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/pipeline_builder.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/reranker.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/result.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/rag/retriever.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/redis_store.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/streaming.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/base_tool.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/first_party.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/tools/tool_loop.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/base.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/chroma_adapter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/in_memory_adapter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/lancedb_adapter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/pgvector_adapter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/pinecone_adapter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/ai/vectorstore/qdrant_adapter.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/api_key_guard.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/auth_manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/jwt_guard.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/jwt_issuer.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/auth/token_blacklist.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/cache/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/cache/cache.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/cache/driver.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/cache/drivers/memory.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/cache/drivers/redis.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/cli.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/cache.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/make.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/migrate.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/queue.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/seed.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/start.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/commands/storage.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/loader.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/controller.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/event.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/job.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/listener.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/mail.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/middleware.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.alter.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.api_keys.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.blank.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.create.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/migration.update.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/model.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/provider.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/repository.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/request.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/resource.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/schema.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/seeder.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/console/stubs/service.stub +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/application.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/bootstrap.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/container.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/container_exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/context.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/core/providers/base.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/identifiers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/blueprint.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/lock.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/migration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/migrator.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/migrations/schema.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/orm/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/orm/fields.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/orm/model.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/orm/registry.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/orm/relationships.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/contracts.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/paginator.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/pagination/simple_paginator.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/pool.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/query_builder.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/seeder.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/database/transaction.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/events/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/events/dispatcher.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/events/redis_bus.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/disk.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/base.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/local.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/drivers/s3.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/events.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/metadata.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/paths.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/handlers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/uploaded_file.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/uploads/validators.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/filesystem/visibility.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/helpers/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/helpers/helper.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/http/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/http/middleware.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/http/request.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/http/response.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/http/router.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/attachments.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/envelope.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/facade.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/mailable.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/message.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/models.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/queue/job.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/service_provider.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/templates/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/templates/renderer.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/base.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/mailgun.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/resend.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/api/sendgrid.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/base.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/console.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/sendmail.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/mail/transports/smtp.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/queue/dispatcher.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/queue/job.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/queue/worker.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/support/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/support/keys.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/support/redis_config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/support/strings.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/fakes/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/fakes/ai_fake.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/fakes/vectorstore_fake.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/fixtures.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/http_client.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/testing/test_case.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/form_request.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/protocols.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/builtin.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/exists.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/registry.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/required.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/rules/unique.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/validation/validator.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/websockets/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/websockets/connection.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/swiftpy/websockets/manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/admin/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/admin/test_admin.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/conftest.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/integration/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/integration/test_chroma.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/integration/test_lancedb.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/integration/test_pinecone.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/integration/test_qdrant.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/integration/test_rag_integration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_agents.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_ai_fake.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_ai_fake_isolation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_client.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_conversation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_embeddings.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_middleware.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_middleware_concurrency.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_observability.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_observability_resilience.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_phase7_ai_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_phase8_agents_tools_prompts_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_phase8_rag_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_phase8_vectorstore_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_prompts.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_prompts_security.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_providers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_rag.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_streaming.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_tools.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_vectorstore.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/ai/test_vectorstore_adapters.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/app/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/app/test_application_providers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/app/test_starter_auth.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/test_api_key_guard.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/test_auth_manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/test_auth_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/test_auth_security.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/test_jwt_issuer.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/auth/test_token_blacklist.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/benchmarks.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/cache/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/cache/test_cache_concurrency.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/cache/test_cache_manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/cache/test_driver_correctness.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/cache/test_memory_cache.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/cache/test_redis_cache.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/concurrency/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/concurrency/test_circular_dependency.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/concurrency/test_container_semantics.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/concurrency/test_resolution.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/concurrency/test_resolution2.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/conftest.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/test_cache_commands.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/test_cli.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/test_start.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/console/test_stubs_and_make.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/core/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/core/test_application_config_isolation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/core/test_core_config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/core/test_exceptions.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/core/test_instance_singletons.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/core/test_lifespan.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_orm_expansion.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_orm_vector.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_pagination_and_grouping.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_pagination_pg_integration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_pgvector_integration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_phase4_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_query_expansion.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_query_expansion_pg_integration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/database/test_seeder.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/load_test_database.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/load_test_database2.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_arbitrary_primary_keys.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_identifiers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_mass_writes.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_pool_config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_query_builder_terminals.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_sql_injections.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/db/test_transaction_isolation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/docs/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/docs/test_readme_examples.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/e2e/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/e2e/test_concurrent_auth.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/e2e/test_crud_auth_e2e.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/events/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/events/test_event_dispatcher.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/events/test_model_events.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/events/test_redis_bus.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/events/test_redis_bus_reliability.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_cli_storage_link.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_disk.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_filesystem_concurrency.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_filesystem_config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_http_integration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_local_driver.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_multipart.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_paths.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_phase6_filesystem_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_s3_driver.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_signed_urls.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_storage_facade.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_uploaded_file.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/filesystem/test_validation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_error_pipeline.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_http_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_include_router.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_request.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_response.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_route_groups.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/http/test_router.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/integration/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/integration/test_queue_event_websocket.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_api_transports.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_attachments.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_cli_make_mail.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_console_transport.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_envelope.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_facade_and_fake.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_mailable.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_manager_and_config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_message.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_phase6_mail_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_queue_integration.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_service_provider_and_helpers.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_smtp_and_sendmail.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/mail/test_templates.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/migrations/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/migrations/test_migrations.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/test_defaults_dirty.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/test_eager_loading.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/test_hidden.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/test_mass_assignment.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/test_model_events_transaction.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/orm/test_relationships_hardening.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_after_commit.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_phase5_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_poison_messages.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_queue.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_reliability.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_signing.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/queue/test_worker_behavior.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/security/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/security/test_security_audit.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/stress/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/stress/test_context_isolation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/support/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/support/test_redis_config.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/support/test_strings.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/testing/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/testing/test_fixtures.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/testing/test_phase9_testing_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/testing/test_test_client.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/typing/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/typing/test_orm_typing.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_db_rules.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_form_request_fail_closed.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_form_request_pipeline.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_phase6_validation_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_rules_hardening.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_validation_concurrency.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/validation/test_validator_rules.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/__init__.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_broadcast.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_handshake.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_lifecycle.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_concurrency.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_connection.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_manager.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_remediation.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/tests/websockets/test_websocket_routing_and_lifecycle.py +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/views/admin/dashboard.html +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/views/admin/login.html +0 -0
- {swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/views/mail/template.html +0 -0
|
@@ -4,6 +4,15 @@ 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
|
+
|
|
7
16
|
## [0.1.2] - 2026-11-16
|
|
8
17
|
|
|
9
18
|
### Added
|
|
@@ -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 = [
|
|
@@ -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:
|
|
@@ -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
|
|
@@ -1527,7 +1533,7 @@ version = "0.1.0"
|
|
|
1527
1533
|
description = "A SwiftPY web application"
|
|
1528
1534
|
requires-python = ">=3.12"
|
|
1529
1535
|
dependencies = [
|
|
1530
|
-
"swiftpy-framework>=0.1.
|
|
1536
|
+
"swiftpy-framework>=0.1.3",
|
|
1531
1537
|
"uvicorn[standard]>=0.52.4",
|
|
1532
1538
|
"asyncpg>=0.30.0",
|
|
1533
1539
|
"redis>=8.1.0",
|
|
@@ -407,6 +407,8 @@ def test_scaffolded_packaging_and_plain_mypy_config(
|
|
|
407
407
|
compose = (app_dir / "docker-compose.yml").read_text(encoding="utf-8")
|
|
408
408
|
assert compose.startswith("name: pkg_app\n")
|
|
409
409
|
assert "image: pgvector/pgvector:pg16" in compose
|
|
410
|
+
assert "DB_HOST: postgres" in compose
|
|
411
|
+
assert "REDIS_HOST: redis" in compose
|
|
410
412
|
assert "POSTGRES_DB: ${DB_DATABASE}" in compose
|
|
411
413
|
assert "POSTGRES_USER: ${DB_USERNAME}" in compose
|
|
412
414
|
assert "POSTGRES_PASSWORD: ${DB_PASSWORD}" in compose
|
|
@@ -474,6 +476,14 @@ async def test_scaffolded_main_wires_exception_handlers(
|
|
|
474
476
|
monkeypatch.setattr(pool, "close", AsyncMock())
|
|
475
477
|
|
|
476
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
|
+
|
|
477
487
|
resp = await client.get("/conflict-test")
|
|
478
488
|
assert resp.status_code == 409
|
|
479
489
|
assert resp.json() == {"error": "conflict", "detail": "duplicate entry"}
|
{swiftpy_framework-0.1.2 → swiftpy_framework-0.1.3}/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>=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
33
|
assert compose.startswith("name: sample_app\n")
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
# SwiftPY Installation and Quick Start
|
|
2
|
-
|
|
3
|
-
This guide covers installing SwiftPY, running a minimal ASGI application, and creating and starting a full scaffolded project with the `swiftpy` CLI.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Requirements
|
|
8
|
-
|
|
9
|
-
- **Python `>= 3.12`** (per [`pyproject.toml`](../pyproject.toml))
|
|
10
|
-
- **`uv`** (recommended) or **`pip`** (`python -m venv` + `pip`)
|
|
11
|
-
- **PostgreSQL 16** and **Redis 7** when running a full `swiftpy new` project scaffold (the scaffolded `docker-compose.yml` uses `pgvector/pgvector:pg16` and `redis:7-alpine`)
|
|
12
|
-
- Optional packages depending on features you enable:
|
|
13
|
-
- `jinja2` for rendering HTML mail templates (`MailTemplateRenderer`) and admin views (`views/`)
|
|
14
|
-
- `aiosmtplib` for sending email over the `smtp` transport
|
|
15
|
-
|
|
16
|
-
A minimal single-file SwiftPY application without `config/database.py` does **not** initialize `DatabasePool` and runs without PostgreSQL or Redis.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Install SwiftPY
|
|
21
|
-
|
|
22
|
-
> **Distribution vs. import name:** On PyPI, the package distribution is named **`swiftpy-framework`**. In Python code, you import **`swiftpy`**, and the CLI executable is **`swiftpy`**.
|
|
23
|
-
|
|
24
|
-
Create and activate a virtual environment:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
python -m venv .venv
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
On macOS or Linux:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
source .venv/bin/activate
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
On Windows PowerShell:
|
|
37
|
-
|
|
38
|
-
```powershell
|
|
39
|
-
.venv\Scripts\Activate.ps1
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Install `swiftpy-framework` with `pip`:
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
python -m pip install --upgrade pip
|
|
46
|
-
python -m pip install swiftpy-framework
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Or add it in a `uv`-managed project:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
uv add swiftpy-framework
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Verify the CLI is available:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
swiftpy --version
|
|
59
|
-
swiftpy --help
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Run a Minimal Application
|
|
65
|
-
|
|
66
|
-
In an empty directory (no `config/` directory), create `main.py`:
|
|
67
|
-
|
|
68
|
-
```python
|
|
69
|
-
from __future__ import annotations
|
|
70
|
-
|
|
71
|
-
from swiftpy import Application, Request, Response, json_response
|
|
72
|
-
|
|
73
|
-
app = Application()
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
@app.get("/")
|
|
77
|
-
async def home(request: Request) -> Response:
|
|
78
|
-
return json_response({"message": "Hello from SwiftPY"})
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@app.get("/health")
|
|
82
|
-
async def health(request: Request) -> dict[str, str]:
|
|
83
|
-
return {"status": "ok"}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Plain `dict` and `list` return values (such as `/health`) are automatically serialized to JSON responses alongside explicit `json_response(...)` returns.
|
|
87
|
-
|
|
88
|
-
Start the development server with auto-reload:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
swiftpy start --reload
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
By default, `swiftpy start` binds to `127.0.0.1:8000` and loads `main:app`. Visit <http://127.0.0.1:8000/> or <http://127.0.0.1:8000/health>.
|
|
95
|
-
|
|
96
|
-
You can also run the ASGI target directly with Uvicorn:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
uvicorn main:app --reload
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## Create a Full Project Scaffold
|
|
105
|
-
|
|
106
|
-
For full-stack APIs and background workers, scaffold a complete project layout with `swiftpy new`:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
swiftpy new my_api
|
|
110
|
-
cd my_api
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
Pass `--force` to overwrite an existing non-empty directory cleanly (existing `.env` files are preserved when `--force` is used).
|
|
114
|
-
|
|
115
|
-
### Generated Project Structure
|
|
116
|
-
|
|
117
|
-
```text
|
|
118
|
-
my_api/
|
|
119
|
-
├── app/
|
|
120
|
-
│ ├── events/ # Domain events
|
|
121
|
-
│ ├── http/
|
|
122
|
-
│ │ ├── handler/ # Exception handlers (exceptions.py -> register_exception_handlers)
|
|
123
|
-
│ │ ├── middleware/ # Auth & Admin middleware templates
|
|
124
|
-
│ │ └── requests/ # Typed FormRequest classes
|
|
125
|
-
│ ├── jobs/ # Background Queue jobs
|
|
126
|
-
│ ├── listeners/ # Event listeners
|
|
127
|
-
│ ├── mail/ # Mailables (WelcomeEmail)
|
|
128
|
-
│ ├── models/ # Active Record ORM models (User)
|
|
129
|
-
│ ├── providers/ # Auto-discovered service providers
|
|
130
|
-
│ ├── repositories/ # Data access layer
|
|
131
|
-
│ ├── schemas/ # Typed dataclasses/schemas
|
|
132
|
-
│ └── services/ # Business logic services
|
|
133
|
-
├── config/ # Configuration files loading .env via env() / env_bool()
|
|
134
|
-
├── database/
|
|
135
|
-
│ ├── migrations/ # Timestamped schema migrations (initial users table included)
|
|
136
|
-
│ └── seeders/ # DatabaseSeeders
|
|
137
|
-
├── public/ # Public web assets (storage symlink target)
|
|
138
|
-
├── routes/
|
|
139
|
-
│ └── api.py # Starter /api/health and /api/users routes
|
|
140
|
-
├── storage/ # Private, public, framework cache, and log directories
|
|
141
|
-
├── views/ # Jinja2 HTML templates (admin/, mail/)
|
|
142
|
-
├── tests/ # pytest conftest.py & starter API test
|
|
143
|
-
├── .env # Pre-initialized with generated APP_KEY & JWT_SECRET
|
|
144
|
-
├── .env.example
|
|
145
|
-
├── docker-compose.yml # app, postgres (pgvector/pgvector:pg16), and redis services
|
|
146
|
-
├── Dockerfile
|
|
147
|
-
├── main.py # Entrypoint: Application(), register_exception_handlers(app), /api router
|
|
148
|
-
└── pyproject.toml # Configured with swiftpy-framework, setuptools build-system, & mypy strict settings
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Install Dependencies in the Scaffolded Project
|
|
152
|
-
|
|
153
|
-
With `uv` (recommended):
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
uv sync
|
|
157
|
-
source .venv/bin/activate
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
Or with standard `venv` + `pip`:
|
|
161
|
-
|
|
162
|
-
```bash
|
|
163
|
-
python -m venv .venv
|
|
164
|
-
source .venv/bin/activate
|
|
165
|
-
python -m pip install -e .
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
The generated `pyproject.toml` already declares `"swiftpy-framework>=0.1.2"` along with `[build-system]` (`setuptools`), `[tool.setuptools.packages.find]`, and `[tool.mypy]`.
|
|
169
|
-
|
|
170
|
-
### Configure Environment & Backing Services
|
|
171
|
-
|
|
172
|
-
`swiftpy new` initializes `.env` with freshly generated `APP_KEY` and `JWT_SECRET` values, sets `DB_DATABASE` in `.env` and `.env.example` to your project name, and sets `name: <project_name>` in `docker-compose.yml` (referencing `${DB_DATABASE}`, `${DB_USERNAME}`, and `${DB_PASSWORD}` directly from `.env`). Review `.env` and adjust PostgreSQL (`DB_*`) and Redis (`REDIS_*`) settings as needed.
|
|
173
|
-
|
|
174
|
-
> **Important:** All generated `config/*.py` files use `swiftpy.helpers.helper.env()` and `env_bool()`. When `Application` boots, `Config.load()` reads `.env` into SwiftPY's active env context without mutating `os.environ`.
|
|
175
|
-
|
|
176
|
-
If you want Docker Compose to run PostgreSQL and Redis for local development while running the app from your Python virtualenv:
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
docker compose up -d postgres redis
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Migrate, Link Storage, and Run
|
|
183
|
-
|
|
184
|
-
Run database migrations, link `public/storage`, and start the server:
|
|
185
|
-
|
|
186
|
-
```bash
|
|
187
|
-
swiftpy migrate
|
|
188
|
-
swiftpy storage:link
|
|
189
|
-
swiftpy start --reload
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
Verify the starter endpoints:
|
|
193
|
-
|
|
194
|
-
- `GET http://127.0.0.1:8000/api/health` -> `{"status": "ok", "app": "SwiftPY"}`
|
|
195
|
-
- `GET http://127.0.0.1:8000/api/users` -> starter JSON list from `routes/api.py`
|
|
196
|
-
|
|
197
|
-
### Run the Docker Stack Instead
|
|
198
|
-
|
|
199
|
-
To run all three containers (`app`, `postgres`, and `redis`) via Docker Compose:
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
docker compose up -d
|
|
203
|
-
docker compose exec app swiftpy migrate
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
Ports in the scaffolded `docker-compose.yml` bind to `127.0.0.1` (`8000`, `5432`, `6379`).
|
|
207
|
-
|
|
208
|
-
---
|
|
209
|
-
|
|
210
|
-
## Choosing a Server Mode (`swiftpy start`)
|
|
211
|
-
|
|
212
|
-
`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`).
|
|
213
|
-
|
|
214
|
-
Common invocations:
|
|
215
|
-
|
|
216
|
-
```bash
|
|
217
|
-
# Development (single worker + file watching; --reload defaults to False)
|
|
218
|
-
swiftpy start --reload
|
|
219
|
-
|
|
220
|
-
# Explicit ASGI target, host, port, and .env file
|
|
221
|
-
swiftpy start main:app --host 127.0.0.1 --port 8080 --env-file .env
|
|
222
|
-
|
|
223
|
-
# Multi-worker production mode (must NOT pass --reload)
|
|
224
|
-
swiftpy start main:app --host 0.0.0.0 --port 8000 --workers 4 --no-access-log --log-level warning
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
Supported `swiftpy start` options:
|
|
228
|
-
|
|
229
|
-
| Option / Argument | Default | Notes |
|
|
230
|
-
|---|---|---|
|
|
231
|
-
| `target` (positional) | `main:app` | ASGI module:attribute path (`server.target` / `app.target`) |
|
|
232
|
-
| `--host` | `127.0.0.1` | Socket bind host (`server.host` / `app.host`) |
|
|
233
|
-
| `--port` | `8000` | Socket bind port (`0`–`65535`; `server.port` / `app.port`) |
|
|
234
|
-
| `--workers` | `1` | Worker process count (`>= 1`; `server.workers`) |
|
|
235
|
-
| `--reload` | `False` | Enable hot reload (cannot be combined with `--workers > 1`) |
|
|
236
|
-
| `--env-file` | `None` | Environment file path passed to Uvicorn (`server.env_file`) |
|
|
237
|
-
| `--access-log` / `--no-access-log` | `None` | Override Uvicorn HTTP access logging (`server.access_log`) |
|
|
238
|
-
| `--log-level` | `None` | `critical`, `error`, `warning`, `info`, `debug`, or `trace` (`server.log_level`) |
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## Next Step
|
|
243
|
-
|
|
244
|
-
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`).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|