rekordbox_set_list_manager.services.project_io#
Save and load .setmgr project files.
Exceptions#
Raised when a project file cannot be read or written. |
Functions#
|
Serialise project and write it to path. |
|
Read a .setmgr file from path and deserialise it into a |
Module Contents#
- exception rekordbox_set_list_manager.services.project_io.ProjectIOError[source]#
Bases:
ExceptionRaised 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_EXTENSIONsuffix, 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
.setmgrproject file.- Returns:
The deserialised project.
- Return type:
- Raises:
ProjectIOError – If the file cannot be read or parsed.