Package: pydatpiff
PydatpiffPyDatpiff-   🎶 UnofficialDatpiffMusic Application. Play and download the latest Hip-Hop and RnB songs.supports windows, mac, and linuxpython 3.7 - aboveDependenciesPyDatpiff requires:see requirements:requirements.txtpython >= 3.7InstallationThe default media player uses VLC to play music.
For systems that are incompatible with VLC,  MPV will be used as the fallback player.VLC- VideoLan Client media player and framework.MPV-  MPV Framework. ( Supports IOS, Android and Linux Systems )For linux based systems,    useapt-getto  install required reposVLCsudoapt-getinstallvlcMPVsudoapt-getinstallmpvInstall Pydatpiff Modulepip3installpydatpiffPydatpiff Category & DescriptionCategory reference a mixtapes level or ratings. VisitDatapifffor more info.CategoryDescriptionhotMixtape that are hot for the week.newMixtape that are brand-new or just release.topMixtape that are top-ranking.celebratedTop ranking celebrity mixtapes.popularPopular mixtapes  available.exclusiveExclusive mixtapes.most downloadMost downloaded mixtapes.most listenMost listen mixtapes.most favoriteFavorite mixtapes.highest ratingMixtape with the highest rating.Mixtapepydatpiff.Mixtape- PyDatpiff Mixtape class is query for the latest music by either referencing acategoryor by searching for a particularartistormixtape.Import PyDatpiff module and Intialize Mixtape classMixtape can accept up to three arguments:category,searchandlimit.Either argumentcategoryorsearchshould be used at a given time. If no arguments are pass,"category"will be set to"hot"by default.params:category,search,limit:category:'hot' , 'new', 'top',celebrated', 'popular', 'exclusive', 'most download', ' most listen', 'most favorite',' highest rating'search:artist name or artist mixtape name.limit:maximum amount of mixtapes to return. default=600Create an Instance of the Mixtape classfrompydatpiff.mixtapesimportMixtapemix=Mixtape(category='hot')# -- OR --# Search for an artist's mixtapemix=Mixtape(search='Jay-Z')# To view all available mixtapesmix.mixtapes['Creative Control', 'Carter Collection (15th Anniversary)', 'Viva La Hova', 'The Best Of Jay-z                                                                                                : 25th Anniversary', 'Jay-z - If I Should Die Vol. 1 (the Best Of Jay-z)', 'Jay-Z: The Unheard C                                                                                                lassics', 'Jay-z Underground Mixes And Mashes Disk 2', 'Iceburgz Ent Dj Smokeshop Presents -big                                                                                                 Tingz-pt.1 Classic Beefs Nas,jay-z And More', 'The Best Of Jay-z Old Vs New', 'The Best Of Jay-z                                                                                                 & Biggie Smalls', 'Jay-z Live From Glastonbury ', 'Jay-z Underground Mixes And Mashes disk 1', 'Jay-z - Remixes',..etc ]Mediapydatpiff.Media- PyDatpiff class that allow users to play and download songsHere are somethings you can do withPydtapiff Mediafind_song- Find any song made by an artist.play- Plays songs from a mixtape.download- Download a song from mixtape.download_album- Download all songs from an mixtape.Setup and play song from a mixtapeSetting media player with a mixtape from above.Mixtape:['Creative Control', 'Carter Collection (15th Anniversary)', ..etc]Mixtape can be reference either byindexor by itsalbum name.
Index starts atone (1)notzero (0).frompydatpiff.mixtapesimportMixtapefrompydatpiff.mediaimportMediamix=Mixtape(search="Jay-Z")# Initialize Media with the Mixtape's objectmedia=Media(mix)# Set the media player to a particular mixtapes.media.setMedia('Creative Control')# -- OR --media.setMedia(1)# set media by index.  1='Creative Control'# View all songs in current mixtapemedia.songs['Jay-Z - Intro','Jay-Z - Advantage Carter (Prod. By Green Lantern)','Jay-Z - Welcome 2 Atlanta V103 Feat. Young Jeezy & DJ Greg Street',"Jay-Z - Jay's Back ASAP",'Jay-Z - Live In London','Jay-Z - Green Magic','Jay-Z - Brooklyn Sound Boy','Jay-Z - Child Abuse (Prod. By Green Lantern)','Jay-Z - Jay-Z Speaks On Green Lantern','Jay-Z - Flashy Life','Jay-Z - Got Me On My Shit (Prod. By Green Lantern)',..etc]PLAYING A SONGSongs can be played either by referencing the songindexorname.Song's namedo nothave to be an exact match.# Play a song from current mixtape.media.play('Welcome')# -- OR --media.play(3)# Play Song - ♬♬♬# Song: Jay-Z - Welcome 2 Atlanta V103 Feat. Young Jeezy & DJ Greg Street# Size:  1.91 MBFIND A SONG. . . Can't find that song you been looking for??No worries... We got you covered!Find any song made by an artist using thefind_songmethod inmedia.search bysong's name.search byalbum's name.media.find_song# Search for a songmedia.find_song('green lan')# returns mixtape's index and name# Search results[(1,'Creative Control'),(36,'Headliner & Legends (Jay-Z Freestyles) '),(69,'Power Us Up( Jay-z, Kanye West, Swizz Beatz)'),(172,'J3 Rocnation '),(254,"Bakin' Session")]CONTROLLING MEDIA PLAYERMedia playercanrewind,fast-forward,pause,stopand controlvolumeof song.Usingmedia.player, you will have complete control over your music player.Simply create a variableplayer = media.playerinfo-  get information about a songname-  get name of current song.duration- get duration of track.rewind- rewind trackffwd- fast-forward trackplay- play current( track must be paused or stop ).pause- pause/unpause track.stop- stop track.volume- set the volume level (1 - 100).volume_up- increase volume (default: increase by 5).volum_down- decrease volume (default: decrease by 5).# Create an player object to control the mediaplayer=media.player# Rewind Song ⏪player.rewind()player.rewind(10)# rewind 10 sec ago# Fast-Forward Song ⏩player.ffwd()player.ffwd(10)# fast-forward 10 sec ahead# Pause Song ⏸player.pause# Stop Song ⏹player.stop# stop song# Control Volume 🔊player.volume(50)# set media volume to 50player.volume_up(5)# set media volume up 5 stepsplayer.volume_down(5)# set media volume down 5 stepsDOWNLOAD SONGS AND ALBUMSDownload Songmedia.downloadparams:song,output, andrenamesong: index or name of song.output: directory to save song. *(default: current directory)rename: rename song.(optional)Download Albummedia.download_albumparams:outputoutput: directory to save song.(default: current directory)# Download a single songmedia.download(3,output="directory_to_save_song")# -- OR --media.download('Welcome',output="directory_to_save_song")# Download full albummedia.download_album(output='directory_to_save_album')LINKSCodePyPIIssues & Bugs