Add your description here
Project description
ziphttpd: serve Zip files over HTTP
This runs a small web server that provides the contents of a Zip file.
This only serves the files present in the archive,
there is no auto-listing of directory contents.
However, paths that end in / get appended with index.html,
so if the Zip file contains that file, it gets served as directory path.
In particular, path / maps to index.html if the Zip file contains
a file thus named.
Install
pip install ziphttpd
Example uses
ziphttpd archive.zip
Serves the contents of archive.zip over an automatically-selected ephemeral port,
over the loopback interface (localhost).
ziphttpd -p 18888 archive.zip
Serves the file over the loopback interface, at port 18888.
ziphttpd -b 192.168.1.45 -p 18888 archive.zip
Serves the file over one's a network-exposed interface associated to one's IP address, port 18888.
python -m ziphttpd -B -b "" -p 18888 archive.zip
Serves over all of the host's network interfaces, port 18888, and skips starting
a the host's web browser to http://0.0.0.0:18888/
(path / at the server's location).
Notice how one can use python -m ziphttpd as an alternative to short-form entry point.
Command line arguments
Command line schema:
ziphttpd [options] ZIPFILE
| Argument | Description | Example |
|---|---|---|
ZIPFILE |
The file whose contents to distribute with this server. | myfile.zip |
-b ADDRESS--address ADDRESS |
Address to the IP interface to which the server should bind. | localhost10.2.1.180.0.0.0 (all interfaces bound) |
-p PORT--port PORT |
Port to which to bind the server. | 1008080 (careful with privileged ports)0 (autochoose an ephemeral port) |
-B--no-browser |
By default, once the web server is set up, Ziphttpd opens a web browser tab to the server's URL on the host. This option omits this browser action. | |
-v--verbose |
Increases the verbosity level of the server log. Use twice for debugging trace. |
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 ziphttpd-1.0.0.tar.gz.
File metadata
- Download URL: ziphttpd-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4dfd0a86abcc5741c6b836809d1a9aaf6070294f14ff33cbd28c58a0f9feb40
|
|
| MD5 |
20e8cf62cf980335ddfbf34d2ef6a8fb
|
|
| BLAKE2b-256 |
dfebb6bf15103fdeb51e295f87b32966cd72d2c433074f563747534c116fb846
|
File details
Details for the file ziphttpd-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ziphttpd-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d5287a51a8d52b71fc658604197eef3a2f26717cc06ecf084ad4173f3c8a62
|
|
| MD5 |
80e3f47bd7af294f0fbc9ac1d9d27aee
|
|
| BLAKE2b-256 |
e59527b899803c85bfd3cfe319cd4b6b1c55f929a037df83698ef8935e08c7a3
|