Collection

Inheritance diagram of musify.libraries.collection

Basic concrete implementation of a MusifyCollection.

Classes:

BasicCollection(name, items, *args, **kwargs)

A basic implementation of MusifyCollection for storing items with a given name.

class musify.libraries.collection.BasicCollection(name, items, *args, **kwargs)

Bases: MusifyCollection, Generic

A basic implementation of MusifyCollection for storing items with a given name.

Parameters:
  • name (str) – The name of this collection.

  • items (Collection[T]) – The items in this collection

Attributes:

name

The name of this collection

items

The items in this collection

length

Total duration of all items in this collection in seconds

property name

The name of this collection

property items: list[T]

The items in this collection

property length

Total duration of all items in this collection in seconds