### Execute Backup Script Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/example/back-up-and-restore/README.md Run the backup and restore script from the example directory. ```bash python backup-and-restore-sample.py ``` -------------------------------- ### Install Dropbox SDK from source Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/README.rst Use these commands to clone the repository and install the SDK directly from the source code. ```console $ git clone git://github.com/dropbox/dropbox-sdk-python.git $ cd dropbox-sdk-python $ python setup.py install ``` -------------------------------- ### Install Dropbox SDK via pip Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/README.rst Use this command to install the package from the Python Package Index. ```console $ pip install dropbox ``` -------------------------------- ### Run Integration Tests Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/CONTRIBUTING.md Environment setup and command to execute integration tests. ```bash $ export DROPBOX_REFRESH_TOKEN={fill in refresh token} $ export DROPBOX_APP_KEY={fill in app key} $ export DROPBOX_APP_SECRET={fill in app secret} $ export DROPBOX_TEAM_TOKEN={fill in team token} $ export DROPBOX_TOKEN={fill in access token} $ tox -e test_integration ``` -------------------------------- ### Run Unit Tests Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/CONTRIBUTING.md Commands to install and run unit tests using tox. ```bash $ pip install tox $ tox ``` ```bash $ tox -e {TARGET} ``` -------------------------------- ### Build Documentation Locally Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/CONTRIBUTING.md Command to build the project documentation into the build/html directory. ```bash $ tox -e docs ``` -------------------------------- ### Configure Access Token Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/example/back-up-and-restore/README.md Set the access token in the sample script to authenticate with the Dropbox API. ```python TOKEN = '' ``` -------------------------------- ### Update Generated Code Source: https://github.com/dropbox/dropbox-sdk-python/blob/main/CONTRIBUTING.md Commands to update the generated base client code. ```bash $ pip install -r requirements.txt $ git submodule init $ git submodule update --remote --recursive $ python generate_base_client.py ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.