Azure Cosmos DB Python Integration
Builds production-grade Azure Cosmos DB NoSQL services using Python following clean code and TDD principles.
This skill provides a comprehensive framework for implementing Azure Cosmos DB within Python applications, specifically optimized for high-performance environments like FastAPI. It guides developers through setting up a robust architecture including singleton client connections with dual authentication—supporting both Azure RBAC for production and local keys for development. It enforces clean code standards through a five-tier Pydantic model hierarchy, ensures security with parameterized queries, and facilitates high testability with built-in mocking patterns for Pytest. Ideal for developers needing to implement scalable, secure, and maintainable NoSQL service layers.