Description
.. image:: https://cfl.dropboxstatic.com/static/images/sdk/python_banner.png :target: https://github.com/dropbox/dropbox-sdk-python .. image:: https://img.shields.io/pypi/pyversions/dropbox.svg :target: https://pypi.python.org/pypi/dropbox .. image:: https://img.shields.io/pypi/v/dropbox.svg :target: https://pypi.python.org/pypi/dropbox .. image:: https://codecov.io/gh/dropbox/dropbox-sdk-python/branch/main/graph/badge.svg :target: https://codecov.io/gh/dropbox/dropbox-sdk-python The offical Dropbox SDK for Python. Documentation can be found on `Read The Docs`_. Installation ============ Create an app via the `Developer Console`_. Install via `pip <https://pip.pypa.io/>`_: .. code-block:: console $ pip install dropbox Install from source: .. code-block:: console $ git clone git://github.com/dropbox/dropbox-sdk-python.git $ cd dropbox-sdk-python $ python setup.py install After installation, follow one of our `Examples`_ or read the documentation on `Read The Docs`_. You can also view our `OAuth Guide`_. Examples ======== We provide `Examples`_ to help get you started with a lot of the basic functionality in the SDK. - **OAuth** - `Commandline OAuth Basic <https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth.py>`_ - Shows a simple example of commandline oauth (no redirect). - `Commandline OAuth Scopes <https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py>`_ - Shows a simple example of commandline oauth using scopes. - `Commandline OAuth PKCE <https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py>`_ - Shows a simple example of commandline oauth using PKCE. - **Other Examples** - `Updown <https://github.com/dropbox/dropbox-sdk-python/blob/main/example/updown.py>`_ - Sample application that uploads the contents of your ``Downloads`` folder to Dropbox. - `Backup and Restore <https://github.com/dropbox/dropbox-sdk-python/tree/main/example/back-up-and-restore>`_ - Sample application that shows how you can backup a file and restore previous versions if the file was modified/corrupted in any way. Getting Help ============ If you find a bug, please see `CONTRIBUTING.md`_ for information on how to report it. If you need help that is not specific to this SDK, please reach out to `Dropbox Support`_. License ======= This SDK is distributed under the MIT license, please see `LICENSE`_ for more information. .. _logo: {logo_link} .. _repo: https://github.com/dropbox/dropbox-sdk-python .. _`Read The Docs`: http://dropbox-sdk-python.readthedocs.org .. _`Examples`: https://github.com/dropbox/dropbox-sdk-python/tree/main/example .. _LICENSE: https://github.com/dropbox/dropbox-sdk-python/blob/main/LICENSE .. _CONTRIBUTING.md: https://github.com/dropbox/dropbox-sdk-python/blob/main/CONTRIBUTING.md .. _Developer Console: https://dropbox.com/developers/apps .. _OAuth Guide: https://www.dropbox.com/lp/developers/reference/oauth-guide .. _`Dropbox Support`: https://www.dropbox.com/developers/contact
Release History
| Version | Changes | Urgency | Date |
|---|---|---|---|
| 12.0.2 | Imported from PyPI (12.0.2) | Low | 4/21/2026 |
| v12.0.2 | Release Notes: * Remove the pin for `urllib3` ([#507](https://github.com/dropbox/dropbox-sdk-python/pull/507)) | Low | 6/3/2024 |
| v12.0.1 | Release Notes: * Fix incorrect pin of `requests` ([#505](https://github.com/dropbox/dropbox-sdk-python/pull/505)) | Low | 6/3/2024 |
| v12.0.0 | Release Notes: * Fixes to Restore CI ([#492](https://github.com/dropbox/dropbox-sdk-python/pull/492), [#501](https://github.com/dropbox/dropbox-sdk-python/pull/501)) * Fixes to doc generation ([#500](https://github.com/dropbox/dropbox-sdk-python/pull/500), [#503](https://github.com/dropbox/dropbox-sdk-python/pull/503)) * Manual Spec Update ([#498](https://github.com/dropbox/dropbox-sdk-python/pull/498)) * Stop providing a hardcoded CA bundle ([#489](https://github.com/dropbox/dropbox-sdk | Low | 5/14/2024 |
| v11.36.2 | * Fix invalid specifier in stone requirement (https://github.com/dropbox/dropbox-sdk-python/pull/456) This is a second attempt, since v11.36.1 didn't quite work right. | Low | 6/12/2023 |
| v11.36.1 | * Fix invalid specifier in stone requirement (#456) | Low | 4/14/2023 |
| v11.36.0 | Release Notes: * Automated Spec Update ([#452](https://github.com/dropbox/dropbox-sdk-python/pull/452)) | Low | 11/9/2022 |
| v11.35.0 | Release Notes: * Automated Spec Update ([#448](https://github.com/dropbox/dropbox-sdk-python/pull/448)) | Low | 10/11/2022 |
| v11.34.0 | Release Notes: * Added _ca_certs property to _SSLAdapter to properly support pickling (broke in SDK v11.33) ([#440](https://github.com/dropbox/dropbox-sdk-python/pull/440)) | Low | 9/5/2022 |
| v11.33.0 | Release Notes: * Automated Spec Update ([#439](https://github.com/dropbox/dropbox-sdk-python/pull/439)) * Add ca_certs argument for oauth and dropbox client ([#385](https://github.com/dropbox/dropbox-sdk-python/pull/385)) | Low | 7/13/2022 |
| v11.32.0 | Release Notes: * Automated Spec Update ([#435](https://github.com/dropbox/dropbox-sdk-python/pull/435)) | Low | 6/15/2022 |
| v11.31.0 | Release Notes: * Automated Spec Update ([#430](https://github.com/dropbox/dropbox-sdk-python/pull/430)) | Low | 5/18/2022 |
| v11.30.0 | Release Notes: * Automated Spec Update ([#424](https://github.com/dropbox/dropbox-sdk-python/pull/424)) | Low | 4/25/2022 |
| v11.29.0 | Release Notes: * Automated Spec Update ([#421](https://github.com/dropbox/dropbox-sdk-python/pull/421)) * add GitHub URL for PyPi ([#417](https://github.com/dropbox/dropbox-sdk-python/pull/417)) | Low | 3/30/2022 |
| v11.28.0 | Release Notes: * Automated Spec Update ([#418](https://github.com/dropbox/dropbox-sdk-python/pull/418)) | Low | 3/3/2022 |
| v11.27.0 | Release Notes: * Automated Spec Update ([#412](https://github.com/dropbox/dropbox-sdk-python/pull/412)) * [Setup] Update deprecated description-file to use description_file ([#410](https://github.com/dropbox/dropbox-sdk-python/pull/410)) | Low | 2/2/2022 |
| v11.26.0 | * Add scopes to documentation (#408) * Ensure Dropbox error is thrown in refresh access token (#407) | Low | 1/25/2022 |
| v11.25.0 | Release Notes: * Automated Spec Update ([#398](https://github.com/dropbox/dropbox-sdk-python/pull/398)) * Automated Spec Update ([#396](https://github.com/dropbox/dropbox-sdk-python/pull/396)) | Low | 11/24/2021 |
| v11.24.0 | Release Notes: * Automated Spec Update ([#396](https://github.com/dropbox/dropbox-sdk-python/pull/396)) | Low | 11/17/2021 |
| v11.23.0 | Release Notes: * Automated Spec Update ([#394](https://github.com/dropbox/dropbox-sdk-python/pull/394)) | Low | 11/3/2021 |
| v11.22.0 | Release Notes: * Automated Spec Update ([#392](https://github.com/dropbox/dropbox-sdk-python/pull/392)) * Fix CI test environment ([#391](https://github.com/dropbox/dropbox-sdk-python/pull/391)) | Low | 10/21/2021 |
| v11.21.0 | Release Notes: * Automated Spec Update ([#388](https://github.com/dropbox/dropbox-sdk-python/pull/388)) | Low | 9/29/2021 |
| v11.20.0 | Release Notes: * Automated Spec Update ([#386](https://github.com/dropbox/dropbox-sdk-python/pull/386)) * Automated Spec Update ([#383](https://github.com/dropbox/dropbox-sdk-python/pull/383)) | Low | 9/22/2021 |
| v11.19.0 | Release Notes: * 11.19.0 release * Automated Spec Update ([#383](https://github.com/dropbox/dropbox-sdk-python/pull/383)) | Low | 9/8/2021 |
| v11.18.0 | Release Notes: * Automated Spec Update ([#382](https://github.com/dropbox/dropbox-sdk-python/pull/382)) | Low | 8/26/2021 |
| v11.17.0 | Release Notes: * Automated Spec Update ([#379](https://github.com/dropbox/dropbox-sdk-python/pull/379)) | Low | 8/18/2021 |
| v11.16.0 | Release Notes: * Automated Spec Update ([#378](https://github.com/dropbox/dropbox-sdk-python/pull/378)) * Add integration tests to the test suite ([#377](https://github.com/dropbox/dropbox-sdk-python/pull/377)) | Low | 8/11/2021 |
| v11.15.0 | Release Notes: * Automated Spec Update ([#376](https://github.com/dropbox/dropbox-sdk-python/pull/376)) | Low | 7/29/2021 |
| v11.14.0 | Release Notes: * Add Support for Multi-Auth ([#371](https://github.com/dropbox/dropbox-sdk-python/pull/371)) | Low | 7/21/2021 |
| v11.13.3 | Release Notes: * 11.13.3 release * Automated Spec Update ([#373](https://github.com/dropbox/dropbox-sdk-python/pull/373)) | Low | 7/14/2021 |
| v11.13.2 | Release Notes: * Automated Spec Update ([#372](https://github.com/dropbox/dropbox-sdk-python/pull/372)) | Low | 7/8/2021 |
| v11.13.1 | Release Notes: * Automated Spec Update ([#370](https://github.com/dropbox/dropbox-sdk-python/pull/370)) | Low | 7/2/2021 |
| v11.13.0 | Release Notes: * Automated Spec Update ([#368](https://github.com/dropbox/dropbox-sdk-python/pull/368)) | Low | 7/1/2021 |
| v11.12.0 | Release Notes: * Automated Spec Update ([#366](https://github.com/dropbox/dropbox-sdk-python/pull/366)) | Low | 6/23/2021 |
| v11.11.0 | Release Notes: * Automated Spec Update ([#365](https://github.com/dropbox/dropbox-sdk-python/pull/365)) | Low | 6/16/2021 |
| v11.10.0 | Release Notes: * Automated Spec Update ([#362](https://github.com/dropbox/dropbox-sdk-python/pull/362)) | Low | 5/26/2021 |
| v11.9.0 | Release Notes: * Automated Spec Update ([#354](https://github.com/dropbox/dropbox-sdk-python/pull/354)) * Refresh access token when using a very old short-lived access token with unknown expiration ([#352](https://github.com/dropbox/dropbox-sdk-python/pull/352)) | Low | 5/12/2021 |
| v11.8.0 | Release Notes: * Automated Spec Update ([#351](https://github.com/dropbox/dropbox-sdk-python/pull/351)) | Low | 5/7/2021 |
| v11.7.0 | Release Notes: * Automated Spec Update ([#344](https://github.com/dropbox/dropbox-sdk-python/pull/344)) * Bump actions/setup-python from v2.2.1 to v2.2.2 ([#342](https://github.com/dropbox/dropbox-sdk-python/pull/342)) * Bump codecov/codecov-action from v1.2.1 to v1.3.2 ([#339](https://github.com/dropbox/dropbox-sdk-python/pull/339)) * Update Release Notes Generator to Fetch Latest Tags ([#341](https://github.com/dropbox/dropbox-sdk-python/pull/341)) | Low | 4/14/2021 |
| v11.6.0 | Release Notes: * Automated Spec Update ([#340](https://github.com/dropbox/dropbox-sdk-python/pull/340)) | Low | 4/8/2021 |
| v11.5.0 | Release Notes: * Automated Spec Update ([#337](https://github.com/dropbox/dropbox-sdk-python/pull/337)) | Low | 3/25/2021 |
| v11.4.1 | Release Notes: * Fix status classifier in setup.py ([#334](https://github.com/dropbox/dropbox-sdk-python/pull/334)) * Fix setup.py dependencies by removing pull from requirements.txt ([#333](https://github.com/dropbox/dropbox-sdk-python/pull/333)) | Low | 3/9/2021 |
| v11.4.0 | Release Notes: * Move requirements.txt and test/requirements.txt as source of truth ([#329](https://github.com/dropbox/dropbox-sdk-python/pull/329)) * Automated Spec Update ([#330](https://github.com/dropbox/dropbox-sdk-python/pull/330)) * Update dropbox reference to link to the new name to fix documentation ([#328](https://github.com/dropbox/dropbox-sdk-python/pull/328)) * Fix and update build step for Python2.7 ([#326](https://github.com/dropbox/dropbox-sdk-python/pull/326)) | Low | 3/5/2021 |
| v11.2.0 | Release Notes: * Automated Spec Update ([#323](https://github.com/dropbox/dropbox-sdk-python/pull/323)) * Bump peter-evans/create-pull-request from v3.7.0 to v3.8.2 ([#322](https://github.com/dropbox/dropbox-sdk-python/pull/322)) | Low | 2/10/2021 |
| v11.1.0 | Release Notes: * Bump peter-evans/create-pull-request from v3.5.1 to v3.7.0 ([#318](https://github.com/dropbox/dropbox-sdk-python/pull/318)) * Automated Spec Update ([#317](https://github.com/dropbox/dropbox-sdk-python/pull/317)) * Bump codecov/codecov-action from v1.0.15 to v1.2.1 ([#315](https://github.com/dropbox/dropbox-sdk-python/pull/315)) * Bump actions/setup-python from v2.1.4 to v2.2.1 ([#306](https://github.com/dropbox/dropbox-sdk-python/pull/306)) * Convert integration | Low | 1/26/2021 |
| v11.0.0 | Release Notes: * Add stone to setup.py ([#300](https://github.com/dropbox/dropbox-sdk-python/pull/300)) * Automated Spec Update ([#296](https://github.com/dropbox/dropbox-sdk-python/pull/296)) * Fix links in release notes to be absolute ([#287](https://github.com/dropbox/dropbox-sdk-python/pull/287)) * Bump peter-evans/create-pull-request from v3.4.1 to v3.5.1 ([#297](https://github.com/dropbox/dropbox-sdk-python/pull/297)) * change update_version.sh to reflect the renaming of dro | Low | 12/4/2020 |
| v10.10.0 | * Automated Spec Update ([#288]((https://github.com/dropbox/dropbox-sdk-python/pull//288))) | Low | 11/13/2020 |
| v10.9.0 | Release Notes: * Automated Spec Update ([#284](https://github.com/dropbox/dropbox-sdk-python/pull/284)) * Migrate references of master to main ([#282](https://github.com/dropbox/dropbox-sdk-python/pull/282)) * Migrate primary branch to `main` | Low | 11/10/2020 |
| v10.8.0 | Release Notes: * Automated Spec Update ([#281](github.com/dropbox/dropbox-sdk-python/pull/281)) * Update dispatch on spec update workflow ([#280](github.com/dropbox/dropbox-sdk-python/pull/280)) | Low | 10/30/2020 |
| v10.7.0 | Release Notes: * Fix default in getAuthenticationUrl to pass if requested ([#271](github.com/dropbox/dropbox-sdk-python/pull/271)) * Automated Spec Update ([#278](https://github.com/dropbox/dropbox-sdk-python/pull/278)) * Bump codecov/codecov-action from v1.0.13 to v1.0.14 ([#276](github.com/dropbox/dropbox-sdk-python/pull/276)) * Bump actions/setup-python from v2.1.3 to v2.1.4 ([#270](github.com/dropbox/dropbox-sdk-python/pull/270)) | Low | 10/21/2020 |
| v10.6.0 | Release Notes: * Automated Spec Update ([#267](https://github.com/dropbox/dropbox-sdk-python/pull/267)) * Bump peter-evans/create-pull-request from v3.4.0 to v3.4.1 ([#268](https://github.com/dropbox/dropbox-sdk-python/pull/268)) | Low | 10/12/2020 |
