An interactive CLI and Python library for browsing Metal Archives from the terminal.
Project description
pymetallum
An interactive terminal browser for Metal Archives.
Search bands, albums, artists, songs, and labels — then navigate between them with a menu-driven UI. Band logos and album covers display inline on supported terminals.
Install
pip install pymetallum
# or
uv tool install pymetallum
For local development:
git clone https://github.com/gabriel-jung/pymetallum.git
cd pymetallum
uv sync
Usage
Search
metallum Summoning # search across all categories
metallum --band Summoning # bands only
metallum --album "Minas Morgul" # albums only
metallum --artist "Protector" # artists only
metallum --song Lugburz # songs only
metallum --label "Napalm Records" # labels only
By default, exact name matches are shown first. Use -s to see all results:
metallum --band Summoning -s
Advanced search (filters)
Filters can be combined and work with --band, --album, and --song:
# bands
metallum --genre "black metal"
metallum --band --country norway --status active
metallum --band --genre thrash --themes war --year 1985-1992
metallum --band --location "Bay Area" --label-name "Megaforce"
# albums
metallum --album --genre doom --year 1990-1995
metallum --album --country finland
# songs
metallum --song --lyrics "ring of power"
metallum --song --genre "death metal"
Available filters by entity type:
| Filter | --band |
--album |
--song |
|---|---|---|---|
--genre |
x | x | x |
--country |
x | x | |
--year |
x | x | |
--status |
x | ||
--themes |
x | ||
--location |
x | x | |
--label-name |
x | x | |
--lyrics |
x |
--country accepts ISO codes (NO, FI, US) or full names (Norway, Finland).
--status accepts: active, split-up, on hold, changed name, unknown.
--year accepts a single year (1995) or a range (1990-1995).
Interactive navigation
After selecting a result, you enter an interactive browser. A numbered menu
lets you explore sections — discography, members, tracklist, reviews, similar
artists, lyrics, and more. Select any linked entity (a band member, an album,
a label) to navigate to it. Press 0 to go back.
Browse recent & upcoming
# recently added/modified bands (this month)
metallum --recent
metallum --new # only newly created
metallum --modified # only recently modified
# labels
metallum --label --recent
metallum --label --new
# specific month
metallum --new --month 2025-01
# date range (fetches full months then filters — slow for wide ranges)
metallum --new --from 2025-03-01
metallum --modified --from 2025-02-15 --to 2025-03-15
# upcoming album releases
metallum --upcoming
metallum --upcoming --from 2025-04-01 --to 2025-06-01
Random band
metallum --random
Output modes
metallum --band Summoning --full # print all sections, no interaction
metallum --band Summoning --json # dump full entity data as JSON
metallum --upcoming --json # works with any mode
metallum -v ... # enable debug logging
Terminal images
Band logos and album covers render inline on terminals that support the iTerm2 or Kitty image protocol (iTerm2, Kitty, WezTerm, Mintty).
Library
from pymetallum.core import MetalArchivesClient, BandAPI, AlbumAPI, LabelAPI
with MetalArchivesClient() as client:
bands = BandAPI(client)
results = bands.search("Summoning")
band = bands.get(results[0]["url"])
results, total = bands.advanced_search(genre="black metal", country="AT")
# random band
band = bands.get_random()
# recent/upcoming
new_bands = bands.fetch_recently_created("2025-03")
modified_bands = bands.fetch_recently_modified("2025-03")
page, total = bands.fetch_recent_page("created", "2025-03", start=0, count=25)
albums = AlbumAPI(client)
album = albums.get(band["discography"][0]["url"])
upcoming = albums.fetch_upcoming(from_date="2025-04-01", to_date="2025-06-01")
labels = LabelAPI(client)
new_labels = labels.fetch_recently_created("2025-03")
All data is returned as plain dicts. The core module has no terminal
dependencies — use it in scripts, pipelines, or other tools.
Available API classes: BandAPI, AlbumAPI, ArtistAPI, SongAPI, LabelAPI.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymetallum-0.2.0.tar.gz.
File metadata
- Download URL: pymetallum-0.2.0.tar.gz
- Upload date:
- Size: 44.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9520295c3b5f3226e404f238e0cf7d7911e9dafc70f189f844e251a65c91e10
|
|
| MD5 |
cdbeb65ebc638c0b22635b73c4eed5fa
|
|
| BLAKE2b-256 |
5ab328eeafd52bda7901fa5bf1d851efd6a54ad9a4fcdae371ac2678d1957956
|
File details
Details for the file pymetallum-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pymetallum-0.2.0-py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ad5d90e57b1de05703a1545964ac682ced52a60bb22c8f933581f87f191249
|
|
| MD5 |
ef322bc6ebe9693eff4b18ad3d0f4d4e
|
|
| BLAKE2b-256 |
524470573bbabfd1a98ba69adf00c728f975382dd42e5e26b7f8e8245e3ef99a
|