Files
main/rules-v0-deprecated/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-blocking-operations.mdc
T
2025-03-03 23:40:27 +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.