A command-line music player that downloads and plays music from YouTube.
Project description
Melody.CLI - A next-generation music streaming experience in your terminal (Upcoming Project)
Project Overview
Welcome to Melody CLI, a versatile command-line music player that brings the power of YouTube to your terminal. Whether you're a developer looking to integrate music playback into your own applications or a music enthusiast who enjoys the simplicity of command-line tools, Melody CLI has you covered.
With Melody CLI, you can easily search for songs on YouTube Music, download the audio, and play it directly from your terminal. The tool leverages the robust capabilities of yt-dlp for downloading and converting YouTube videos, ytmusicapi for interfacing with YouTube Music, and pygame for seamless audio playback.
Our straightforward command-line interface ensures that navigating through the CLI is a breeze, making it accessible even to those who are new to command-line tools. Whether you're pausing, resuming, or stopping playback, Melody CLI provides intuitive controls to manage your listening experience.
Join us in exploring the world of music through the command line. Melody CLI is open-source and welcomes contributions from the community, so feel free to get involved and help us improve this tool.
Why Melody.CLI ?
In a world dominated by graphical user interfaces, Melody.CLI offers a refreshing alternative. Designed for music enthusiasts who appreciate the elegance and efficiency of the command line, Melody.CLI provides a distraction-free, immersive music experience. Whether you're a developer seeking seamless music playback while coding, or a terminal aficionado, Melody.CLI is crafted to meet your needs.
Exciting Features to Look Forward To
- Search Songs: Find songs by title or artist using the YouTube Music API.
- Download Audio: Download audio from YouTube videos and convert them to MP3.
- Play Music: Play downloaded songs directly from the command line.
- Playback Controls: Pause, resume, and stop playback using intuitive commands.
Installation
You can install Melody.CLI from PyPI:
pip install melody_cli
Run Locally
Clone the project
git clone https://github.com/pythonicforge/melody.CLI
Go to the project directory
cd melody.CLI
Create a virtual environment
pip install virtualenv
virtualenv env
Install dependencies
pip -r "requirements.txt"
Usage/Examples
from Melody_CLI import Player
if __name__ == '__main__':
player = Player()
searchQuery = input("Search for a song: ")
youtubeSearchResults, videoIDS = player.searchSong(searchQuery)
desiredVideo = int(input("Enter desired video number: "))
audioFile = player.downloadSong(videoIDS[desiredVideo])
player.playSong(audioFile)
Technical Highlights
- YTMusicAPI: Fetch songs and get search recommendations
- Yt_DLP: Download YT songs and store them locally.
- Pygame: Playback and control the downloaded audio files.
Contributing
Contributions are always welcome!
Please adhere to this project's code of conduct.
Stay tuned for Melody.CLI, an upcoming project that will redefine music streaming for the terminal generation. Melody.CLI is a testament to my skills in Python development, user-centric design, and my passion for creating innovative, real-world applications. Join me on this journey to bring a unique music streaming experience to life.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file melody_cli-0.0.2.tar.gz.
File metadata
- Download URL: melody_cli-0.0.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11c3db52a93b4ef28476c747efe99df566c563ff001cb579c06c7e43978511c2
|
|
| MD5 |
c9d5a000ea684efd00af3b0c14f3e1f3
|
|
| BLAKE2b-256 |
aab2d92a7a7d766847957b8eb2b01e223c9f93976f927d8fef71fbe3f4d8a37c
|
File details
Details for the file Melody_CLI-0.0.2-py3-none-any.whl.
File metadata
- Download URL: Melody_CLI-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdcae268c34311499a83410b60b3dd6723d4b7df726e2b8c0d36481c2fb78599
|
|
| MD5 |
6e90cd7a73237a522c71b402da7f9e20
|
|
| BLAKE2b-256 |
5f7b9644e552a0e161627aa9a10dd2b5f4e70ad25ade2796d743c3bf354c95bc
|