1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-19 10:51:04 +00:00
supysonic/README.md

74 lines
2.6 KiB
Markdown
Raw Normal View History

# Supysonic
2013-05-15 16:07:47 +00:00
2021-01-23 17:33:25 +00:00
Supysonic is a Python implementation of the [Subsonic][] server API.
2013-05-15 16:07:47 +00:00
2020-11-22 14:17:05 +00:00
![Build Status](https://github.com/spl0k/supysonic/workflows/Tests/badge.svg)
2017-12-10 21:31:12 +00:00
[![codecov](https://codecov.io/gh/spl0k/supysonic/branch/master/graph/badge.svg)](https://codecov.io/gh/spl0k/supysonic)
![Python](https://img.shields.io/badge/python-3.5--3.9-blue.svg)
2017-12-10 21:31:12 +00:00
2013-06-14 17:36:14 +00:00
Current supported features are:
* browsing (by folders or tags)
* streaming of various audio file formats
2021-01-23 17:33:25 +00:00
* transcoding
* user or random playlists
2021-01-23 17:33:25 +00:00
* cover art
2013-06-14 17:36:14 +00:00
* starred tracks/albums and ratings
* [Last.FM][lastfm] scrobbling
2019-11-23 14:08:18 +00:00
* Jukebox mode
2013-05-15 16:07:47 +00:00
2021-01-23 17:33:25 +00:00
Supysonic currently targets the version 1.10.2 of the Subsonic API. For more
2018-02-14 18:45:39 +00:00
details, go check the [API implementation status][docs-api].
[subsonic]: http://www.subsonic.org/
2021-01-23 17:33:25 +00:00
[lastfm]: https://www.last.fm/
[docs-api]: https://supysonic.readthedocs.io/en/latest/api.html
2013-06-12 21:14:27 +00:00
2021-01-23 17:33:25 +00:00
## Documentation
2017-06-24 18:24:10 +00:00
2021-01-23 17:33:25 +00:00
Full documentation is available at https://supysonic.readthedocs.io/
2017-06-24 20:23:28 +00:00
## Quickstart
2017-06-24 19:23:50 +00:00
2021-01-23 17:33:25 +00:00
Use the following commands to install Supysonic, create an admin user, define a
library folder, scan it and start serving using [Gunicorn][].
2017-06-24 19:23:50 +00:00
2021-01-23 17:33:25 +00:00
$ pip install git+https://github.com/spl0k/supysonic.git
$ pip install gunicorn
$ supysonic-cli user add MyUserName
$ supysonic-cli user setroles --admin MyUserName
2018-02-14 18:45:39 +00:00
$ supysonic-cli folder add MyLibrary /home/username/Music
2017-06-24 19:23:50 +00:00
$ supysonic-cli folder scan MyLibrary
2021-01-23 17:33:25 +00:00
$ gunicorn -b 0.0.0.0:5000 "supysonic.web:create_application()"
2013-05-15 16:07:47 +00:00
2017-06-24 20:23:28 +00:00
You should now be able to enjoy your music with the client of your choice!
2021-01-23 17:33:25 +00:00
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][docs-setup], plus other options if
you don't want to use Gunicorn.
Note that there's also an optional [daemon][docs-daemon] that watches for
library changes and provides support for other features such as the
jukebox mode.
2018-02-14 18:45:39 +00:00
2021-01-23 17:33:25 +00:00
[gunicorn]: https://gunicorn.org/
[docs-setup]: https://supysonic.readthedocs.io/en/latest/setup/index.html
[docs-daemon]: https://supysonic.readthedocs.io/en/latest/setup/daemon.html
2018-02-14 18:45:39 +00:00
2021-01-23 17:33:25 +00:00
## 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()"
$ 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
2021-01-24 16:49:18 +00:00
[flask]: https://flask.palletsprojects.com/