Skip to main content

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.

Output modes

metallum --band Summoning --full    # print all sections, no interaction
metallum --band Summoning --json    # dump full entity data as JSON
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

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")

    albums = AlbumAPI(client)
    album = albums.get(band["discography"][0]["url"])

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymetallum-0.1.0.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymetallum-0.1.0-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file pymetallum-0.1.0.tar.gz.

File metadata

  • Download URL: pymetallum-0.1.0.tar.gz
  • Upload date:
  • Size: 39.0 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":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pymetallum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04193b899c62ee489f23319ad82b1fb98f527ca88f7b7a1c6991817c2688f3a9
MD5 cd15024fa877044ce4d42894dc0e2712
BLAKE2b-256 5ad17cc222345c6b5767eacfe792f675ddda84d6703647e0dbc18763f35a854c

See more details on using hashes here.

File details

Details for the file pymetallum-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymetallum-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.4 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":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pymetallum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30fb2079c8a12fba7c9cb872b1946295698ff02ffb52bd47fd9d5c6a498a1805
MD5 9043776ccb2b9e74b73a5e106c92188c
BLAKE2b-256 1c4edec3b5d7268a4a9f956afdb1b9f58884ffbb445ebb8b8bca0ad686248cd0

See more details on using hashes here.

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