Skip to main content

Beets.io plugin that expose SubSonic API endpoints, allowing you to stream your music everywhere.

Project description

Beetstream

Beetstream is a Beets.io plugin that exposes SubSonic API endpoints, allowing you to stream your music everywhere.

Motivation

I personally use Beets to manage my music library on a Raspberry Pi but when I was looking for a way to stream it to my phone I couldn't find any comfortable, suitable and free options.
I tried AirSonic and SubSonic, Plex and some other tools but a lot of these solutions want to manage the library as they need (but I prefer Beets) and AirSonic/SubSonic were quite slow and CPU intensive and seemed to have a lot of overhead just to browse albums and send music files. Thus said, SubSonic APIs are good and implemented by a lot of different clients, so I decided to re-implement the server side but based on Beets database (and some piece of code).

Install & Run

Requires Python 3.8 or newer.

  1. First of all, you need to install Beets:

  2. Install the dependancies with:

$ pip install beetstream
  1. Enable the plugin for Beets in your config file ~/.config/beets/config.yaml:
plugins: beetstream
  1. Optional You can change the host and port in your config file ~/.config/beets/config.yaml.
    You can also chose to never re-encode files even if the clients asks for it with the option never_transcode: True. This can be useful if you have a weak CPU or a lot of clients.

Here are the default values:

beetstream:
  host: 0.0.0.0
  port: 8080
  never_transcode: False
  1. Run with:
$ beet beetstream

Clients Configuration

Authentication

There is currently no security whatsoever. You can put whatever user and password you want in your favorite app.

Server and Port

Currently runs on port 8080. i.e: https://192.168.1.10:8080. You can configure it in ~/.config/beets/config.yaml. Defaults are:

beetstream:
  host: 0.0.0.0
  port: 8080

Supported Clients

All clients below are working with this server. By "working", it means one can use most of the features, browse library and most importantly play music!

Android

Desktop

Web

Currently supports a subset of API v1.16.1, avaiable as Json, Jsonp and XML.

Contributing

There is still some missing endpoints and TODO in the code. Feel free to create some PR!

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

beetstream-1.4.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

Beetstream-1.4.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file beetstream-1.4.0.tar.gz.

File metadata

  • Download URL: beetstream-1.4.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.9

File hashes

Hashes for beetstream-1.4.0.tar.gz
Algorithm Hash digest
SHA256 ac04f380b0316ee5882a49e53f5c5b5e3689c4212586241750fffa6ba9cf035d
MD5 914565b9f26e2c0d5066747d5ec75b2f
BLAKE2b-256 c08132878a62599430eda7b17f0c4154eb578e9bbb3702c4c2d82a43991039d0

See more details on using hashes here.

File details

Details for the file Beetstream-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: Beetstream-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.9

File hashes

Hashes for Beetstream-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 300330b9f6d49d610b4cba208d6ace6f4ae610238456632e4cf2c077564671e7
MD5 1efee30eca3d2a82c9c45648b497b0f7
BLAKE2b-256 5a0987d0238ad0435868900d4cdece04843c3775ad3e588037ffd10504512a4c

See more details on using hashes here.

Supported by

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