Input/Output#

External Sources#

from_lastfm_api(username, api_key[, tz, ...])

Create ScrobbleLog from a last.fm username

from_lastfmstats(file, file_type[, tz])

Create a ScrobbleLog from a JSON/CSV export obtained from lastfmstats.

from_spotify(file[, username, tz, ...])

Create a ScrobbleLog from a Spotify export JSON.

from_spotify_zip(file[, username, tz, ...])

Create a ScrobbleLog from a Spotify listening history zip.

Canonical Sources#

ScrobbleLog.from_json([file])

Create ScrobbleLog from a canonical JSON.

ScrobbleLog.from_parquet(meta_file, df_file)

Create a ScrobbleLog from a canonical parquet export.

Exports#

ScrobbleLog.to_markdown([file, ...])

Print ScrobbleLog in a nice looking markdown format.

Canonical Exports#

ScrobbleLog.to_json([file, orient, datetimefmt])

Convert a ScrobbleLog to a canonical JSON.

ScrobbleLog.to_parquet(meta_file, df_file)

Write ScrobbleLog to canonical parquet.