A Song object, used along with the Songs data source.
This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set.
This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_song()
For an example, check out https://bridgesuncc.github.io/tutorials/Data_Song_Lyrics.html
- Author
- Matthew Mcquaigue, Kalpathi Subramanian
- Date
- 2018, 12/29/20
|
def | __init__ (self, str artist="", str song="", str album="", str lyrics="", str release_date="") |
| Constructor. More...
|
|
def | artist (self) |
| return artist of song More...
|
|
def | artist (self, a) |
| Set artist of song. More...
|
|
def | song_title (self) |
| return title of song More...
|
|
def | song_title (self, s) |
| Set the song title. More...
|
|
def | album_title (self) |
| return album title More...
|
|
def | album_title (self, a) |
| Set title of song. More...
|
|
def | lyrics (self) |
| return lyrics of song More...
|
|
def | lyrics (self, l) |
| Set artist of song. More...
|
|
def | release_date (self) |
| return release date of song More...
|
|
def | release_date (self, r) |
| Set release date of song. More...
|
|
◆ __init__()
def bridges.data_src_dependent.song.Song.__init__ |
( |
|
self, |
|
|
str |
artist = "" , |
|
|
str |
song = "" , |
|
|
str |
album = "" , |
|
|
str |
lyrics = "" , |
|
|
str |
release_date = "" |
|
) |
| |
Constructor.
- Parameters
-
artist | song artist |
song | song title |
album | song album |
lyrics | lyrics of song |
release_date | release date of song |
◆ album_title() [1/2]
def bridges.data_src_dependent.song.Song.album_title |
( |
|
self | ) |
|
return album title
- Returns
- album title of song
◆ album_title() [2/2]
def bridges.data_src_dependent.song.Song.album_title |
( |
|
self, |
|
|
|
a |
|
) |
| |
Set title of song.
- Parameters
-
◆ artist() [1/2]
def bridges.data_src_dependent.song.Song.artist |
( |
|
self | ) |
|
return artist of song
- Returns
- artist name of song
◆ artist() [2/2]
def bridges.data_src_dependent.song.Song.artist |
( |
|
self, |
|
|
|
a |
|
) |
| |
Set artist of song.
- Parameters
-
◆ lyrics() [1/2]
def bridges.data_src_dependent.song.Song.lyrics |
( |
|
self | ) |
|
return lyrics of song
- Returns
- lyrics of song
◆ lyrics() [2/2]
def bridges.data_src_dependent.song.Song.lyrics |
( |
|
self, |
|
|
|
l |
|
) |
| |
Set artist of song.
- Parameters
-
◆ release_date() [1/2]
def bridges.data_src_dependent.song.Song.release_date |
( |
|
self | ) |
|
return release date of song
- Returns
- release date of song
◆ release_date() [2/2]
def bridges.data_src_dependent.song.Song.release_date |
( |
|
self, |
|
|
|
r |
|
) |
| |
Set release date of song.
- Parameters
-
◆ song_title() [1/2]
def bridges.data_src_dependent.song.Song.song_title |
( |
|
self | ) |
|
return title of song
- Returns
- song title
◆ song_title() [2/2]
def bridges.data_src_dependent.song.Song.song_title |
( |
|
self, |
|
|
|
s |
|
) |
| |
Set the song title.
- Parameters
-
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-python/bridges/data_src_dependent/song.py