Skip to main content

Supysonic

Supysonic is a Python implementation of the Subsonic server API.

Build Status codecov Python

Current supported features are:

  • browsing (by folders or tags)
  • streaming of various audio file formats
  • transcoding
  • user or random playlists
  • cover art
  • starred tracks/albums and ratings
  • Last.fm scrobbling
  • ListenBrainz scrobbling
  • Jukebox mode
  • internet radio stations
  • chat

Supysonic currently targets the version 1.12.0 of the Subsonic API. For more details, go check the API implementation status.

Documentation

Full documentation is available at https://supysonic.readthedocs.io/

Quickstart

Use the following commands to install Supysonic, create an admin user, define a library folder, scan it and start serving on port 5722 using Gunicorn.

$ pip install supysonic
$ pip install gunicorn
$ supysonic-cli user add MyUserName
$ supysonic-cli user setroles --admin MyUserName
$ supysonic-cli folder add MyLibrary /home/username/Music
$ supysonic-cli folder scan MyLibrary
$ supysonic-server -h 0.0.0.0

You should now be able to enjoy your music with the client of your choice!

But using only the above commands will use a default configuration and especially storing the database in a temporary directory. Head over to the documentation for full setup instructions, plus other options if you don't want to use Gunicorn.

Note that there's also an optional daemon that watches for library changes and provides support for other features such as the jukebox mode.

Development stuff

For those wishing to collaborate on the project, since Supysonic uses Flask you can use its development server which provides automatic reloading and in-browser debugging among other things. To start said server:

$ export FLASK_APP="supysonic.web:create_application()"
$ flask run --debug

And there's also the tests (which require lxml to run, installed with the test extra):

$ pip install -e ".[test]"
$ python -m unittest

Tests are run against a temporary SQLite database, but can also be run on any supported database (MySQL or PostgreSQL) by setting the SUPYSONIC_TEST_DB_URI to a valid database URI. WARNING: the database must exist and be empty, and any data will be cleared after the tests.

$ pip install -e ".[test-db]"
$ SUPYSONIC_TEST_DB_URI=mysql://test-user:test-password@test-host/test-database python -m unittest

Metadata

Release files for Supysonic 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Supysonic 0.8.0
File Size Uploaded Provenance Actions
supysonic-0.8.0.tar.gz 265.6 kB Without provenance Details for supysonic-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Supysonic 0.8.0
File Interpreter ABI Platform Actions
supysonic-0.8.0-py3-none-any.whl Python 3 none any Details for supysonic-0.8.0-py3-none-any.whl

Total release size: 594.2 kB

Release files / supysonic-0.8.0.tar.gz

Download URL supysonic-0.8.0.tar.gz
Size 265.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b178fa0c5c6eb13d3501aa990f0de331665412dc1a968f96c73e0cc07318db8
BLAKE2b-256 checksum
How to use checksums
9b5b5774aeb700ee6812b66c81111b95d42a7d58bbb103ef795d37c06f73076b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / supysonic-0.8.0-py3-none-any.whl

Download URL supysonic-0.8.0-py3-none-any.whl
Size 328.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07194fea2298f5143caa48c17bea7ea15566a235adce0922d80f863743a03e86
BLAKE2b-256 checksum
How to use checksums
097fc4d2797423c97f35985ad4ca60ef23d1d7e8c181241f68f3ef8abbb87936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Security for Supysonic 0.8.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page