httpmedia
What is it?
- Simple file-sharing on HTTP (like
python -m http.serveron steroids) - Shows thumbnails for images/videos/others using vignette
- Supports audio/video file seeking (
python -m http.serverdoes 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_ROOTif 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_USERand$HTTPMEDIA_PASSWORD--auth-realm=REALM: HTTP basic auth realm (can be useful to distinguish different auths on the same host)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
Run in a container
podman build -t localhost/httpmedia -f Containerfile
podman run --rm -n httpmedia -v /your/files:/media -p 8000:8000 -e HTTPMEDIA_BASEURL=https://your.example/medias/ localhost/media
Metadata
Release files for httpmedia 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| httpmedia-0.3.0.tar.gz | 15.3 kB | Without provenance | Details for httpmedia-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| httpmedia-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for httpmedia-0.3.0-py3-none-any.whl |
Total release size: 33.1 kB
Release files / httpmedia-0.3.0.tar.gz
| Download URL | httpmedia-0.3.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adc9a2eca1baae6e317ac57fce99f291075be08f38f0ad034689d39fedeedb4d
|
|
BLAKE2b-256 checksum How to use checksums |
94161d33499432c55df141b1cfe38233fb9a752a5b274623bb6c6774995b6a94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / httpmedia-0.3.0-py3-none-any.whl
| Download URL | httpmedia-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e2e62334b4a9d337cd7390cddef7113904349c23ffe7466469d6d80fc39ca1a
|
|
BLAKE2b-256 checksum How to use checksums |
664791b57ed61821d5adf7a0d68bcbb48f4ee0320df28690bff8e0a143498fb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for httpmedia 0.3.0
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.