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 = "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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tonie_sync-0.1.20.tar.gz.
File metadata
- Download URL: tonie_sync-0.1.20.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c168eae7982ea456a64ec5b4c87fbcec41bdaf880e5bb79e594ec9d5c5dd94e
|
|
| MD5 |
875d6e304d16f8513ebefbc8098bf162
|
|
| BLAKE2b-256 |
0248cbf44d70abe8141a4d0d89b34de04e9ccc3bc8e33a31315815bb6b6bcf07
|
File details
Details for the file tonie_sync-0.1.20-py3-none-any.whl.
File metadata
- Download URL: tonie_sync-0.1.20-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dafd29f63ea88b3e0172f2c9e147fbd4a652262d576e4835b3c81060887375f
|
|
| MD5 |
0780fe871d06f13691ac816f7e50e808
|
|
| BLAKE2b-256 |
e63788705af54c3969478bbba1c107cf77ae408a9578bab03f3d63856812e9fc
|