<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: tagouli</title>
    <description>The latest articles on DEV Community by tagouli (@tagouli).</description>
    <link>https://dev.to/tagouli</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2406321%2Fed2cf56c-bcdc-4a5b-8a3d-ff202212a919.jpeg</url>
      <title>DEV Community: tagouli</title>
      <link>https://dev.to/tagouli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tagouli"/>
    <language>en</language>
    <item>
      <title>How I built a CLI music player in Python and what I learned</title>
      <dc:creator>tagouli</dc:creator>
      <pubDate>Sat, 12 Sep 2026 20:19:55 +0000</pubDate>
      <link>https://dev.to/tagouli/how-i-built-a-cli-music-player-in-python-and-what-i-learned-5a4e</link>
      <guid>https://dev.to/tagouli/how-i-built-a-cli-music-player-in-python-and-what-i-learned-5a4e</guid>
      <description>&lt;p&gt;After months of learning Python through tutorials, I decided to build something I'd actually use every day and I really want to build instead of todo app.&lt;/p&gt;

&lt;p&gt;The result: a command line music player that integrates with the Deezer API, plays audio through yt-dlp and VLC, and stores playlists and favorite artists in a local SQLite database.&lt;/p&gt;

&lt;p&gt;What I used:&lt;/p&gt;

&lt;p&gt;Deezer API &amp;gt; search artists and songs&lt;br&gt;
yt-dlp &amp;gt; fetch and stream audio&lt;br&gt;
VLC &amp;gt; handle playback controls&lt;br&gt;
SQLite &amp;gt; local database for playlists and favorites&lt;br&gt;
requests &amp;gt; API calls&lt;/p&gt;

&lt;p&gt;The interesting part, a bug that taught me something:&lt;/p&gt;

&lt;p&gt;When I added the feature to save artists and songs simultaneously, I kept getting a "database locked" error. My first assumption was a missing commit, I was committing twice, once after each insert. Merged them into one commit after both insertions. Same error.&lt;/p&gt;

&lt;p&gt;Turned out a previous version during development had left a database connection open. That old process was still running in the background locking the database. Killed the processes, added proper connection closing on exit, fixed immediately.&lt;/p&gt;

&lt;p&gt;Lesson: sometimes the bug isn't in the code you're currently looking at, maybe the system or the environment itself.&lt;/p&gt;

&lt;p&gt;What's next:&lt;/p&gt;

&lt;p&gt;GUI version&lt;br&gt;
Packaging for easy install&lt;br&gt;
Tests&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/Iheb-eng/music-app" rel="noopener noreferrer"&gt;https://github.com/Iheb-eng/music-app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love any feedback or suggestions.&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
