Skip to main content

Fast YouTube to MP3 downloader โ€” CLI tool for music lovers

Project description

๐ŸŽต Melody CLI

Fast, elegant YouTube โ†’ MP3 downloader for the terminal. Navigasi dengan arrow keys โ€” tidak perlu hafal command apapun.

Python License: MIT

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  melody  v1.0.0                            โ”‚
โ”‚  YouTube โ†’ MP3  โ€ข  Cari, Download, Konversiโ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

? Apa yang ingin kamu lakukan?
โฏ   Download lagu / playlist dari YouTube
    Download dari file daftar URL  (.txt)
    Cari lagu di YouTube
    Konversi file audio lokal ke MP3
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
    Riwayat download
    Pengaturan
    Keluar

Install

Windows (satu command)

Buka PowerShell, paste ini, tekan Enter:

irm https://raw.githubusercontent.com/0xAre/melody-cli/master/install.ps1 | iex

Script akan otomatis:

  • cek Python & FFmpeg
  • install pipx jika belum ada
  • install melody dan daftarkan ke PATH

Linux / macOS

curl -sSL https://raw.githubusercontent.com/0xAre/melody-cli/master/install.sh | bash

Via PyPI

pip install melody-mp3

Manual dari GitHub

pip install git+https://github.com/0xAre/melody-cli.git

Persyaratan

Python 3.10 atau lebih baru
FFmpeg wajib ada di PATH untuk konversi MP3

Install FFmpeg:

# Windows
winget install -e --id Gyan.FFmpeg

# macOS
brew install ffmpeg

# Ubuntu / Debian
sudo apt install ffmpeg

Penggunaan

Mode interaktif (direkomendasikan)

melody

Jalankan saja melody, navigasi dengan โ†‘โ†“ arrow keys. Tidak perlu hafal flag apapun.

Alur queue โ€” kumpulkan dulu, download sekaligus:

Cari โ†’ pilih โ†’ Tambah ke antrian
Cari โ†’ pilih โ†’ Tambah ke antrian
...
Download antrian  (proses semua sekaligus)

Mode CLI (untuk scripting)

# Download lagu / playlist
melody get "https://youtu.be/..."
melody get "https://youtube.com/playlist?list=..." -o ~/Music -q 320

# Cari dan download
melody search query "bohemian rhapsody"

# Konversi file lokal
melody convert file ./dump -o ./musik

# Riwayat
melody history show

# Konfigurasi
melody config show
melody config show --set quality=320
melody config show --set output_dir=D:/Musik

Konfigurasi

Tersimpan otomatis di %APPDATA%\melody\config.toml (Windows) atau ~/.config/melody/config.toml.

Key Default Keterangan
output_dir ~/Music Folder default download
quality 192 Bitrate MP3: 128 / 192 / 256 / 320 kbps
skip_history true Skip otomatis jika sudah pernah didownload
sample_rate 44100 Hz โ€” kompatibel dengan portable music player

Kompatibilitas Music Player

Melody menghasilkan MP3 yang kompatibel dengan hampir semua portable music player (music box, Acome, dll):

  • Sample rate 44100 Hz
  • Codec libmp3lame
  • Stereo (2 channel)
  • ID3 metadata tertanam

Development

git clone https://github.com/0xAre/melody-cli
cd melody-cli
pip install -e ".[dev]"
pytest tests/ -v

License

MIT ยฉ 2025 0xAre

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

melody_mp3-1.0.0.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

melody_mp3-1.0.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file melody_mp3-1.0.0.tar.gz.

File metadata

  • Download URL: melody_mp3-1.0.0.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for melody_mp3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4e6999c9450e9362c63d40730d7e90fc7442e5ef5caf027f395c91f70df4d0a6
MD5 a89f3d54bdcba62d4c34c4fa24081450
BLAKE2b-256 b4da87570249301b9fe2217ea06f3a8ce0b9766ade26c51e502b55acbb35578f

See more details on using hashes here.

Provenance

The following attestation bundles were made for melody_mp3-1.0.0.tar.gz:

Publisher: publish.yml on 0xAre/melody-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file melody_mp3-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: melody_mp3-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for melody_mp3-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b353b53479c5d81d18069af3ce7a0d23f6369f6e228c65566007a02435acb4a
MD5 eb714c7ca4c4f3b05dd0177bcba9af7d
BLAKE2b-256 10c75475f43f0f1c94a2f4c5c15a2a31580545c84ac2399918a3312083cc6d73

See more details on using hashes here.

Provenance

The following attestation bundles were made for melody_mp3-1.0.0-py3-none-any.whl:

Publisher: publish.yml on 0xAre/melody-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page