Skip to main content

A simple file server

Project description

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}

为什么要写这个脚本

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_download_server-1.2.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_download_server-1.2.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for file_download_server-1.2.1.tar.gz
Algorithm Hash digest
SHA256 172094a095b73bc72e270f66609f8ccdeaf4665c8fd9b9f019e7b989aeb2634b
MD5 dee4b659fcf4dff7921c48ec259d7815
BLAKE2b-256 708f938e762daa214c1b6dc4fd50b5e9936397a064078c139df23a5d359a4913

See more details on using hashes here.

File details

Details for the file file_download_server-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for file_download_server-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75cd3f750b29992df5fe649490f50b4a5c61f6b0e9a25abcced49ea9045ef7cb
MD5 8a1c7d7ec9720ba4a50a721942fa65a5
BLAKE2b-256 1262d6134e845524e3069a5eb953eb9323a848d105c3e3d26197bb89009c13c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page