Mornye Python
Fetch track metadata and retrieve matching lossless audio through Tidal, Qobuz, Amazon Music and other provider backends — supplied entirely via extensions you choose and configure yourself. Integrate directly into your Python projects, build custom Telegram bots, automation tools, or bulk downloaders.
Disclaimer
This project is intended for educational and personal use only. The developer does not condone or encourage copyright infringement. The software is licensed under the MIT License.
Mornye-Python is an independent, third-party tool and is not affiliated with, endorsed by, or connected to Spotify, Tidal, Qobuz, Amazon Music, Deezer, or any other streaming service. It is also not affiliated with, and has no control over or responsibility for, any other project sharing a similar name on other platforms.
No copyrighted content is hosted, stored, mirrored, or distributed by this repository. The core application does not bundle, ship, or default to any third-party extension, registry, or provider. Extensions are installed only if a user explicitly configures and requests them from a source of their own choosing; the maintainer has no control over, does not review, and assumes no responsibility for the content or behavior of third-party extensions or registries a user may choose to install.
You are solely responsible for:
- Ensuring your use of this software, and any extension or registry you choose to install, complies with your local laws.
- Reading and adhering to the Terms of Service of any platform or provider you access, directly or through an extension.
- Any legal consequences resulting from the use or misuse of this tool.
This software is provided free of charge by the maintainer. If you paid a third party for access to it, you may have been misled or scammed.
The software is provided "as is", without warranty of any kind, express or implied. The author assumes no liability for any bans, damages, or legal issues arising from its use or misuse. Users assume all risk associated with its use.
If you are a copyright holder or an authorized representative and believe this repository infringes upon your rights, please contact the maintainer with sufficient detail (including relevant URLs and proof of ownership); the matter will be promptly investigated.
Looking for a standalone app?
- Mornye (Mobile) — Mornye for Android & iOS, maintained by @zarzet
- Mornye (Desktop) — Mornye for Windows, MacOS and Linux, maintained by @zarzet
Why Python (instead of the standalone apps)
The standalone apps are built for direct, immediate use: open it, paste a link, download. Python exists for a different case — integrating this logic into something else.
It makes sense to start here if:
- You're building a bot (Telegram, Discord) or a service that needs to handle requests from many users automatically, not a single manual download.
- You need the async API (
AsyncMornye) inside an existing FastAPI/Quart/Sanic app, with shared connection pooling. - You want to orchestrate bulk downloads via scripts — multiple playlists, full discographies, local library retagging — with custom logic (filenames via a Python function, post-download actions, saved profiles).
- You need to run headless, on a server, a NAS, or inside Docker, possibly as part of a larger pipeline.
- You want full control over which extensions get loaded and from which registry, instead of relying on a fixed set baked into an app.
If you just want a GUI for personal use, with no code involved, the Mobile app remains the simpler choice — this module is the building block those (and similar projects) can be built on top of.
Features
- Native synchronous and asynchronous Python APIs
- Modular JavaScript and Python Extension system (bring-your-own registry — nothing bundled)
- Automatic fallback among the extensions you have installed
- Built-in GUI, as a native window or served locally in a browser (
--gui/--web) - Guided terminal UI (
--tui) with catalogue search, staged and live queues, download history, network-library tools, and extension management - Docker support
- Configuration Profiles
- MusicBrainz metadata enrichment
- Synchronized lyrics — embedded in the tag and, optionally, written out as
.lrcfiles; word-by-word where the source has it, or line-synced if you prefer - Optional Canvas sidecars — the short looping visual a track carries, saved next to it as a video file (off by default; no media server reads these on its own)
- Optional animated Apple Music album artwork — saved as
cover.webpbeside downloaded tracks and compatible with Navidrome (off by default) - Optional conversion to FLAC, ALAC, WavPack, TTA, WAV, AIFF, MP3, AAC or Opus, with optional sample-rate and bit-depth caps
- Watch mode: re-sync a playlist/album/artist/URL on an interval, indefinitely
- Existing library folders — tracks you already have elsewhere are not downloaded again, and playlist M3Us still list them
- Tracks still missing — every failed track stays listed, survives a restart, and can be retried back into its playlist or cleared
- CUE splitting — turn a single-file album plus its
.cueinto one tagged file per track (--split-cue) - Optional shared-secret or per-account authentication for
--web, plus a queued, per-user download history in multi-user mode - Extension discovery directories, and optional Ed25519 signature verification on top of registry checksums
- Per-extension quality choices and settings, plus metadata fallback and field-by-field merging for Spotify, Apple Music, and Tidal links
- Local-library duplicate detection by acoustic fingerprint, independent of tags/ISRC
- Extension scaffolding + dry-run validation for developing your own
- Installable as a PWA in
--webmode (Add to Home Screen / standalone window) - Follow artists — check for new releases and fetch only what came out since
- Library upgrade — find files below a target quality (including fake Hi-Res) and re-fetch them
- Outbound notifications — webhook, Discord, Telegram or ntfy, per track or one summary per run
- Versioned REST API at
/api/v1, with an OpenAPI document at/docs - Subsonic / OpenSubsonic API — play the library from Symfonium, Feishin, DSub and other Subsonic apps, with stars, playlists, play counts and a play queue that follows you between devices
- CSV and M3U input — hand it a playlist export (Exportify, Soundiiz, an M3U/M3U8, a bare list of links) and it downloads what the file lists, matching rows that carry no link and reporting the ones it cannot
- Built-in music player — browse the local library by songs, albums and artists, with a queue, shuffle/repeat, synced lyrics and the system's media keys / Now Playing. It never lowers the quality: FLAC (Hi-Res included), MP3, WAV, Ogg, Opus and AAC play byte for byte, while formats the window cannot decode on its own (ALAC, AIFF, WavPack, TTA, APE, WMA) are decoded once to a lossless FLAC copy with the same sample rate and bit depth
- Native audio engine for the player (desktop, optional) — with libmpv available (built into the Windows release; elsewhere
brew install mpvor the distro's libmpv) the player sends AC-3/DTS in bitstream to an S/PDIF or HDMI receiver (E-AC-3, DTS-HD and TrueHD over HDMI), picks the output device, takes it in exclusive mode for bit-perfect output, and adds gapless playback, ReplayGain, audio delay, a 10-band equalizer, output channels with downmix/upmix, normalization, speed, A-B repeat, playback statistics and MPC-HC-style keys — see The Player - Dolby Digital copy for home-theatre receivers — Dolby Digital Plus (E-AC-3) downloads also get a Dolby Digital 5.1 (AC-3, 640 kbps) copy, the format a coaxial or optical S/PDIF link can carry, so a player that bitstreams it (Mornye's own native engine, MPC-HC/LAV, Kodi…) reaches the receiver in 5.1. On by default; only E-AC-3 files are touched
- Player playlists — create playlists from the local library, import M3U/M3U8 files and direct links, or import a playlist found through Mornye (from its page or from the search results) with its cover, description and every song — the ones you have not downloaded yet stay in the list marked "Not downloaded" and become playable as soon as they are in the library; add, reorder and export tracks, and save a description and cover photo
- Dashboard — what you have actually downloaded, as numbers: top artists, genres, decades, providers, listening time, activity by weekday and streaks (
--stats, or the Stats screen) - Persistent staged download queue (JSON) and download log/history (SQLite): queued work survives a restart, and completed downloads remain recorded
- Network destinations — use OS-mounted folders, SMB2/SMB3, or WebDAV, with staged and verified remote delivery
- Per-account quotas and an admin role in
--web-multiuser - Extension health panel — success rate, latency and last error per provider
- Wrong-recording guard — a provider that answers with a karaoke take, a clean edit of an explicit track, or another artist's cover is rejected and the download falls through to the next one, instead of producing a file that carries the right tags and the wrong audio
Installation
Desktop app — from the latest release: Mornye-Windows-Setup.exe (Windows installer), Mornye-macOS.dmg (Apple Silicon) or Mornye-Linux-x86_64.AppImage. They open the GUI on a double-click; the release notes cover the first-launch prompts of the unsigned builds.
Python package — for the command line, the web interface, the terminal UI and scripts:
pip install mornye
Important: out of the box, Mornye does nothing but resolve metadata — it ships with no built-in provider and no default extension source. Before you can download anything, you need to point it at an extension registry of your own choosing and install at least one extension. See Extensions.
Templates (headless, NAS, scripts)
New to it, or setting up a NAS? Start from a template in templates/ instead of a blank file:
| Template | For |
|---|---|
templates/download.py |
Download one link from a Python script |
templates/nas_sync.py |
Keep a list of playlists and albums downloaded on a NAS, re-checking every few hours |
templates/mornye-web.service |
The web interface as a systemd service on a headless Linux machine |
docker-compose.portainer.yml |
The web interface in Docker (Portainer, Synology, Unraid…) |
Documentation
The full guide lives in docs/guide/ — the README had grown
to 76 KB and 87 headings, which is past the point where GitHub or PyPI
renders it usefully. Every page below is the same text that used to be here.
| Page | What's in it |
|---|---|
| Quick Start | Every way to run it — GUI, web, CLI, terminal UI, Python — and the URL types it accepts |
| Terminal UI | --tui, the guided mode: every setting on one screen, and the download queue live |
| Extensions | Registries, installing providers, signature verification and trust tiers |
| Writing a Python Extension | Building a download-provider extension: BaseProvider, the core toolbox, a full example, packaging and publishing |
| Downloading from a CSV | Feeding it a file of tracks instead of a link: supported exports, how rows without a link are matched, and the unmatched-row report |
| Your library in numbers | The dashboard built from what you have actually downloaded — top artists, genres, decades, activity |
| Configuration | Every option: naming, quality, lyrics, enrichment, transcoding, watch mode, profiles |
| Network Destinations | Mounted paths, SMB and WebDAV profiles, safe transfers, CLI and Docker |
| API Reference | Mornye and AsyncMornye, and the objects they return |
| Migration Guide | Moving from the old distribution, CLI, environment, and local state |
| Local Tagging | Retagging an existing library, MusicBrainz enrichment, download validation |
| Automation & Operations | JSON output, post-download hooks, notifications, M3U, existing library folders, library rescan, cache maintenance, running the web server, tracks still missing |
| Following Artists | Subscriptions, new-release checks, scheduled playlist monitoring, and the library-upgrade pass |
| REST API | The versioned /api/v1 surface, quotas and the admin endpoints |
| Subsonic | Playing the library from Symfonium, Feishin, DSub and other Subsonic apps |
| Docker | Headless and NAS setups |
| CLI | The standalone executables |
Security policy and the reporting process: SECURITY.md.
Want to support the project?
If this software is useful and brings you value, consider supporting the project by buying us a coffee. Your support helps keep development going.
API Credits
MusicBrainz · LRCLIB · Musixmatch · iTunes Search API
Provider-specific credits (Tidal, Qobuz, Amazon Music, Deezer, SoundCloud, Apple Music, Pandora, and any third-party API used to reach them) now belong to whichever extension you install — see that extension's own documentation for its credits and terms.
[!TIP] Star the repo to show support, and click Watch → Custom → Releases on GitHub if you want to be notified as soon as a new release goes out.
Metadata
Release files for mornye 2.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mornye-2.2.2.tar.gz | 2.2 MB | With provenance | Details for mornye-2.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mornye-2.2.2-py3-none-any.whl | Python 3 | none | any | Details for mornye-2.2.2-py3-none-any.whl |
Total release size: 4.0 MB
Release files / mornye-2.2.2.tar.gz
| Download URL | mornye-2.2.2.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9d062fbc13db76c2a513978dd5f25f543400b81b1331046ddcdb78102c3dd03
|
|
BLAKE2b-256 checksum How to use checksums |
d1f361dea987ceb52709d1b0ca45225aafaef0f34beed1894d53d7c040c2850c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / mornye-2.2.2-py3-none-any.whl
| Download URL | mornye-2.2.2-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
791aeab4b5f6742c83b574b3ffd1faca7ccaed068bb479a47db0d2ef9f380c88
|
|
BLAKE2b-256 checksum How to use checksums |
1cb51eb9a02d63a805de20e8e32f12b9361c32cd30c6328810999a5ab29beb1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for mornye 2.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mornye-2.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.