rekordbox_set_list_manager.models.section#

Section domain model.

Classes#

Section

An ordered group of tracks within a set list, with an assigned color.

Module Contents#

class rekordbox_set_list_manager.models.section.Section(/, **data)[source]#

Bases: pydantic.BaseModel

An ordered group of tracks within a set list, with an assigned color.

Parameters:

data (Any)

id: uuid.UUID = None[source]#
name: str[source]#
section_type: rekordbox_set_list_manager.models.enums.SectionType[source]#
color: rekordbox_set_list_manager.models.enums.RekordboxColor[source]#
track_ids: list[uuid.UUID] = None[source]#
transition_notes: dict[str, str] = None[source]#
add_track(track_id)[source]#

Append track_id if it is not already present in this section.

Parameters:

track_id (UUID) – The track ID to append.

Return type:

None

remove_track(track_id)[source]#

Remove track_id and its transition note from this section.

Parameters:

track_id (UUID) – The track ID to remove along with its transition note.

Return type:

None

move_track(track_id, new_index)[source]#

Move track_id to new_index within this section.

Parameters:
  • track_id (UUID) – The track ID to reposition.

  • new_index (int) – Target zero-based position within the section’s track list.

Return type:

None

property track_count: int[source]#

Return the number of tracks in this section.

Return type:

int