---
title: "💭 awesome-cursorrules/rules/py-fast-api/.cursorrules at main · P..."
description: "!https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/py-fast-api/.cursorrules"
date: 2025-01-09
published: true
tags:
  - llm
  - ai
  - agentic
  - thought
template: link
---


![https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/py-fast-api/.cursorrules](/static/https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/py-fast-api/.cursorrules)

Looks like a great start to a rules file for fastapi.

> - Place the happy path last in the function for improved readability.

I have never heard anyone say this.  It feels weird to me.  The other early return, find and handle errors early all make sense to me, but happy path last is new to me.



!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
