httpmedia - HTTP file sharing with thumbnails
Project description
httpmedia
What is it?
- Simple file-sharing on HTTP (like
python -m http.server
on steroids) - Shows thumbnails for images/videos/others using vignette
- Supports audio/video file seeking (
python -m http.server
does not!) - Can display a slideshow using baguettebox
- HTTP basic auth for access protection
- Few dependencies
- Free license (WTFPLv2)
- Usable through WSGI or standalone
Install
From PyPI:
pipx install httpmedia
Configuration
Command-line arguments (not for WSGI)
--bind=ADDRESS
--root=DIR
: more prioritary than$HTTPMEDIA_ROOT
if present, defaults to current directory if neither is set--auth=USER:PASSWORD
: protect with HTTP basic auth--auth=env
: same as above but fetch credentials from$HTTPMEDIA_USER
and$HTTPMEDIA_PASSWORD
PORT
Env vars (typically for WSGI)
HTTPMEDIA_ROOT
: directory to be publishedHTTPMEDIA_BASEURL
: useful when reverse proxied, thumbnails and static resources will be refered to be under that base url so request are directed to httpmedia by the reverse proxy
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
httpmedia-0.2.0.tar.gz
(9.5 kB
view hashes)
Built Distribution
httpmedia-0.2.0-py3-none-any.whl
(11.8 kB
view hashes)
Close
Hashes for httpmedia-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231fcd41189176c96845de2c3bf6884cc9a15e704547ccf033f35b4ba5d036d2 |
|
MD5 | eff6d61addd8e6693279a4a7f3d405c6 |
|
BLAKE2b-256 | 34dff591e71fb5c90854a9cde7b9fd8484a968d960136afd7cc5f94e3bd91c7d |