Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/revolunet/httpapifs

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

Last synced: 1 day ago
JSON representation

httpapifs for pyfilesystem

Awesome Lists containing this project

README

        

HttpApiFs for PyFileSystem
===

Use any remote web server FileSystem with [pyfilesystem][1]

Author : [[email protected]][2]

**example**

from fs.httpapifs import HttpApiFS

remoteConfig = {
'url':'http://server.com/api.php'
,'username':'admin'
,'password':'verysecretone9'
}
# open a connection
myremotefs = HttpApiFs(**remoteConfig)
# list a dir
myremotefs.listdir('/')
# read a file
print myremotefs.open('README.txt','r').read()
# write to a file
myremotefs.open('writeTest.txt', 'w').write('hello, world')

**Links**

* our [FileBrowser with PyFS backend][3] demo
* the [PyFileSystem google group][4]
* the [PHP backend][5] fot this API
* the [Django backend][6] for this API

[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
[5]: http://github.com/revolunet/filebrowser-php-backend
[6]: https://github.com/revolunet/django-extjs-filebrowser