Skip to main content

A package to sync Spotify playlists to creative tonies.

Project description

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.

Installation

pip install tonie-sync

This package requires these additional dependencies:

  • ffmpeg

Usage

from tonie_sync import SyncService

query = [
    "joji - test drive",  # search term
    "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",   # track
    "https://open.spotify.com/playlist/2nvhh0bzHb6wdO1yNGZTaY",  # playlist
    ]
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tonie_sync-0.1.6.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tonie_sync-0.1.6-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file tonie_sync-0.1.6.tar.gz.

File metadata

  • Download URL: tonie_sync-0.1.6.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for tonie_sync-0.1.6.tar.gz
Algorithm Hash digest
SHA256 1b8ff7d21e08ceb0e40eb02a13f6a37b8ff1b9c83df3155adb857a0ea3b8287e
MD5 c73f7d97a22643d7f4f898902f238990
BLAKE2b-256 79e185b510aabe46712bb244ebf7fed32f9a02790d462737a1e52c4b61eb0709

See more details on using hashes here.

File details

Details for the file tonie_sync-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: tonie_sync-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for tonie_sync-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6548d88a4016211175db573ed53fa68c6e55d27e9f933692606ac59213c9bbd6
MD5 4f23a029e3fa16c6a1bd7b3779374230
BLAKE2b-256 437a3498649f845002d73d06c05ca213ca2cfdd2e20c7b165bde004f5057b229

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page