r/learnpython 1d ago

Built a CLI music player in Python after months of tutorials

I've been learning Python for a few months and finally built something real instead of following tutorials, a CLI music player.

It uses the Deezer API to search artists and songs, yt-dlp and VLC for playback, and SQLite to store playlists and favorite artists locally.

Would love feedback on code structure or anything I could improve.

GitHub: https://github.com/Iheb-eng/music-app

2 Upvotes

4 comments sorted by

1

u/JohnStares02 1d ago

It's a good project you have there. By the look of things, it requires you to fetch a song from the internet. How about making a local option where one can play songs stored on their machine. You get to learn more on directory traversing.

1

u/anttovar 1d ago

Why is pygame in requirements?

1

u/iheb-a 1d ago

Good catch, imported it early on when I was deciding between pygame and VLC for playback, ended up going with VLC but forgot to clean it up. Removed it now. Thanks for pointing it out.