Skip to main content

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

Project description

๐ŸŽต Melody CLI

YouTube โ†’ MP3 downloader dengan interactive wizard di terminal. Navigasi dengan arrow keys โ€” tidak perlu hafal command apapun.

PyPI 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
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Antrian [3 lagu] โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
    Antrian [3 lagu]  โ€”  lihat & kelola
    Download antrian  (3 lagu)
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
    Konversi file audio lokal ke MP3
    Riwayat download
    Pengaturan
    Keluar

Install

Windows โ€” satu command

Buka PowerShell, paste, tekan Enter:

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

Otomatis cek Python, install pipx, install melody, daftarkan ke PATH.

Linux / macOS

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

Via pip / pipx

# pip
pip install melody-mp3

# pipx (direkomendasikan โ€” environment terisolasi)
pipx install melody-mp3

Persyaratan

Python 3.10+
FFmpeg otomatis โ€” diunduh saat pertama kali dibutuhkan

melody menyertakan static-ffmpeg sebagai dependensi โ€” jika FFmpeg tidak ditemukan di sistem, melody mengunduhnya otomatis (~80 MB, sekali saja, tersimpan di cache).

Jika sudah punya FFmpeg di sistem, melody langsung menggunakannya tanpa download.


Fitur

  • Interactive wizard โ€” navigasi arrow keys, tidak perlu hafal command apapun
  • Queue system โ€” kumpulkan lagu dari beberapa pencarian, download sekaligus
  • Cari YouTube langsung dari terminal
  • Support YouTube Music URLs (music.youtube.com) โ€” otomatis dikonversi
  • Auto-fallback DRM โ€” jika video protected, otomatis coba versi lain
  • Download playlist sekaligus
  • History & dedup โ€” tidak download ulang lagu yang sama
  • Config permanen โ€” kualitas, folder output, sample rate
  • Kompatibel music box โ€” 44100 Hz, libmp3lame, stereo

Penggunaan

Mode interaktif (direkomendasikan)

melody

Jalankan melody, navigasi โ†‘โ†“, pilih Enter. Tidak perlu hafal apapun.

Alur queue โ€” kumpulkan dulu, download sekaligus:

melody
  โ†’ Cari lagu di YouTube  โ†’  pilih  โ†’  Tambah ke antrian
  โ†’ Cari lagu di YouTube  โ†’  pilih  โ†’  Tambah ke antrian
  โ†’ Download antrian  (proses semua sekaligus)

Mode CLI

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

# Cari YouTube
melody search query "bohemian rhapsody"

# Konversi file audio lokal
melody convert file ./folder -o ./output

# Riwayat download
melody history show

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

Konfigurasi

Tersimpan di %APPDATA%\melody\config.toml (Windows) / ~/.config/melody/config.toml (Linux/macOS).

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 portable music player

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.1.0.tar.gz (27.1 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.1.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: melody_mp3-1.1.0.tar.gz
  • Upload date:
  • Size: 27.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 0eb4fed1534cc767d11e7921d22bfd4cf44b51f9cf5e852312d2a07ebd27e761
MD5 07fad01661ee9cc728693dbdeef3d2aa
BLAKE2b-256 4e619fc095ce1179911f1be8e3c26ddcee97d8da545a84c8e2681e613ebe389b

See more details on using hashes here.

Provenance

The following attestation bundles were made for melody_mp3-1.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: melody_mp3-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96b2128c4dccd971cf0104a1fb10c0dd75eb66a6ec23758c4d1578afb2cdb57c
MD5 9f2a3f0fe8cec4002c675662fd1cefa6
BLAKE2b-256 d93db54d68ed562eb3cb7197a2361a6bb775ef56f41f1beff63d1444d69bb522

See more details on using hashes here.

Provenance

The following attestation bundles were made for melody_mp3-1.1.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