|
1 | 1 | --- |
2 | 2 | title: API for NoSQL Python examples for Azure Cosmos DB |
3 | 3 | description: Find Python examples on GitHub for common tasks in Azure Cosmos DB, including CRUD operations. |
4 | | -author: Rodrigossz |
| 4 | +author: seesharprun |
| 5 | +ms.author: sidandrews |
| 6 | +ms.reviewer: rosouz |
5 | 7 | ms.service: cosmos-db |
6 | 8 | ms.subservice: nosql |
7 | 9 | ms.devlang: python |
8 | 10 | ms.topic: sample |
9 | | -ms.date: 08/26/2021 |
10 | | -ms.author: rosouz |
| 11 | +ms.date: 10/18/2021 |
11 | 12 | ms.custom: devx-track-python, ignite-2022 |
12 | 13 | --- |
| 14 | + |
13 | 15 | # Azure Cosmos DB Python examples |
| 16 | + |
14 | 17 | [!INCLUDE[NoSQL](../includes/appliesto-nosql.md)] |
15 | 18 |
|
16 | 19 | > [!div class="op_single_selector"] |
17 | | -> * [.NET SDK Examples](samples-dotnet.md) |
18 | | -> * [Java V4 SDK Examples](samples-java.md) |
19 | | -> * [Spring Data V3 SDK Examples](samples-java-spring-data.md) |
20 | | -> * [Node.js Examples](samples-nodejs.md) |
21 | | -> * [Python Examples](samples-python.md) |
22 | | -> * [Azure Code Sample Gallery](https://azure.microsoft.com/resources/samples/?sort=0&service=cosmos-db) |
| 20 | +> |
| 21 | +> - [.NET SDK Examples](samples-dotnet.md) |
| 22 | +> - [Java V4 SDK Examples](samples-java.md) |
| 23 | +> - [Spring Data V3 SDK Examples](samples-java-spring-data.md) |
| 24 | +> - [Node.js Examples](samples-nodejs.md) |
| 25 | +> - [Python Examples](samples-python.md) |
| 26 | +> - [Azure Code Sample Gallery](https://azure.microsoft.com/resources/samples/?sort=0&service=cosmos-db) |
| 27 | +> |
23 | 28 |
|
24 | | -Sample solutions that do CRUD operations and other common operations on Azure Cosmos DB resources are included in the [azure-documentdb-python](https://github.com/Azure/azure-documentdb-python) GitHub repository. This article provides: |
| 29 | +Sample solutions that do CRUD operations and other common operations on Azure Cosmos DB resources are included in the `main/sdk/cosmos` folder of the [azure/azure-sdk-for-python](https://github.com/azure/azure-sdk-for-python/tree/main/sdk/cosmos) GitHub repository. This article provides: |
25 | 30 |
|
26 | | -* Links to the tasks in each of the Python example project files. |
27 | | -* Links to the related API reference content. |
| 31 | +- Links to the tasks in each of the Python example project files. |
| 32 | +- Links to the related API reference content. |
28 | 33 |
|
29 | 34 | ## Prerequisites |
30 | 35 |
|
31 | | -- An Azure Cosmos DB Account. You options are: |
32 | | - * Within an Azure active subscription: |
33 | | - * [Create an Azure free Account](https://azure.microsoft.com/free) or use your existing subscription |
34 | | - * [Visual Studio Monthly Credits](https://azure.microsoft.com/pricing/member-offers/credit-for-visual-studio-subscribers) |
35 | | - * [Azure Cosmos DB Free Tier](../free-tier.md) |
36 | | - * Without an Azure active subscription: |
37 | | - * [Try Azure Cosmos DB for free](../try-free.md), a tests environment that lasts for 30 days. |
38 | | - * [Azure Cosmos DB Emulator](https://aka.ms/cosmosdb-emulator) |
| 36 | +- An Azure Cosmos DB Account. Your options are: |
| 37 | + - Within an Azure active subscription: |
| 38 | + - [Create an Azure free Account](https://azure.microsoft.com/free) or use your existing subscription |
| 39 | + - [Visual Studio Monthly Credits](https://azure.microsoft.com/pricing/member-offers/credit-for-visual-studio-subscribers) |
| 40 | + - [Azure Cosmos DB Free Tier](../free-tier.md) |
| 41 | + - Without an Azure active subscription: |
| 42 | + - [Try Azure Cosmos DB for free](../try-free.md), a tests environment that lasts for 30 days. |
| 43 | + - [Azure Cosmos DB Emulator](https://aka.ms/cosmosdb-emulator) |
39 | 44 | - [Python 2.7 or 3.6+](https://www.python.org/downloads/), with the `python` executable in your `PATH`. |
40 | 45 | - [Visual Studio Code](https://code.visualstudio.com/). |
41 | 46 | - The [Python extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-python.python#overview). |
42 | | -- [Git](https://www.git-scm.com/downloads). |
| 47 | +- [Git](https://www.git-scm.com/downloads). |
43 | 48 | - [Azure Cosmos DB for NoSQL SDK for Python](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos) |
44 | 49 |
|
45 | 50 | ## Database examples |
@@ -98,5 +103,6 @@ The [index_management.py](https://github.com/Azure/azure-sdk-for-python/blob/mas |
98 | 103 | ## Next steps |
99 | 104 |
|
100 | 105 | Trying to do capacity planning for a migration to Azure Cosmos DB? You can use information about your existing database cluster for capacity planning. |
101 | | -* If all you know is the number of vcores and servers in your existing database cluster, read about [estimating request units using vCores or vCPUs](../convert-vcore-to-request-unit.md) |
102 | | -* If you know typical request rates for your current database workload, read about [estimating request units using Azure Cosmos DB capacity planner](estimate-ru-with-capacity-planner.md) |
| 106 | + |
| 107 | +- If all you know is the number of vCores and servers in your existing database cluster, read about [estimating request units using vCores or vCPUs](../convert-vcore-to-request-unit.md) |
| 108 | +- If you know typical request rates for your current database workload, read about [estimating request units using Azure Cosmos DB capacity planner](estimate-ru-with-capacity-planner.md) |
0 commit comments