Setup & Installation
What This Skill Does
Guides Python and FastAPI code toward production-ready Azure Cosmos DB NoSQL integrations. Covers client setup with dual authentication (DefaultAzureCredential for Azure, key-based for the local emulator), service layer patterns with CRUD operations, partition key strategies, and parameterized queries. Includes TDD fixtures for mocking the Cosmos container in pytest. It encodes the non-obvious production details — RBAC auth, parameterized queries, partition key isolation, async wrapping, and graceful degradation — that are easy to get wrong when wiring Cosmos DB into FastAPI for the first time.
When to use it
- Working with azure cosmos db py functionality
- Implementing azure cosmos db py features
- Debugging azure cosmos db py related issues
