Skip to main content

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
  • --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 published
  • HTTPMEDIA_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

Project details


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.3.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpmedia-0.3.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file httpmedia-0.3.0.tar.gz.

File metadata

  • Download URL: httpmedia-0.3.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for httpmedia-0.3.0.tar.gz
Algorithm Hash digest
SHA256 adc9a2eca1baae6e317ac57fce99f291075be08f38f0ad034689d39fedeedb4d
MD5 b5377ec1e263ecc5e526e0c578670f8a
BLAKE2b-256 94161d33499432c55df141b1cfe38233fb9a752a5b274623bb6c6774995b6a94

See more details on using hashes here.

File details

Details for the file httpmedia-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: httpmedia-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for httpmedia-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e2e62334b4a9d337cd7390cddef7113904349c23ffe7466469d6d80fc39ca1a
MD5 fb762cd516e5efb73452326e918d3611
BLAKE2b-256 664791b57ed61821d5adf7a0d68bcbb48f4ee0320df28690bff8e0a143498fb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page