Files
main/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-blocking-operations.mdc
T
2025-02-17 17:50:15 +05:30

8 lines
383 B
Plaintext

---
description: Limits blocking operations in routes, favoring asynchronous and non-blocking flows.
globs: **/routers/*.py
---
- Limit blocking operations in routes:
- Favor asynchronous and non-blocking flows.
- Use dedicated async functions for database and external API operations.
- Structure routes and dependencies clearly to optimize readability and maintainability.