This skill empowers developers to implement robust Azure Cosmos DB integrations within Python applications, specifically optimized for frameworks like FastAPI. It provides standardized patterns for singleton client initialization with dual authentication (RBAC for production and local keys for emulator), a five-tier Pydantic model hierarchy for clean data separation, and a dedicated service layer to decouple business logic from storage. By incorporating TDD practices and performance-oriented partitioning strategies, it ensures that your NoSQL data layer is scalable, testable, and highly secure.
主要功能
01Dual authentication support for Azure RBAC and local development emulator
02Standardized 5-tier Pydantic model hierarchy for data consistency
03Asynchronous service layer patterns with graceful degradation support
04Security-focused implementation using parameterized queries and RBAC
05Comprehensive TDD setup with specialized Pytest fixtures and mocking
0682 GitHub stars
使用场景
01Developing enterprise-grade FastAPI backends backed by Azure Cosmos DB
02Transitioning from local emulator development to production cloud environments
03Implementing complex NoSQL data models with strict validation and testing