Home

Tags

ftp сервер на python

2010-02-21 python ftp

Установка


easy_install pyftpdlib


Исходник сервера


from pyftpdlib import ftpserver
authorizer = ftpserver.DummyAuthorizer()
authorizer.add_user("user", "12345", "/home/user", perm="elradfmw")
authorizer.add_anonymous("/home/anonim")
handler = ftpserver.FTPHandler
handler.authorizer = authorizer
address = ("127.0.0.1", 21)
ftpd = ftpserver.FTPServer(address, handler)
ftpd.serve_forever()

сайт проекта

comments powered by Disqus