Python Cursor rules

753 tagged Python, measured the same way as everything else here.

Browse within: cursor 112cursorrules 62fastapi 34LLM 32fastmcp 27cli 26cursor-rules 26cursor-ai 24ai-coding 23data-pipeline 22market-intelligence 22price-tracking 22awesome 21awesome-list 21

MemPalace/mempalace

Cursor rule Cursor

Always-on MemPalace recall — search the palace before answering about past work, people, projects, or prior decisions.

not rated 60k +112 today A 260 tokens original MIT

typescript

02

streamlit/streamlit

Cursor rule Cursor

Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.

not rated 46k +83 changed 18d ago A 4,681 tokens original Apache-2.0

django-python

03

PostHog/posthog

Cursor rule Cursor

Rules for writing Python services at PostHog (Python servers powered by the Django framework).

not rated 40k +109 today A 1,586 tokens

rules

04

pydantic/pydantic-ai

Cursor rule Cursor

Always reference the python code in the docs e.g. ModelSettings should link to [ModelSettings][pydanticai.settings.ModelSettings].

not rated 21k +140 today A 43 tokens original MIT

windmill-overview

05

windmill-labs/windmill

Cursor rule Cursor

Windmill is an open-source developer platform for building internal tools, API integrations, background jobs, workflows, and user interfaces. It offers a unified system where scripts are automatically turned into sharable UIs and can be composed into flows or embedded in custom applications.

not rated 18k +56 today A 0 tokens

ponytail

06

MODSetter/SurfSense

Cursor rule Cursor

Ponytail, lazy senior dev mode. Always pick the simplest solution that works.

not rated 17k +139 today A 578 tokens copy · 91% Apache-2.0

snippet_tests

07

dagster-io/dagster

Cursor rule Cursor

When updating tests in this directory, always run them to validate that they succeed. To do so, run.

not rated 16k +19 today A 0 tokens original Apache-2.0

darknessomi/musicbox

Cursor rule Cursor

A pre-commit rule requiring local code checks before creating a Git commit. CI, or continuous integration, is the automated checking system that runs for the project.

not rated 9.9k +4 8d ago A 185 tokens original MIT

python

10

GetStream/Vision-Agents

Cursor rule Cursor

when writing python.

not rated 8.2k +13 today B 152 tokens original Apache-2.0

RULE

11

NVIDIA-NeMo/Guardrails

Cursor rule Cursor

Referring to product names.

not rated 7.3k +43 2d ago A 50 tokens

general

12

Screenly/Anthias

Cursor rule Cursor

Cursor rule "general" from Screenly/Anthias, covering general, project structure, code generation and docker.

not rated 3.7k +4 yesterday A 523 tokens

chdb

13

chdb-io/chdb

Cursor rule Cursor

See CONTRIBUTING.md for the full contributor guide, including the crash-diagnosis rule (always capture the stack trace before changing code on SIGSEGV / SIGABRT / SIGFPE / SIGILL / SIGBUS / SIGSYS).

not rated 2.9k +3 5d ago A 78 tokens original Apache-2.0

pytorch

14

Bhartendu-Kumar/rules_template

Cursor rule Cursor

Cursor rule "pytorch" from Bhartendu-Kumar/rules_template, covering pytorch best practices and coding standards, 1. code organization and structure, 1.1 directory structure best practices, 1.2 file naming conventions and 1.3 module organization.

not rated 1.1k 1y ago A 0 tokens

agent-development

15

divar-ir/ai-doc-gen

Cursor rule Cursor

Guidelines for developing pydantic-ai agents, tools, and handlers.

not rated 768 +1 2mo ago A 0 tokens original MIT

django-python

16

PostHog/posthog-foss

Cursor rule Cursor

description: Rules for writing Python services at PostHog (Python servers powered by the Django framework) globs: .py alwaysApply: false.

not rated 724 +3 today A 1,586 tokens original MIT

fenic

17

typedef-ai/fenic

Cursor rule Cursor

Cursor rule "fenic" from typedef-ai/fenic, covering writing fenic, must-knows and traps fenic check can't catch — get these right by hand.

not rated 673 2d ago A 615 tokens original Apache-2.0

uv

18

Lazza/RecuperaBit

Cursor rule Cursor

Install Python packages, access Python CLI, run python code and scripts, execute Python commands, and manage Python environments. Use uv run for all Python execution instead of direct python commands.

not rated 625 +1 2mo ago A 186 tokens GPL-3.0

cursorrules

19

CopilotKit/open-multi-agent-canvas

Cursor rule Cursor

Cursor rule "cursorrules" from CopilotKit/open-multi-agent-canvas, covering instructions, additional command options and notes.

not rated 550 +6 2d ago A 594 tokens

redisvl

20

redis/redis-vl-python

Cursor rule Cursor ✓ vendor

token.strip().strip(",").replace("“", "").replace("”", "").lower().

not rated 432 +1 2d ago A 59 tokens original MIT

mvilanova/intervals-mcp-server

Cursor rule Cursor

Cursor rule "python-best-practices" from mvilanova/intervals-mcp-server, covering python best practices for intervals mcp server, code style and readability, type annotations and documentation, error handling and validation and async programming patterns.

not rated 377 +5 2mo ago A 942 tokens GPL-3.0

style

22

Ayanami1314/swe-pruner

Cursor rule Cursor

Cursor rule "style" from Ayanami1314/swe-pruner, covering style guide, bad, good, test style and bad.

not rated 319 +1 3mo ago A 409 tokens original MIT

backend-api

23

OpenDCAI/DataFlow-WebUI

Cursor rule Cursor

DataFlow WebUI backend development. Activate when editing FastAPI backend code — endpoints, services, schemas, or config.

not rated 251 +1 1mo ago A 0 tokens original Apache-2.0

python

24

emarco177/mcp-crash-course

Cursor rule Cursor

You are an expert in Python, FastAPI, and scalable API development.

not rated 181 6mo ago A 762 tokens copy · 94% Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: