This skill streamlines the development of Azure Cosmos DB integrations in Python, specifically targeting FastAPI and Pydantic-based backends. It provides structured guidance on implementing a robust service layer, managing singleton client connections with dual-authentication (RBAC and local emulator), and enforcing security through parameterized queries and partition key validation. It is ideal for developers needing to build scalable, maintainable, and highly testable database services while adhering to enterprise-grade security standards and Azure best practices.
主な機能
01Clean architecture patterns with five-tier Pydantic model separation
02Dual-authentication support for Azure Managed Identity and local emulator keys
03Enforced security via parameterized queries and partition key isolation
04Pre-configured TDD patterns with pytest fixtures for mocking Cosmos containers
051 GitHub stars
06Performance-optimized service layers with async threadpool wrapping
ユースケース
01Designing a scalable NoSQL backend for a FastAPI microservice
02Implementing secure database access using Azure Managed Identities (RBAC)
03Setting up a local development environment with the Cosmos DB Emulator