Metadata-Version: 2.4
Name: tonie_sync
Version: 0.1.19
Summary: A package to sync Spotify playlists to creative tonies.
Author-email: Anonymous <anonymous@xyz.com>
License: MIT
Project-URL: homepage, https://github.com/sHooPmyWooP/tonie-sync
Requires-Python: <3.14,>=3.10
Description-Content-Type: text/markdown
Requires-Dist: ffmpy<1.0.0,>=0.4.0
Requires-Dist: music-tag<1.0.0,>=0.4.3
Requires-Dist: pillow<11.0.0,>=10.4.0
Requires-Dist: protobuf==3.*
Requires-Dist: tqdm<5.0.0,>=4.66.4
Requires-Dist: tonie-api<1.0.0,>=0.1.1
Requires-Dist: click<9.0.0,>=8.1.7
Requires-Dist: spotdl<5.0.0,>=4.2.10
Requires-Dist: ipykernel>=6.29.5
Requires-Dist: pytubefix>=8.13.1

# Tonie Sync

A package to sync Spotify playlists to creative tonies.

> This package is not affiliated with Spotify or Tonies. It uses the Spotify and
> Tonie APIs to sync playlists to creative tonies. The package is intended for
> personal use only. Use at your own risk.
>
> The package is heavily inspired by
> [spoonie](https://github.com/Seji64/spoonie).

## Installation

```bash
pip install tonie-sync
```

This package requires these additional dependencies:

- ffmpeg

## Usage

```python
from tonie_sync import SyncService

query = "https://youtu.be/Zd7jSXbsDVE?si=Fo5sOzyPhsQxEQPz"
creative_tonie_name = "My Creative Tonie"

sync_service = SyncService()  # Create a new SyncService instance with settings from environment variables
sync_service.sync(query=query, creative_tonie_name=creative_tonie_name)  # Sync the Spotify playlists to the creative tonies
```

## Environment Variables

| Environment Variable  | Description                      | Example Value         |
| --------------------- | -------------------------------- | --------------------- |
| SPOTIFY_CLIENT_ID     | Spotify account username         | 123456789             |
| SPOTIFY_CLIENT_SECRET | Spotify account password         | this_is_very_secret   |
| TONIE_USERNAME        | Tonie account email              | my_email@provider.com |
| TONIE_PASSWORD        | Tonie account password           | another_secret        |
| TONIE_HOUSEHOLD       | Name of the Tonie household      | My Household          |
| TARGET_DIRECTORY      | Path to the local data directory | ./.local              |
