Upload music to an iPod nano 6G/7G without iTunes: SQLite library, hashAB signing, cover art (pure-Python).
Project description
ipodsync
Upload music to an iPod nano 6G/7G without iTunes/Apple Music — straight from
the terminal, on macOS and Linux. The iPod mounts as a plain volume; ipodsync
edits its SQLite library, signs it (hashAB) and generates cover art itself.
⚠️ Alpha. Works on real hardware, but it writes to the player's binary database, so keep backups (the tool makes one before every edit). Browsing the iPod in Finder or the Music app is fine — just don't let Apple's software auto-sync it: a sync rebuilds the library from your computer and would drop manually-added tracks (keep the iPod in "manually manage music" mode).
Features
list/export— inspect and download tracks from the device (with tags).add— upload an MP3, metadata from tags, cover art attached automatically (from an embedded APIC/covr): shown both in Now Playing and in list/Albums views.rm— remove a track (+file), re-sign.- playlists —
playlists/pl-create/pl-add/pl-rm/pl-del. cover— attach a cover to an already-uploaded track.- works on an empty (wiped) library too — no iTunes needed to initialize it.
Install
pipx install ipodsync # recommended (isolated), or: pip install ipodsync
Requires Python ≥ 3.9. Pure-Python — no compiler or native library needed.
Note: uploading currently supports MP3 only. FLAC/AAC → ALAC transcoding (which will need
ffmpeg) is on the roadmap and not implemented yet.
Usage
ipodsync status # ready / no access / not connected
ipodsync list
ipodsync add "Song.mp3" # + cover auto
ipodsync add "Song.mp3" --no-cover
ipodsync export ~/Music/ipod --by-album
ipodsync cover 123456789 --image cover.jpg
ipodsync rm 123456789 --delete-file
The iPod is discovered under /Volumes (macOS) and /media, /run/media, /mnt
(Linux) by the presence of iPod_Control/. To point at it explicitly, set
IPODSYNC_MOUNT=/path/to/mount.
How it works
- Transport — mass storage: files are written under
iPod_Control/. - Database — SQLite
iTunes Library.itlp/*.itdb(notiTunesCDB, which the device regenerates on its own). OnlyLocations.itdbis hash-protected (.cbk). - hashAB — anti-tamper
.cbksignature (white-box AES). Pure-Python port of dstaley/hashab (public domain), 100/100 test vectors. No compiler or native lib — the package installs everywhere. - Cover art — pure-Python writer for
ArtworkDB+F<fmt>_1.ithmb(RGB565 LE, formats 1010/1013/1015/1016), appended incrementally.
Status / roadmap
| Status | |
|---|---|
| Upload / remove / export / playlists (MP3) | ✅ confirmed on nano 7G |
| Cover art (pure-Python) | ✅ confirmed on nano 7G |
| Empty-library bootstrap | ✅ |
| Pure-Python hashAB (no native lib, installs everywhere) | ✅ 100/100 vectors |
| Cross-platform device discovery (macOS + Linux) | ✅ |
| FLAC/AAC → ALAC | ⬜ |
Development
git clone … && cd ipodsync
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
pytest
License
MIT (see LICENSE). The vendored hashAB algorithm is public domain. Not affiliated with Apple; iPod and iTunes are trademarks of Apple.
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 ipodsync-0.1.1.tar.gz.
File metadata
- Download URL: ipodsync-0.1.1.tar.gz
- Upload date:
- Size: 479.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dcafeb3e0619ce4c64bf5561035b56b50138123a2fe61e1e320ffbe1c312559
|
|
| MD5 |
ded53dc693cd9d21880b2d091ceac28b
|
|
| BLAKE2b-256 |
f0afe7e3b139707dba00eddb8413a3a677efcef8d88e8be12b71b77428d3d256
|
Provenance
The following attestation bundles were made for ipodsync-0.1.1.tar.gz:
Publisher:
publish.yml on buldiei/ipodsync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ipodsync-0.1.1.tar.gz -
Subject digest:
6dcafeb3e0619ce4c64bf5561035b56b50138123a2fe61e1e320ffbe1c312559 - Sigstore transparency entry: 2173647831
- Sigstore integration time:
-
Permalink:
buldiei/ipodsync@49869b2f0a46e21cd29b46e9c1d382f9c622294f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/buldiei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@49869b2f0a46e21cd29b46e9c1d382f9c622294f -
Trigger Event:
push
-
Statement type:
File details
Details for the file ipodsync-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ipodsync-0.1.1-py3-none-any.whl
- Upload date:
- Size: 438.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94771de3df301b500e32029b66c8f27f8a7cb05819b5c78c1ce237b83a2f20d
|
|
| MD5 |
ba23f32fa551459c8e60acb80e763a17
|
|
| BLAKE2b-256 |
099386f60e335ffd20e0b4be881bba4bcbf82aa252938139388a1d302f70a820
|
Provenance
The following attestation bundles were made for ipodsync-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on buldiei/ipodsync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ipodsync-0.1.1-py3-none-any.whl -
Subject digest:
b94771de3df301b500e32029b66c8f27f8a7cb05819b5c78c1ce237b83a2f20d - Sigstore transparency entry: 2173647852
- Sigstore integration time:
-
Permalink:
buldiei/ipodsync@49869b2f0a46e21cd29b46e9c1d382f9c622294f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/buldiei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@49869b2f0a46e21cd29b46e9c1d382f9c622294f -
Trigger Event:
push
-
Statement type: