Skip to main content

A Python utility to replace source files of songs in Apple Music while preserving metadata

Project description

ReplaceAppleMusic

A Python utility to replace source files of songs in Apple Music while preserving metadata like play count, favorite status, and playlist memberships.

Features

  • Preserves play count
  • Maintains favorite status
  • Keeps playlist memberships
  • Automatically removes old track after replacement

Requirements

  • macOS
  • Python 3.x
  • Apple Music app

Installation

You can install it directly from PyPI:

pip install replaceapplemusic

Or install from source:

  1. Clone this repository
  2. Install dependencies:
pip install -r requirements.txt
  1. Make sure Apple Music is running and you have the necessary permissions

Usage

# Replace a song
ramusic replace "Song Name" "Artist Name" "Album Name" "/path/to/new/file.mp3"

# Replace a song without specifying album
ramusic replace "Song Name" "Artist Name" "" "/path/to/new/file.mp3"

# Replace a song with only the title
ramusic replace "Song Name" "" "" "/path/to/new/file.mp3"

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

replaceapplemusic-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

replaceapplemusic-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file replaceapplemusic-0.0.1.tar.gz.

File metadata

  • Download URL: replaceapplemusic-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for replaceapplemusic-0.0.1.tar.gz
Algorithm Hash digest
SHA256 15dc53e4d59bbf020827e5f1fc5511c824dda693e38154056975e999efca257f
MD5 d2f0dce18dc19bd325d2b1644ac2bb71
BLAKE2b-256 12a0ddead0f19108edaae0d91c331eb5339cfd7b27a66bee22953d24eba3db68

See more details on using hashes here.

File details

Details for the file replaceapplemusic-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for replaceapplemusic-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86cf365f5984ab68a3a09941abd96333176e9ad4b85dd529891c58449efa5178
MD5 7c48fe80f4e0f22ff00585f3398cd07d
BLAKE2b-256 b83d09394099099a900261a01bc202fda32f8dc8a01bdee1831446f834c9d8b7

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