Skip to content

pombreda/httpapifs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

HttpApiFs for PyFileSystem

Use any remote web server FileSystem with pyfilesystem

Author : julien@revolunet.com

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

About

httpapifs for pyfilesystem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%