django_ftpserver.utils

django_ftpserver.utils.get_settings_value(name)

Return the django settings value for name attribute

django_ftpserver.utils.make_server(server_class, handler_class, authorizer_class, filesystem_class, host_port, file_access_user=None, **handler_options)

make server instance

Host_port:(host, port)
File_access_user:
 ‘spam’

handler_options:

  • timeout
  • passive_ports
  • masquerade_address
  • certfile
  • keyfile
django_ftpserver.utils.parse_ports(ports_text)

Parse ports text

e.g. ports_text = “12345,13000-15000,20000-30000”