Skip to content
Kitbay
SkillOfficialWork in Progress

azure-cosmos-py

MITUpdated on Nov 10, 20263,193GitHub stars

A Microsoft skill for Python code that uses the azure-cosmos package against the Cosmos DB NoSQL API.

What the skill teaches

A Microsoft skill for Python code that uses the azure-cosmos package against the Cosmos DB NoSQL API. It explains the client, database and container hierarchy, setting up databases and containers, creating, reading, replacing, upserting and deleting items, single-partition and cross-partition queries with projections, reading all items, partition keys, throughput settings, the asynchronous client and error handling. It needs a Cosmos DB endpoint and Entra ID credentials or a key.

Capabilities

  • Create Cosmos DB databases and containers from Python
  • Create, read, upsert and delete items
  • Run single- and cross-partition queries
  • Set container throughput