# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
media/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual Environment
venv/
ENV/*
env/*
.venv/

# IDE
.idea/
.vscode/
*.swp
*.swo
*~

# Environment files - 保护敏感信息
env/*
!env/example.env

# Database
*.db
*.sqlite3

# Logs
*.log
logs/

# Media files
media/
!media/.gitkeep

# Chunk uploads temp
media/chunk_uploads/

# Cache
.cache/
*.pyc

# Test
.pytest_cache/
.coverage
htmlcov/

# Alembic
alembic/versions/*.pyc

# OS
.DS_Store
Thumbs.db
