Claude Rules for Python
CLAUDE.md rules for Python development. Covers type hints, docstring conventions, framework-specific patterns for FastAPI and Django, and Python tooling (ruff, mypy, pytest).
2 rules matching Python
Python FastAPI Expert
by Claude Rules
Building high-performance REST APIs with FastAPI, Pydantic, and async Python.
Django Web Framework
by Claude Rules
Full-stack Django development with DRF, proper models, and security best practices.
Why add Python rules to your CLAUDE.md?
Python projects have their own set of conventions around type hints, docstrings, virtual environments, and which testing framework to use. CLAUDE.md rules for Python typically specify whether the project uses type annotations, which formatter (black, ruff), how to write docstrings, and framework-specific patterns — so Claude doesn't mix up Django ORM syntax with SQLAlchemy or forget to add type hints when the project requires them.