Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/revolunet/dropboxfs

dropboxfs for pyfilesystem
https://github.com/revolunet/dropboxfs

Last synced: about 2 months ago
JSON representation

dropboxfs for pyfilesystem

Awesome Lists containing this project

README

        

DropBoxFs for PyFileSystem
===

Use your DropBox account as a FileSystem with [pyfilesystem][1]

Author : [[email protected]][2]

**example**

from fs.dropboxfs import DropBoxFS

dropBoxFsConfig = {
'path':'/'
,'consumer_key':'8px67m'
,'consumer_secret':'o61w3o9'
,'user_name':'[email protected]'
,'user_password':'aTrP5xAhxS7'
}
# open a connection
mydropbox = DropBoxFS(**dropBoxFsConfig)
# list a dir
mydropbox.listdir('/')
# read a file
print mydropbox.open('README.txt','r').read()
# write to a file
mydropbox.open('writeTest.txt', 'w').write('hello, world')

**Links**

* our [FileBrowser with PyFS backend][3] demo
* the [PyFileSystem google group][4]

[1]: http://code.google.com/p/pyfilesystem/
[2]: mailto:[email protected]
[3]: http://filebrowser.demo.revolunet.com
[4]: http://groups.google.com/group/pyfilesystem-discussion/topics