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 /path/to/new/file.m4a

# Replace songs in a folder
ramusic /path/to/folder

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.2.tar.gz (2.9 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.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: replaceapplemusic-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for replaceapplemusic-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0c4b977772cf7191fd99e385af75698472387c0e3cf728fd4b5d19c244c714b3
MD5 5be620c82c27e0a8a08e722e5a917916
BLAKE2b-256 e8a5fdb28d9804326002c9a3070dabe8002c25fa1acaa89643f50cf243b58893

See more details on using hashes here.

Provenance

The following attestation bundles were made for replaceapplemusic-0.0.2.tar.gz:

Publisher: python-publish.yml on realtvop/ReplaceAppleMusic

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

File details

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

File metadata

File hashes

Hashes for replaceapplemusic-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5210785b6eb464291db173799576cd31871903bed51e450cdec86d4eac2bfcfc
MD5 1ca82faec82a1c86f0c61b534e47bd17
BLAKE2b-256 136cb5c4b257f0456785e260cf609394cece5a7f911a7859c135939ce01097ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for replaceapplemusic-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on realtvop/ReplaceAppleMusic

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