/file-download-server

simple file to build a file-download server

Primary LanguagePython

Simple file server

Usage

  1. Install

pip install file_download_server

  1. create server

python -m file_server --static_path {path} --port {port} --prefix {url_prefix}

required: --static_path/-d

note: you can get file md5 in path /{prefix}/md5/{file_name}

c0c2756b15765c6b887aac38d474f1c369c67a03

为什么要写这个脚本

为什么不直接python -m http.server,很简单,

  1. http.server 只能单线程下载,有人在下别人就下不了;而且速度不知道为啥慢的不行
  2. http.server 不支持url二级路径, 当我用nginx反向代理时就用不了了