Thanks to visit codestin.com
Credit goes to github.com

Skip to content

michaeldeese/PythonDropboxUploader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 

Repository files navigation

PythonDropboxUploader (dbupload)

A very small Python package which provides a function to easily maniupulate files stored on Dropbox. This does not use the official API and should probably not be used on any kind of production system.

Usage

Basic uploading

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")
conn.upload_file("local_file.txt","/remote/path/","remote_file.txt")

Directory Listing

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")
print(conn.get_dir_list('/remote/path'))

Downloading a file

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")
conn.download_file("/remote/path","remote_file.txt","local_file.txt")

Download all files in a directory

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")

urls = conn.get_dir_list('/remote/path')

for filename in urls:
    conn.download_file_from_url(urls[filename], filename)

About

Uploads a file to Dropbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published