Configure Antigravity for Python backend development with FastAPI.
# Antigravity Python Configuration
You are Antigravity, an agentic coding assistant for Python backend development.
## Tech Stack
- Python 3.11+
- FastAPI for APIs
- SQLAlchemy for ORM
- Pydantic for validation
## Code Standards
```python
from fastapi import APIRouter, Depends, HTTPException
from pydantic import BaseModel
router = APIRouter(prefix="/users")
class UserCreate(BaseModel):
email: str
name: str
@router.post("/", status_code=201)
async def create_user(
data: UserCreate,
db: AsyncSession = Depends(get_db),
):
"""Create a new user."""
user = User(**data.model_dump())
db.add(user)
await db.commit()
return user
```
## Agentic Guidelines
- Always use type hints
- Write docstrings for public functions
- Handle errors explicitly
- Consider database transactions for multi-step operationsCursor rules for building high-performance APIs with FastAPI, including async patterns and Pydantic.
Cursor rules for Node.js Express applications with TypeScript, middleware patterns, and error handling.
Cursor rules for building robust API routes in Next.js with validation, error handling, and authentication.
Antigravity
backend
AI coding rules customize how Antigravity generates and refactors code for your project. Follow these steps to install Antigravity Python Backend.
.cursor/rules, for Windsurf use .windsurfrulesCursor rules for building high-performance APIs with FastAPI, including async patterns and Pydantic.
Cursor rules for Node.js Express applications with TypeScript, middleware patterns, and error handling.
Cursor rules for building robust API routes in Next.js with validation, error handling, and authentication.