A simple file server
Project description
Simple file server
Usage
- Install
pip install file_download_server
- 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}
为什么要写这个脚本
为什么不直接python -m http.server,很简单,
- http.server 只能单线程下载,有人在下别人就下不了;而且速度不知道为啥慢的不行
- http.server 不支持url二级路径, 当我用nginx反向代理时就用不了了
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_download_server-1.2.1.tar.gz.
File metadata
- Download URL: file_download_server-1.2.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
172094a095b73bc72e270f66609f8ccdeaf4665c8fd9b9f019e7b989aeb2634b
|
|
| MD5 |
dee4b659fcf4dff7921c48ec259d7815
|
|
| BLAKE2b-256 |
708f938e762daa214c1b6dc4fd50b5e9936397a064078c139df23a5d359a4913
|
File details
Details for the file file_download_server-1.2.1-py3-none-any.whl.
File metadata
- Download URL: file_download_server-1.2.1-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75cd3f750b29992df5fe649490f50b4a5c61f6b0e9a25abcced49ea9045ef7cb
|
|
| MD5 |
8a1c7d7ec9720ba4a50a721942fa65a5
|
|
| BLAKE2b-256 |
1262d6134e845524e3069a5eb953eb9323a848d105c3e3d26197bb89009c13c5
|