|
2 weeks ago | |
---|---|---|
.github/workflows | 3 months ago | |
bin | 3 months ago | |
cgi-bin | 3 months ago | |
docs | 3 weeks ago | |
supysonic | 1 week ago | |
tests | 1 week ago | |
.coveragerc | 3 years ago | |
.gitignore | 3 months ago | |
LICENSE | 7 years ago | |
MANIFEST.in | 2 years ago | |
README.md | 1 month ago | |
ci-requirements.txt | 3 months ago | |
config.sample | 1 month ago | |
setup.py | 3 months ago | |
supysonic-daemon.service | 1 year ago |
Supysonic is a Python implementation of the Subsonic server API.
Current supported features are:
Supysonic currently targets the version 1.10.2 of the Subsonic API. For more details, go check the API implementation status.
Full documentation is available at https://supysonic.readthedocs.io/
Use the following commands to install Supysonic, create an admin user, define a library folder, scan it and start serving using Gunicorn.
$ pip install git+https://github.com/spl0k/supysonic.git
$ 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
$ gunicorn -b 0.0.0.0:5000 "supysonic.web:create_application()"
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 documentaiton 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.
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()"
$ export FLASK_ENV=development
$ flask run
And there's also the tests:
$ python setup.py test
$ python setup.py test --test-suite tests.with_net