# Module e.p.c.models

Part of elisa.plugins.coherence

Models managed by the UPnP resource provider.

Line # | Kind | Name | Docs
--- | --- | --- | ---
26 | Class | UpnpModel | Model always returned by the UpnpResource provider. It represents
39 | Class | UpnpContainerModel | Model representing an UPnP container. Each container can has one
60 | Class | UpnpItemModel | Model representing an UPnP container item. It can be playable.. or not.
78 | Class | UpnpArtistModel | An Artist in UPnP world is considered as a container.
84 | Class | UpnpAlbumModel | An Album in UPnP world is considered as a container.
101 | Class | UpnpTrackModel | A Track in UPnP world is considered as an item.
117 | Class | UpnpVideoModel | A Video in UPnP world is considered as an item
123 | Class | UpnpImageModel | An Image in UPnP world is considered as an item
129 | Function | create_model_from_upnp_class | Given a UPnP container or item class name, instantiate the correct

def create_model_from_upnp_class(upnp_class):
Given a UPnP container or item class name, instantiate the correct `UpnpContainerModel` or `UpnpItemModel` class.

Parameters | upnp_class | container or item class name (type: string )
Returns | (type: `UpnpContainerModel` or `UpnpItemModel` instance )