Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j-min/pydropbox
Simple Wrapper for Dropbox Python API
https://github.com/j-min/pydropbox
dropbox
Last synced: about 1 month ago
JSON representation
Simple Wrapper for Dropbox Python API
- Host: GitHub
- URL: https://github.com/j-min/pydropbox
- Owner: j-min
- Created: 2018-09-18T10:47:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T05:56:11.000Z (over 6 years ago)
- Last Synced: 2024-10-28T13:57:44.030Z (2 months ago)
- Topics: dropbox
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# PyDropbox
Simple Wrapper for Dropbox Python API
## Requirements
- Python 3
- [Dropbox SDK](https://github.com/dropbox/dropbox-sdk-python)## Install
```
pip install pydropbox
```## Example Usage
```
# Import
from pydropbox import PyDropbox# Login
# Generate token at https://www.dropbox.com/developers/apps
token = 'asdfk6lwenmc2x5vds012fnkl23d'
dbx = PyDropbox(token)# Upload
dict_to_uploaded = {'content': 'this is content to be uploaded'}
path_at_dropbox = '/folder_name/file_name'
dbx.upload(dict_to_be_uploaded, path_at_dropbox)# Download
local_path = './downloaded.json'
path_at_dropbox = '/folder_name/file_name'
dbx.download(local_path, path_at_dropbox)
```