SShortSingh.
Back to feed

Developer builds Python CLI music player using Deezer API, yt-dlp, and SQLite

0
·1 views

A developer built a command-line music player in Python as a practical alternative to typical beginner projects like to-do apps. The tool integrates with the Deezer API for song and artist search, uses yt-dlp and VLC for audio playback, and stores playlists and favorites in a local SQLite database. During development, a persistent 'database locked' error turned out to be caused by a leftover connection from an older version of the app still running in the background. The fix involved killing the rogue process and implementing proper connection closing on exit. The developer has shared the project on GitHub and plans to build a GUI version next.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Oracle Publishes 12 Reusable Integration Patterns for Oracle Integration Cloud

A technical field guide covering twelve reusable integration patterns for Oracle Integration 3 (OIC) has been published, targeting architects and developers working on enterprise and healthcare projects. Each pattern is supported by real-world examples, architecture views, and sequence diagrams to aid recognition and practical application. The patterns range from synchronous request-reply and API facade mediation to publish-subscribe, event-driven integration, and B2B/EDI gateway designs. Use cases include healthcare scenarios such as claims routing, member onboarding, and eligibility checks, as well as bulk file transfers and scheduled data synchronization. The guide positions these patterns as composable building blocks rather than standalone templates, helping teams make informed architecture decisions on real OIC deployments.

0
ProgrammingDEV Community ·

Developer Builds Offline, Battery-Efficient Geofencing Engine to Auto-Manage Phone Sound Profiles

A developer created a location-aware Android app that automatically switches a phone's sound profile based on the user's physical location, eliminating the need for manual toggling. The solution uses Google Play Services' GeofencingClient, which offloads location monitoring to the system and only wakes the app when a user enters or exits a defined zone, preserving battery life. To prevent erratic profile switching caused by GPS signal bounce in urban areas, a 60-second hysteresis buffer was implemented before acting on an exit event. The app stores all data locally using Room for persistence, and re-registers alarms and geofences after a device reboot to maintain active routines. A key challenge encountered was Android's aggressive Doze mode and manufacturer battery optimizations, which disrupted reliable background execution even with location permissions granted.

0
ProgrammingDEV Community ·

A Practical Guide to Choosing the Right Voice Input Setup for PC in 2026

With voice input now spanning multiple product categories, choosing the right setup depends on whether you need to fix your microphone, improve transcription quality, or route speech directly to a focused cursor on your PC. Built-in OS tools like Windows Voice Typing and Apple Dictation suit occasional, low-effort use, while desktop AI dictation apps such as Wispr Flow and SuperWhisper offer cleaner prose for users with decent microphones. Phone-as-mic tools like WO Mic address poor laptop audio by turning a smartphone into a virtual microphone for existing speech-to-text software. A newer category — including FlowMic, Vox Manager, and AirMic — goes further by performing recognition on the phone and injecting finished text directly into whichever field is active on the PC. The author, who discloses involvement in FlowMic's launch operations, frames the core decision around three questions: is the problem the mic, the transcription, or the delivery path to the cursor?

0
ProgrammingDEV Community ·

Schemagate library offers zero-import tools to filter database schema for AI agents

A developer built Schemagate, a Python library designed to restrict which database tables an AI agent can see based on the caller's permissions. The core problem it addresses is that agents often expose schema objects users are not authorized to access, and wiring a fix into an existing agent takes significant effort. To lower adoption friction, the library now offers five interfaces — including a CLI demo, a select command, and a local studio UI — that require no Python imports at all. In benchmark tests, the tool reduced average prompt size by 75.6%, selecting around 9 relevant objects from a 42-object schema instead of passing the entire schema to the model. A browser-based version running on six bundled schemas is also publicly available, with a JavaScript port of the selector validated against 1,789 test cases to match the Python version exactly.

Developer builds Python CLI music player using Deezer API, yt-dlp, and SQLite · ShortSingh