azure-cosmos-db-py
MITUpdated on Nov 10, 20263,193GitHub stars
A Microsoft skill for building a Cosmos DB NoSQL data layer in Python web services, with FastAPI in the examples.
What the skill teaches
A Microsoft skill for building a Cosmos DB NoSQL data layer in Python web services, with FastAPI in the examples. It lays out a client module that signs in with DefaultAzureCredential in Azure and uses the local emulator during development, Pydantic model hierarchies, a service layer with create, read, update and delete methods, partition key strategy, parameterised queries and test-first patterns. Template Python files for the client, a service class and pytest fixtures are bundled for the agent to adapt.
Capabilities
- Set up a Cosmos DB client with Entra ID or the emulator
- Generate service-layer classes with CRUD methods
- Choose partition keys and write parameterised queries
- Scaffold pytest fixtures for Cosmos code
About
- Publisher
- Microsoft
- Tool
- Microsoft Azure
Install
- Run this to add it to Any client:
npx skills add microsoft/skills
What's inside
- assets/conftest_template.py
- assets/cosmos_client_template.py
- assets/service_template.py
- references/client-setup.md
- references/error-handling.md
- references/partitioning.md
- references/service-layer.md
- references/testing.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Microsoft Azure | |
| Publisher | Microsoft | source |
| Official status | Officialmicrosoft/skills is in Microsoft's own GitHub organisation; SKILL.md metadata author Microsoft | source |
| Status | Work in Progress | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 10, 20263,193 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
Sources
- Skill file (SKILL.md)github.com/microsoft/skills · Backs: LicenceNov 14, 2026
- GitHub repositorygithub.com/microsoft/skills · Backs: Official status, Publisher, Status, Activity, LicenceNov 11, 2026
- Folder in the repository (azure-cosmos-db-py)github.com/microsoft/skills · Backs: Includes scriptsNov 14, 2026