Skip to main content

Browser and streaming interface for local media files

Project description

Home Stream

Test suites REUSE status The latest version of this application can be found on PyPI. Information on what versions of Python this application supports can be found on PyPI.

A web-based browser and streaming interface for local media files. Supports in-browser playback, HTTP Basic Auth streaming (e.g. VLC), and user-based login with permanent stream URLs.

Features

  • Browse local folders and media files
  • Secure user login
  • In-browser audio/video player (if supported by your browser)
  • HTTP Basic Auth fallback for external players (VLC, mpv, etc.) using authenticated links
  • Lightweight and dependency-minimal Python Flask app

Installation

Minimum Python version: 3.10

Install and run via pipx (Recommended)

pipx makes installing and running Python programs easier and avoids conflicts with other packages. Install it with

pip3 install pipx

The following one-liner both installs and runs this program from PyPI:

pipx run home-stream

If you want to be able to use the application without prepending it with pipx run every time, install it globally like so:

pipx install home-stream

The application will then be available in ~/.local/bin, which must be added to your $PATH. So make sure that ~/.local/bin is in your $PATH. On Windows, the required path for your environment may look like %USERPROFILE%\AppData\Roaming\Python\Python310\Scripts, depending on the Python version you have installed. Recent pipx versions allow you to do this via pipx ensurepath.

To upgrade the application to the newest available version, run this command:

pipx upgrade home-stream

Other installation methods

You may also use pure pip or poetry to install this package.

Configuration

Create a config.yaml file in the project root. You can derive your configuration from config.sample.yaml.

Passwords must be bcrypt-hashed. You can generate them using Python:

import bcrypt
print(bcrypt.hashpw(b"your-password", bcrypt.gensalt()).decode())

or by using online tools like bcrypt-generator.com, although not recommended for production passwords.

Usage

Start the app (session login + streaming):

home-stream -c config.yaml  # uses Flask development server

Log in via browser, by default on localhost:8000. Browse and play media, or copy permanent stream URLs.

Production Webserver

For productive use, you should use a proper webserver. Streaming many and large chunks of files may trigger issues with apps like gunicorn, so uWSGI is officially supported.

For a quick start, run poetry run uwsgi --ini uwsgi.ini. Using the docker image ghcr.io/mxmehl/home-stream you would have everything contained into one container, ready to be use locally or behind a reverse proxy. Note that depending on your use-cases, you may want to reconfigure some uwsgi settings. This currently would need to be done manually.

Usage Scenarios

The application is mainly designed with the use-case of running it on a NAS or home server with direct media access to allow accessing your media files remotely.

For this, you may put this application behind a reverse proxy or make it accessible via a VPN connection.

Of course, you can also use it purely locally, although there are probably better tools to administrate your media files.

License

This project is licensed under the terms of the GPL-3.0-only license, but contains elements under different licenses.

The project is REUSE compliant, so licensing and copyright information is available for every single file.

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

home_stream-1.3.3.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

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

home_stream-1.3.3-py3-none-any.whl (66.9 kB view details)

Uploaded Python 3

File details

Details for the file home_stream-1.3.3.tar.gz.

File metadata

  • Download URL: home_stream-1.3.3.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1014-azure

File hashes

Hashes for home_stream-1.3.3.tar.gz
Algorithm Hash digest
SHA256 2a0cc97d23521961520b5057799bb1944b17693b89bd0db67b494f2d1d49bd02
MD5 ac77143ee7313b0b9c047c25119988f4
BLAKE2b-256 550336b1b67230e4189035c8b48fe05c7ef0e0edbeff456a960432f04fb364c7

See more details on using hashes here.

File details

Details for the file home_stream-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: home_stream-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 66.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1014-azure

File hashes

Hashes for home_stream-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de88f3e052207ddc7221fb6233e0a82bf90aeb3c98ccf5e719525e9468428835
MD5 3aeefe9aca89e57885e06450ef883b1e
BLAKE2b-256 ba91da67f671b1c611d4459453b56bb8a441e5f296b44f05692d613cefe65ce4

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