/dropbox-sdk-python

The Official Dropbox API V2 SDK for Python (with partial file download option)

Primary LanguagePythonMIT LicenseMIT

https://cfl.dropboxstatic.com/static/images/sdk/python_banner.png

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:

$ pip install dropbox

Install from source:

$ 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
  • Other Examples
    • Updown - Sample application that uploads the contents of your Downloads folder to Dropbox.
    • 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.

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.

Difference between this fork and the original repo

This fork provides a possibility to download a part of file from Dropbox:

dbx.files_download("/my_huge_file.txt", start=0, end=5) #this downloads first 5 bytes of /my_huge_file.txt ([0; 5) span)