pyabc2.sources.the_session.load

pyabc2.sources.the_session.load(*, n=None, redownload=None, debug=False, num_workers=1)

Load tunes from The Session archive (https://github.com/adactio/TheSession-data).

Note

The file will be downloaded automatically if it hasn’t already been or if it’s older than 30 days. Use redownload=True to force re-download.

Parameters:
  • n (int | None) – Cap the number of tunes to process. By default, all tunes are loaded.

  • redownload (bool | None) – Re-download the data file.

  • debug (bool) – Show debug messages.

  • num_workers (int) – Number of worker processes to use when processing tunes.

Return type:

list[Tune]

Notes

Specifically we load https://github.com/adactio/TheSession-data/raw/main/json/tunes.json

@adactio (Jeremy) is the creator of The Session.