Skip to main content

Crazy way to synchronise a remote Strawberry rated library to Music.app using Python, JXA and SSH.

Project description

clem2itunes

Python versions PyPI - Version GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) CodeQL QA Tests Coverage Status Dependabot Documentation Status mypy uv pytest Ruff Downloads Stargazers pre-commit Prettier

@Tatsh Buy Me A Coffee Libera.Chat Mastodon Follow Patreon

Crazy way to synchronise a remote Strawberry rated library with iTunes using Python, JXA and SSH.

Requires the following packages on the source side:

Installation

Poetry

poetry add clem2itunes

Pip

pip install clem2itunes

Usage

Usage: clem2itunes [OPTIONS] COMMAND [ARGS]...

  Tools for Strawberry libraries.

Options:
  -d, --debug  Enable debug level logging.
  -h, --help   Show this message and exit.

Commands:
  create-library (c,cl,create,create-lib)
                                  Create a curated music library.
  sync (s)                        Sync remote library to local machine.

create-library is useful for creating a maximally sized library of music for copying to any device based on song ratings. It tries to avoid duplicates, and splits MP3s (losslessly) using CUE files.

sync is only for use on macOS to copy songs over, add them to iTunes/Music, and set ratings.

Sync a library to an Android device

Assumes the library is at ~/import. You have to create the /sdcard/Music/import directory on the device first.

for i in ~/import/*; do adb push --sync -Z "$(readlink -f "$i")" /sdcard/Music/import; done

If your machine lacks readlink, use perl -MCwd -le 'print Cwd::abs_path shift' ... instead.

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

clem2itunes-0.1.4.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

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

clem2itunes-0.1.4-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file clem2itunes-0.1.4.tar.gz.

File metadata

  • Download URL: clem2itunes-0.1.4.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clem2itunes-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9fe1c4776d73e1e562cf4170938a3f68824dcb04c9650277c19557690dced692
MD5 b87ed6e97096340dc16d5988a92caba8
BLAKE2b-256 6d419c69b10fc4d2477135842059cb8f5e86061a1f1004241639eb58e4a5195a

See more details on using hashes here.

Provenance

The following attestation bundles were made for clem2itunes-0.1.4.tar.gz:

Publisher: publish.yml on Tatsh/clem2itunes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clem2itunes-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: clem2itunes-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clem2itunes-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4d271ffba078f46398c9c2ef18f6a65992a88fc11e97de38bcd8b729f4b9bfd8
MD5 294be973c232eda74d539d6157bd2ff1
BLAKE2b-256 0fcf34b76bea5ba146d3dbc791765ba5064750f110b9b8ae517dc050b2a5aae0

See more details on using hashes here.

Provenance

The following attestation bundles were made for clem2itunes-0.1.4-py3-none-any.whl:

Publisher: publish.yml on Tatsh/clem2itunes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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