Skip to main content

beets-bandcamp-sync

A beets plugin that finds albums missing from your local library, downloads them from your Bandcamp collection, and imports them through beets. Metadata is provided by the beetcamp plugin.

This project uses Bandcamp's undocumented web endpoints and may need updates if Bandcamp changes them.

Requirements

  • Python 3.10 or later
  • beets 2.4 or later
  • A Bandcamp account with downloadable album purchases

Installation

Install the plugin and its dependencies from PyPI into the same Python environment as beets. With uv:

uv pip install beets-bandcamp-sync

Or with pip:

python -m pip install beets-bandcamp-sync

Enable both plugins and configure your Bandcamp username and cookie file in your beets configuration:

plugins: bandcamp bandcamp_sync

bandcamp_sync:
  username: your_bandcamp_username
  cookies: ~/.config/beets/bandcamp-cookies.txt
  format: flac

The cookie file must use the Netscape cookies.txt format. Export cookies for bandcamp.com from a browser session in which you are signed in. This file contains authentication credentials: do not share or commit it, and restrict its permissions where supported, for example with chmod 600 ~/.config/beets/bandcamp-cookies.txt.

The configured format must be one Bandcamp offers for the release, such as flac, mp3-320, or aiff-lossless.

Usage

Preview albums that would be imported:

beet bandcamp-sync --pretend

Download and import missing albums:

beet bandcamp-sync

Optionally, provide a case-insensitive text filter to sync only releases whose artist or album title contains it:

beet bandcamp-sync bass

The plugin considers an album present when its Bandcamp release URL is already stored as the album ID, or when beets identifies a strong local metadata match.

Development

Create a virtual environment with uv and install the project in editable mode:

uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"
ruff check .
ruff format --check .
pytest
python -m build

License

Distributed under the MIT License.

Metadata

Release files for beets-bandcamp-sync 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beets-bandcamp-sync 0.2.0
File Size Uploaded Provenance Actions
beets_bandcamp_sync-0.2.0.tar.gz 9.0 kB With provenance Details for beets_bandcamp_sync-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for beets-bandcamp-sync 0.2.0
File Interpreter ABI Platform Actions
beets_bandcamp_sync-0.2.0-py3-none-any.whl Python 3 none any Details for beets_bandcamp_sync-0.2.0-py3-none-any.whl

Total release size: 15.9 kB

Release files / beets_bandcamp_sync-0.2.0.tar.gz

Download URL beets_bandcamp_sync-0.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1fe957651d65d32a85b4b60561113dedfe765252f357b2a33921e34ca81ea0cf
BLAKE2b-256 checksum
How to use checksums
837a7bcc235cda57b27ea26c8801eebf0828ecba92d97f32524117f7dc1f6381
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / beets_bandcamp_sync-0.2.0-py3-none-any.whl

Download URL beets_bandcamp_sync-0.2.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a3e0a967049f1459cf40c032ba331d9a72689404caf1685fd989c8d0555267d
BLAKE2b-256 checksum
How to use checksums
d0f89108f4f5e75c0d3b811f392b62572f5de23f427d5d3151183e13dc1ad1af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for beets-bandcamp-sync 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for beets_bandcamp_sync-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page