This repository has been archived on 2025-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Max Mehl 92afde02a5
Some checks failed
Test suites / test-os-python-matrix (ubuntu-22.04, 3.10) (push) Failing after 1m49s
Test suites / test-os-python-matrix (ubuntu-22.04, 3.12) (push) Failing after 1m49s
Test suites / test-os-python-matrix (ubuntu-22.04, 3.13) (push) Failing after 1m48s
Test suites / test-os-python-matrix (ubuntu-22.04, 3.11) (push) Failing after 2m10s
Test suites / test-build-install (push) Failing after 29s
Test suites / pylint (push) Failing after 28s
Test suites / formatting (push) Failing after 28s
Test suites / reuse (push) Successful in 41s
Test suites / mypy (push) Failing after 49s
Test suites / test-os-python-matrix (macos-latest, 3.10) (push) Has been cancelled
Test suites / test-os-python-matrix (windows-latest, 3.10) (push) Has been cancelled
Bump version: 0.1.1 → 0.1.2
2025-04-01 22:35:44 +02:00
2025-04-01 21:41:16 +02:00
2025-04-01 21:41:16 +02:00
2025-04-01 21:41:16 +02:00
2025-04-01 21:41:16 +02:00
2025-04-01 21:41:16 +02:00
2025-04-01 22:02:32 +02:00
2025-04-01 21:41:16 +02:00
2025-04-01 22:35:44 +02:00
2025-04-01 21:41:16 +02:00

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

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 --debug  # for testing, uses Flask development server
home-stream -c config.yaml          # for production, uses gunicorn

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

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. This application and the documentation does not help to set this up.

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.

Description
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
Readme 166 KiB
Languages
Python 73%
HTML 22.4%
CSS 2.5%
JavaScript 2.1%