Python's http.server extended to include a file upload page
Project description
uploadserver
Python's http.server extended to include a file upload page
Installation
python3 -m pip install uploadserver
May require sudo depending on your distro.
Usage
python3 -m uploadserver
Accepts the same options as http.server.
After the server starts, the upload page is at /upload. For example, if the server is running at http://localhost:8000/ go to http://localhost:8000/upload .
Warning: This is an upload server, and running it will allow uploads. Uploaded files will replace existing files with the same name.
Run with a simple token.
python3 -m uploadserver -t helloworld
Now you can upload a file with token. For example:
curl http://127.0.0.1:8000/upload -F "file_1=@abc.txt" -F 'token=helloworld'
Credits
Most of uploadserver/__main__.py was copied from Python's http.server.main().
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 uploadserver-0.3.0.tar.gz.
File metadata
- Download URL: uploadserver-0.3.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e383c57ae0be5a0c9ed61b1bdab420a795a754e8a20bad60451d1e9fb4434b7
|
|
| MD5 |
b546b22d9aaa2f588d149dbb408e96ff
|
|
| BLAKE2b-256 |
c28b56caa4177e69e49e5f1cf40ec223cd0b8b42fb43344a41bae487b8a7905d
|
File details
Details for the file uploadserver-0.3.0-py3-none-any.whl.
File metadata
- Download URL: uploadserver-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6468f34227a00eb2eabc043f1f553cb906d96bc078be57f6e59575902732f33
|
|
| MD5 |
5de0726160d906d7dd605067093e844a
|
|
| BLAKE2b-256 |
9b90ee8ef15d2bafbda8daaac96b1dabe8ddf6746dd5809027f544872afb44b0
|