Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/revolunet/httpapifs
httpapifs for pyfilesystem
https://github.com/revolunet/httpapifs
Last synced: 1 day ago
JSON representation
httpapifs for pyfilesystem
- Host: GitHub
- URL: https://github.com/revolunet/httpapifs
- Owner: revolunet
- Created: 2011-03-09T19:21:05.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-03-09T19:41:23.000Z (almost 14 years ago)
- Last Synced: 2024-12-09T11:51:13.420Z (5 days ago)
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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