sublime_music.adapters.filesystem.models module

class sublime_music.adapters.filesystem.models.Album(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.AlbumDoesNotExist

albumqueryresultalbumthrough_set
albumqueryresults = <ManyToManyField: Album.albumqueryresults>
artist = <ForeignKeyField: Album.artist>
artist_id = <ForeignKeyField: Album.artist>
property cover_art: Optional[str]
created = <TzDateTimeField: Album.created>
duration = <DurationField: Album.duration>
genre = <ForeignKeyField: Album.genre>
genre_id = <ForeignKeyField: Album.genre>
id = <TextField: Album.id>
name = <TextField: Album.name>
play_count = <IntegerField: Album.play_count>
song_count = <IntegerField: Album.song_count>
property songs: List[sublime_music.adapters.filesystem.models.Song]
starred = <TzDateTimeField: Album.starred>
year = <IntegerField: Album.year>
class sublime_music.adapters.filesystem.models.AlbumQueryResult(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.AlbumQueryResultDoesNotExist

albumqueryresultalbumthrough_set
albums = <SortedManyToManyField: AlbumQueryResult.albums>
query_hash = <TextField: AlbumQueryResult.query_hash>
class sublime_music.adapters.filesystem.models.Artist(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.ArtistDoesNotExist

album_count = <IntegerField: Artist.album_count>
albums
property artist_image_url: Optional[str]
biography = <TextField: Artist.biography>
id = <TextField: Artist.id>
last_fm_url = <TextField: Artist.last_fm_url>
music_brainz_id = <TextField: Artist.music_brainz_id>
name = <TextField: Artist.name>
property similar_artists: peewee.Query
similarartist_set
song_set
starred = <TzDateTimeField: Artist.starred>
class sublime_music.adapters.filesystem.models.BaseModel(*args, **kwargs)[source]

Bases: peewee.Model

DoesNotExist

alias of sublime_music.adapters.filesystem.models.BaseModelDoesNotExist

id = <AutoField: BaseModel.id>
class sublime_music.adapters.filesystem.models.CacheInfo(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.CacheInfoDoesNotExist

album_set
artist_set
cache_key = <CacheConstantsField: CacheInfo.cache_key>
cache_permanently = <BooleanField: CacheInfo.cache_permanently>
file_hash = <TextField: CacheInfo.file_hash>
file_id = <TextField: CacheInfo.file_id>
id = <AutoField: CacheInfo.id>
last_ingestion_time = <TzDateTimeField: CacheInfo.last_ingestion_time>
parameter = <TextField: CacheInfo.parameter>
path = <TextField: CacheInfo.path>
playlist_set
size = <IntegerField: CacheInfo.size>
song_set
valid = <BooleanField: CacheInfo.valid>
class sublime_music.adapters.filesystem.models.Directory(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.DirectoryDoesNotExist

property children: List[Union[sublime_music.adapters.filesystem.models.Directory, sublime_music.adapters.filesystem.models.Song]]
id = <TextField: Directory.id>
name = <TextField: Directory.name>
parent_id = <TextField: Directory.parent_id>
class sublime_music.adapters.filesystem.models.Genre(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.GenreDoesNotExist

album_count = <IntegerField: Genre.album_count>
albums
name = <TextField: Genre.name>
song_count = <IntegerField: Genre.song_count>
songs
class sublime_music.adapters.filesystem.models.IgnoredArticle(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.IgnoredArticleDoesNotExist

name = <TextField: IgnoredArticle.name>
class sublime_music.adapters.filesystem.models.Playlist(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.PlaylistDoesNotExist

changed = <TzDateTimeField: Playlist.changed>
comment = <TextField: Playlist.comment>
property cover_art: Optional[str]
created = <TzDateTimeField: Playlist.created>
duration = <DurationField: Playlist.duration>
id = <TextField: Playlist.id>
name = <TextField: Playlist.name>
owner = <TextField: Playlist.owner>
playlistsongthrough_set
public = <BooleanField: Playlist.public>
song_count = <IntegerField: Playlist.song_count>
property songs: List[sublime_music.adapters.filesystem.models.Song]
class sublime_music.adapters.filesystem.models.SimilarArtist(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.SimilarArtistDoesNotExist

artist = <ForeignKeyField: SimilarArtist.artist>
artist_id = <ForeignKeyField: SimilarArtist.artist>
id = <AutoField: SimilarArtist.id>
order = <IntegerField: SimilarArtist.order>
similar_artist = <ForeignKeyField: SimilarArtist.similar_artist>
similar_artist_id = <ForeignKeyField: SimilarArtist.similar_artist>
class sublime_music.adapters.filesystem.models.Song(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.SongDoesNotExist

album = <ForeignKeyField: Song.album>
album_id = <ForeignKeyField: Song.album>
artist = <ForeignKeyField: Song.artist>
artist_id = <ForeignKeyField: Song.artist>
property cover_art: Optional[str]
disc_number = <IntegerField: Song.disc_number>
duration = <DurationField: Song.duration>
file = <ForeignKeyField: Song.file>
file_id = <ForeignKeyField: Song.file>
genre = <ForeignKeyField: Song.genre>
genre_id = <ForeignKeyField: Song.genre>
id = <TextField: Song.id>
parent_id = <TextField: Song.parent_id>
property path: Optional[str]
playlists = <ManyToManyField: Song.playlists>
playlistsongthrough_set
property size: Optional[int]
starred = <TzDateTimeField: Song.starred>
title = <TextField: Song.title>
track = <IntegerField: Song.track>
user_rating = <IntegerField: Song.user_rating>
year = <IntegerField: Song.year>
class sublime_music.adapters.filesystem.models.Version(*args, **kwargs)[source]

Bases: sublime_music.adapters.filesystem.models.BaseModel

DoesNotExist

alias of sublime_music.adapters.filesystem.models.VersionDoesNotExist

id = <IntegerField: Version.id>
static is_less_than(semver)[source]
Parameters

semver (str) –

Return type

bool

major = <IntegerField: Version.major>
minor = <IntegerField: Version.minor>
patch = <IntegerField: Version.patch>
static update_version(semver)[source]
Parameters

semver (str) –