Zum Inhalt springen
Kitbay
SkillOffiziellWork in Progress

azure-cosmos-db-py

MITAktualisiert am 10. Nov. 20263.193GitHub-Sterne

A Microsoft skill for building a Cosmos DB NoSQL data layer in Python web services, with FastAPI in the examples.

Was der Skill vermittelt

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.

Funktionen

  • 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