Important: Use v12.0.2 or newer of this SDK for compatibility with the Dropbox API servers. Older versions stopped working in January 2026. Please refer to this blog post for more information: https://dropbox.tech/developers/api-server-certificate-changes
The official Dropbox SDK for Python.
Documentation can be found on Read The Docs.
Requirements
This SDK requires Python 3.11 or newer. Earlier versions of Python, including Python 2.7 and Python 3.4 through 3.10, are not supported, as they have reached end of life and are no longer maintained upstream.
Installation
Create an app via the Developer Console.
Install via pip:
$ pip install dropbox
Install from source:
$ git clone git://github.com/dropbox/dropbox-sdk-python.git
$ cd dropbox-sdk-python
$ pip 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 - Shows a simple example of commandline oauth (no redirect).
Commandline OAuth Scopes - Shows a simple example of commandline oauth using scopes.
Commandline OAuth PKCE - Shows a simple example of commandline oauth using PKCE.
- Other Examples
Updown - Sample application that uploads the contents of your Downloads folder to Dropbox.
Reliable file transfer - Downloads and uploads files with retry, progress, and content validation helpers.
Backup 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.
Reliable File Transfers
Use dropbox.file_transfer when copying Dropbox files to or from local storage and you want retry, progress, validation, byte/file targets, stream/file sources, and optional parallel ranged transfers around the generated files_* methods.
import dropbox
from dropbox import files
from dropbox.file_transfer import (
DownloadOptions,
File,
FileUpload,
Uploader,
UploadOptions,
Downloader,
)
dbx = dropbox.Dropbox("YOUR_ACCESS_TOKEN")
Downloader(dbx).download(
"/large-file.bin",
File("large-file.bin"),
DownloadOptions(parallel_downloads=4),
)
Uploader(dbx).upload(
FileUpload("large-file.bin"),
files.CommitInfo("/large-file.bin", mode=files.WriteMode.overwrite),
UploadOptions(parallel_uploads=4),
)
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.
Metadata
Release files for dropbox 12.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dropbox-12.2.2.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dropbox-12.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.0 MB
Release files / dropbox-12.2.2.tar.gz
| Download URL | dropbox-12.2.2.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9abc636a57788165c1e1f263971163230ccc26fd448df643c1005e0dc1abd1a3
|
|
BLAKE2b-256 checksum How to use checksums |
b5a972e16c0d38b9cc9afc5e2d9cd46b2c9af47a2682c9c1a23fa8366d4e67dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / dropbox-12.2.2-py3-none-any.whl
| Download URL | dropbox-12.2.2-py3-none-any.whl |
|---|---|
| Size | 700.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
044d963cdee83a5149e103c792b1a0284f681bb1b6984259cda01244cc3c1a6e
|
|
BLAKE2b-256 checksum How to use checksums |
7925b42df8dee682a87f6d388652a319908886b79be3de95c00ae8db22ddab5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency log