Azure DocumentDB Python SDK

System Requirements:

The supported Python versions are 2.7, 3.3, 3.4 and 3.5. To download Python, please visit

Python Tools for Visual Studio is required when using Microsoft Visual Studio to develop Python applications. To download Python Tools for Visual Studio, please visit


Method 1:

  1. Download the Azure DocumentDB Python SDK source from which is needed to manage the Azure DocumentDB database service.

  2. Execute the following setup script in bash shell:

    $ python install

Method 2:

  1. Install the Azure DocumentDB Python SDK using pip. For more information on pip, please visit

  2. Execute the following in bash shell:

    $ pip install pydocumentdb

To run tests:

$ python -m unittest discover -s .\test -p "*.py"

If you use Microsoft Visual Studio, open the project file python.pyproj, and run all the tests in Test Explorer.

To generate documentations:

Install Sphinx:

$ cd doc
$ sphinx-apidoc -f -e -o api ..\pydocumentdb
$ make.bat html

Indices and tables