Metadata-Version: 2.4
Name: scoredl
Version: 0.1.0
Summary: CLI tool to download and assemble MuseScore sheets into high-quality PDFs
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: playwright>=1.40.0
Requires-Dist: svglib>=1.5.0
Requires-Dist: reportlab>=4.0.0
Requires-Dist: pypdf>=4.0.0

# 🎼 scoredl

CLI tool sederhana berbasis Python untuk mengunduh partitur musik dari **MuseScore** dan mengonversinya langsung menjadi satu file PDF utuh berkualitas tinggi (lossless SVG).

![Python](https://img.shields.io/badge/python-3.10+-blue)
![Playwright](https://img.shields.io/badge/automation-Playwright-2EAD33)

## Fitur

- 🔄 Auto-scroll & lazy load handling via Playwright
- 🖼️ Konversi vektor SVG murni langsung ke lembaran PDF (lossless)
- 🏷️ Penamaan file otomatis berdasarkan metadata judul lagu
- 📂 Opsi simpan file SVG mentah ke subfolder terpisah (`--keep-svg`)
- 🧹 Pembersihan file temporary otomatis setelah proses selesai

## Instalasi

**Metode 1 — via PyPI (disarankan)**
```bash
pip install scoredl
playwright install chromium
```

**Metode 2 — manual (mode developer)**
```bash
git clone https://github.com/RyhmnyRin/scoredl.git
cd scoredl
python -m venv .venv

# Windows PowerShell
.venv\Scripts\Activate.ps1

# Linux/macOS
source .venv/bin/activate

pip install -e .
playwright install chromium
```

## Penggunaan

```bash
scoredl "https://musescore.com/user/xxxx/scores/yyyy"
```

Tentukan nama file output:
```bash
scoredl "https://musescore.com/user/xxxx/scores/yyyy" -o "NamaLagu.pdf"
```

Simpan juga file SVG mentahnya (tersimpan di `saved_svgs/<Judul Lagu>/`):
```bash
scoredl "https://musescore.com/user/xxxx/scores/yyyy" --keep-svg
```

## Argumen CLI

| Argumen | Opsi Panjang | Deskripsi | Wajib |
|---|---|---|---|
| `url` | – | URL partitur MuseScore | ✅ |
| `-o` | `--output` | Nama file PDF output | ❌ |
| – | `--keep-svg` | Simpan file SVG mentah per halaman | ❌ |

## Kontributor

- [RyhmnyRin](https://github.com/RyhmnyRin)
