Skip to main content

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反向代理时就用不了了

Metadata

Release files for file-download-server 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for file-download-server 1.2.1
File Size Uploaded Provenance Actions
file_download_server-1.2.1.tar.gz 2.0 kB Without provenance Details for file_download_server-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for file-download-server 1.2.1
File Interpreter ABI Platform Actions
file_download_server-1.2.1-py3-none-any.whl Python 3 none any Details for file_download_server-1.2.1-py3-none-any.whl

Total release size: 3.8 kB

Release files / file_download_server-1.2.1.tar.gz

Download URL file_download_server-1.2.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
172094a095b73bc72e270f66609f8ccdeaf4665c8fd9b9f019e7b989aeb2634b
BLAKE2b-256 checksum
How to use checksums
708f938e762daa214c1b6dc4fd50b5e9936397a064078c139df23a5d359a4913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / file_download_server-1.2.1-py3-none-any.whl

Download URL file_download_server-1.2.1-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75cd3f750b29992df5fe649490f50b4a5c61f6b0e9a25abcced49ea9045ef7cb
BLAKE2b-256 checksum
How to use checksums
1262d6134e845524e3069a5eb953eb9323a848d105c3e3d26197bb89009c13c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for file-download-server 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page