Azure Cosmos DB Python Service
Builds production-grade Azure Cosmos DB NoSQL services using Python and FastAPI with best-practice security and architecture.
This skill provides comprehensive guidance for implementing Azure Cosmos DB NoSQL services in Python, focusing on the FastAPI framework. It streamlines the creation of service layers, singleton database clients, and robust Pydantic models while enforcing security standards like RBAC via Managed Identity and parameterized queries to prevent injection. It is particularly useful for developers architecting scalable cloud-native applications that require a clean separation of concerns, easy testing through mocking, and seamless transitions between local emulator development and Azure production environments.
主要功能
016 GitHub stars
02Dual authentication support for Azure RBAC and local Emulator
03Production-ready service layer architecture and patterns
04Comprehensive TDD patterns and ready-to-use pytest fixtures
05Five-tier Pydantic model hierarchy for clean data separation
06Async-wrapped database operations for optimal FastAPI performance
使用场景
01Building a scalable backend for a web application using FastAPI and Cosmos DB
02Implementing complex NoSQL document patterns with proper partition key management
03Migrating from local development with the Cosmos Emulator to Azure production environments