Metadata-Version: 2.4
Name: pushtunes
Version: 1.1.1
Summary: Push music (albums, tracks, playlists) from Subsonic, Jellyfin or plain CSV files to Spotify and YouTube Music
Author-email: Psy-Q <rca@psy-q.ch>
License-Expression: AGPL-3.0-or-later
Project-URL: Homepage, https://codeberg.org/psy-q/pushtunes
Project-URL: Repository, https://codeberg.org/psy-q/pushtunes
Project-URL: Issues, https://codeberg.org/psy-q/pushtunes/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: spotipy
Requires-Dist: py-sonic
Requires-Dist: deepdiff
Requires-Dist: thefuzz
Requires-Dist: platformdirs
Requires-Dist: ytmusicapi
Requires-Dist: orjson>=3.10.15
Requires-Dist: typer
Requires-Dist: jellyfin-apiclient-python
Requires-Dist: rich
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Dynamic: license-file

# Pushtunes

Pushtunes is a small tool to push your music from local sources (Subsonic-compatible server/Navidrome, Jellyfin, a CSV file, etc.) to music streaming services. It can also back up your music libraries to CSV files and restore them later. Currently only Spotify and YouTube Music are supported. See "Music streaming services" below for more.

Documentation is also available in an easy-to-browse style on [Read the Docs](https://pushtunes.readthedocs.io/en/stable/), if you prefer.


## Installation

With any pip-like environment (pip, uv, etc.) it should be as easy as:

```
pip install pushtunes
```

See [Installation](docs/Installation.md) for more examples or how to install from source instead.


## Usage

Set your music service and source credentials (see [Getting Started](docs/Getting-Started.md) and, for example:

```bash
# Push albums from Subsonic to Spotify
pushtunes push albums --from subsonic --to spotify

# Push individual tracks (starred/favorites) from Subsonic to Spotify
pushtunes push tracks --from subsonic --to spotify

# Push playlists from Subsonic to Spotify or YouTube Music
pushtunes push playlist --from subsonic --playlist-name=myplaylist --to spotify
pushtunes push playlist --from subsonic --playlist-name=myplaylist --to ytm

# Push from CSV file
pushtunes push tracks --from csv --csv-file=tracks.csv --to spotify
```

See `pushtunes --help`, `pushtunes push albums --help`, `pushtunes push tracks --help`, or `pushtunes push playlist --help` for more options.

There are many advanced features such as:

 * [Mapping items that can't be found](docs/Mappings.md)
 * [Filtering what gets skipped](docs/Filters.md)
 * [Deleting things that aren't in the source](docs/Deleting.md)
 * [Managing and syncing playlists from Subsonic/Jellyfin/CSV](docs/Playlists.md)
 * [Cross-Service Playlists](Cross-Service-Playlists.md) for direct syncing between YTM and Spotify without going through intermediary files
 * [Exporting problematic items to CSV for debugging and fixing](docs/Export-CSV.md)


## Music sources

* Subsonic (including Navidrome, Airsonic, etc.)
* Jellyfin
* CSV files

## Music streaming services

* Spotify
* YouTube Music

The streaming service market is in a very sad state of affairs regarding APIs. Spotify has a good one, YouTube Music is almost unusable and working with it is only possible thanks to the people who maintain the unofficial ytmusicapi library. Deezer and Qobuz don't allow anyone to use their API anymore, requests for API keys go unanswered, documentation is being deleted and no up to date libraries exist. Tidal might still allow people to use the API but the Python support is incomplete and lacking the functions Pushtunes needs.

That's why realistically, YTM and Spotify are your choices.

## More documentation

[Head over to our Read The Docs page](https://pushtunes.readthedocs.io/en/stable/).
