calliope.bandcamp

Access data from Bandcamp.

This module wraps the bandcamp_api library.

Authentication

All the APIs used by this module can be accessed without authentication.

Caching

HTTP requests are not cached. At time of writing, api.bandcamp.com requests send the HTTP header Cache-Control: no-cache, no-store.

Package Contents

Classes

BandcampContext

Context for accessing Bandcamp API.

Functions

collection(bandcamp: calliope.bandcamp.BandcampContext, count=1000) → calliope.playlist.Playlist

Export all albums in Bandcamp collection.

class calliope.bandcamp.BandcampContext(config: calliope.config.Configuration, user: str = None)

Context for accessing Bandcamp API.

Parameters

user – Default user for requests

get_fan_id(self)
calliope.bandcamp.collection(bandcamp: calliope.bandcamp.BandcampContext, count=1000)calliope.playlist.Playlist

Export all albums in Bandcamp collection.