Skip to content
Kitbay
SkillOfficialWork in Progress

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