Pre-release
This release is a pre-release and may not be stable for production use.
Resumable File Server
A simple, multithreaded HTTP file server supporting resumable downloads and file uploads written in pure Python. Drop-in replacement for SimpleHTTPServer, http.server.
Features
- Supports Python 2 and Python 3
- Proper handling of Unicode
- Support for HTTP Range requests (partial downloads)
- Multithreaded serving (handles many clients)
- Directory browsing and multi-file upload via UTF-8 HTML interface
- Specify root directory to serve files from
- Configurable host/IP and port
Usage
Serve files inside /home/user on localhost:8080:
resumable_file_server 8080 --host localhost --port --root /home/user/
Then download with curl:
curl -O -C - http://localhost:8080/largefile.zip
You can also upload one or more files (this uploads them to /home/user/images/):
curl -X POST \
-F "file=@/path/to/photo.jpg" \
-F "file=@/path/to/document.pdf" \
http://localhost:8080/images/
And you will see an UTF-8 HTML with a multi-file picker and upload button at the bottom if you open http://localhost:8080/ with your browser.
Arguments
| Argument | Description | Default |
|---|---|---|
port |
Port to listen on | 8000 |
--host |
Host/IP address to bind to | localhost |
--root, -r |
Root directory to serve files from | . (current directory) |
Security Notes
- Requests outside the root directory (e.g.,
../../etc/passwd) are blocked automatically. - Only files inside the
--rootare accessible.
License
MIT License
Release files for resumable-file-server 0.1.0a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| resumable_file_server-0.1.0a5.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| resumable_file_server-0.1.0a5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / resumable_file_server-0.1.0a5.tar.gz
| Download URL | resumable_file_server-0.1.0a5.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ad34e75695afa5fb5d7a0f0a1064ebf9dc4c3f6cdcba84c58acf784cd5ab2f9
|
|
BLAKE2b-256 checksum How to use checksums |
a6c6874f0adf12419796947a35583b11273b548df2c4dfd178804b86401ed0e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / resumable_file_server-0.1.0a5-py2.py3-none-any.whl
| Download URL | resumable_file_server-0.1.0a5-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4c9f37d58368cb848715e6396818680552a30fb06a959ef68eea1fdcc58ef4f1
|
|
BLAKE2b-256 checksum How to use checksums |
f241a177f315f15f551825537d17d10d99da46ba45da1667265214ebb097e643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|