你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Azure Cosmos DB libraries for Python

Overview

Use Azure Cosmos DB in your Python applications to store and query JSON documents in a NoSQL data store.

Learn more about Azure Cosmos DB.

Client library - For Applications Development and Data Exploration

pip install azure-cosmos

Management library - For Account Level Management Operations

pip install azure-mgmt-cosmosdb

Key Examples

  • Common Tasks:

    • Create Database
    • Create Container
    • CRUD operations on Items in Container
    • Query a Container for Items
    • Create a Database user
  • Database Management:

    • Basic CRUD operations on a Database resource
    • Query for Database
    • List all Database resources on an account
  • Container Management:

    • Basic CRUD operations on a Container resource
    • Query for Container
    • Manage Container Provisioned Throughput
    • List all Container resources in a Database

Develop Python Applications