How anandprtp/antra works
Antra is a desktop music-library builder: users submit music links, fetch or resolve track metadata, acquire audio from available sources, then tag and organize files in a local library. The repository contains a Svelte/Wails desktop application alongside a Python service and download engine. The graph preserves the documented provider, format, lyrics, artwork, and library-management capabilities. Some backend and adapter implementations were not excerpted, so uncertain internal connections are omitted; documented workflow links cite the README.
Main entry points: engine.py Download engine · service.py Application service · models.py Track metadata · App.svelte Desktop UI
Components 19
Desktop interface
- Desktop UI
antra-wails/frontend/src/App.svelte - Wails bindings
antra-wails/frontend/wailsjs/go/main/App.js - Desktop backend
antra-wails/app_backend.go
Application entry points
- Python CLI
antra/__main__.py - JSON interface
antra/json_cli.py - Application service
antra/core/service.py
Link metadata
- Spotify client
antra/core/spotify.py - Spotify library
antra/core/spotify_library.py - Apple metadata
antra/core/apple_fetcher.py - Amazon metadata
antra/core/amazon_music_fetcher.py - Track metadata
antra/core/models.py
Audio acquisition
- Source resolver
antra/core/resolver.py - Music source adapters
antra/sources - Download engine
antra/core/engine.py
Library output
- Lyrics lookup
antra/utils/lyrics.py - Audio tagging
antra/utils/tagger.py - Library organizer
antra/utils/organizer.py - Local music library
Other components
- Music library user
Connections 19
- Music library user → Desktop UI: submits links
- Desktop UI → Wails bindings: calls backend
antra-wails/frontend/src/App.svelte - Wails bindings → Desktop backend: invokes
- Music library user → Python CLI: runs CLI
- Python CLI → Application service: uses service
antra/__main__.py - JSON interface → Application service: uses service
antra/json_cli.py - Application service → Download engine: starts downloads
antra/core/service.py - Application service → Spotify client: fetches Spotify data
antra/core/service.py - Spotify client → Track metadata: creates metadata
antra/core/spotify.py - Spotify library → Track metadata: creates metadata
antra/core/spotify_library.py - Apple metadata → Track metadata: creates metadata
antra/core/apple_fetcher.py - Amazon metadata → Track metadata: creates metadata
antra/core/amazon_music_fetcher.py - Download engine → Source resolver: resolves tracks
antra/core/engine.py - Source resolver → Music source adapters: searches sources
antra/core/resolver.py - Download engine → Music source adapters: downloads audio
antra/core/engine.py - Download engine → Lyrics lookup: fetches lyrics
antra/core/engine.py - Download engine → Audio tagging: tags audio
antra/core/engine.py - Download engine → Library organizer: organizes files
antra/core/engine.py - Library organizer → Local music library: writes files