Skip to content

Azure Cosmos DB's DocumentDB API provides a JSON document database data model and the power of SQL and JavaScript over schema-less data. This tutorial shows how to get started with the DocumentDB API and the Python SDK.

License

Notifications You must be signed in to change notification settings

alex-waters/azure-cosmos-db-documentdb-python-getting-started

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

services platforms author
cosmos-db
python
arramac

Developing a Python app using Azure Cosmos DB

Azure Cosmos DB is a globally distributed multi-model database. One of the supported APIs is the SQL API, which provides a JSON document model with SQL querying and JavaScript procedural logic. This sample shows you how to use the Azure Cosmos DB with the SQL API to store and access data from a Python application.

Running this sample

  • Before you can run this sample, you must have the following prerequisites:

  • Then, clone this repository using git clone git@github.com:Azure-Samples/azure-cosmos-db-documentdb-python-getting-started.git

  • Next, substitute the endpoint and authorization key in DocumentDBGetStarted.py with your Cosmos DB account's values.

  • Press F5 to run the application.

About the code

The code included in this sample is intended to get you quickly started with a Python application that connects to Azure Cosmos DB with the SQL API.

More information

About

Azure Cosmos DB's DocumentDB API provides a JSON document database data model and the power of SQL and JavaScript over schema-less data. This tutorial shows how to get started with the DocumentDB API and the Python SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%