rekordbox_set_list_manager.services.project_io#

Save and load .setmgr project files.

Exceptions#

ProjectIOError

Raised when a project file cannot be read or written.

Functions#

save_project(project, path)

Serialise project and write it to path.

load_project(path)

Read a .setmgr file from path and deserialise it into a Project.

Module Contents#

exception rekordbox_set_list_manager.services.project_io.ProjectIOError[source]#

Bases: Exception

Raised when a project file cannot be read or written.

rekordbox_set_list_manager.services.project_io.save_project(project, path)[source]#

Serialise project and write it to path.

The path should use the PROJECT_FILE_EXTENSION suffix, but this is not enforced so callers can write to temp paths during saves.

Parameters:
  • project (Project) – The project to serialise.

  • path (Path) – Destination file path to write.

Return type:

None

rekordbox_set_list_manager.services.project_io.load_project(path)[source]#

Read a .setmgr file from path and deserialise it into a Project.

Parameters:

path (Path) – Path to the .setmgr project file.

Returns:

The deserialised project.

Return type:

Project

Raises:

ProjectIOError – If the file cannot be read or parsed.