Skip to main content

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

Requires Python 3.12+.

Terminal CLI

uv tool install pymetallum
# or
pip install pymetallum

Discord bot

uv tool install 'pymetallum[discord]'
# or
pip install 'pymetallum[discord]'

Create a bot application at the Discord Developer Portal, enable the bot scope with Send Messages and Use Slash Commands permissions, then invite it to your server with the generated OAuth2 URL.

Set your bot token and run:

export DISCORD_TOKEN=your-bot-token
metallum-discord

Or put DISCORD_TOKEN=your-bot-token in a .env file in the current directory and run metallum-discord with no environment variable set.

Use --guild GUILD_ID to sync slash commands instantly to a specific server (global sync can take up to an hour).

Slash commands (all under /metallum):

Command Description
/metallum band <query> Search bands (with optional genre, country, year, status, themes, location, label filters)
/metallum album <query> Search albums (with optional genre, country, year, location, label filters)
/metallum artist <query> Search artists
/metallum song <query> Search songs (with optional genre, lyrics filters)
/metallum label <query> Search labels
/metallum search <query> Search all categories
/metallum random Show a random band
/metallum recent Recently added/modified bands or labels
/metallum upcoming Upcoming album releases

Development

git clone https://github.com/gabriel-jung/pymetallum.git
cd pymetallum
uv sync  # installs dev deps + [discord] extra

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 2026-01

# date range (fetches full months then filters — slow for wide ranges)
metallum --new --from 2026-03-01
metallum --modified --from 2026-02-15 --to 2026-03-15

# upcoming album releases
metallum --upcoming
metallum --upcoming --from 2026-04-01 --to 2026-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

All data is returned as plain dicts — use it in scripts, pipelines, or other tools.

from pymetallum.core import MetalArchivesClient, BandAPI, AlbumAPI, ArtistAPI, SongAPI, LabelAPI

with MetalArchivesClient() as client:
    bands = BandAPI(client)

    # search and fetch
    results = bands.search("Summoning")
    band = bands.get(results[0]["url"])
    band = bands.get(results[0]["url"], full=True)  # includes description & similar artists

    # advanced search with filters
    results, total = bands.advanced_search(genre="black metal", country="AT")

    # random band
    band = bands.get_random()

    # recent entries
    new_bands = bands.fetch_recently_created("2026-03")
    modified_bands = bands.fetch_recently_modified("2026-03")
    page, total = bands.fetch_recent_page("created", "2026-03", start=0, count=25)

    # albums & upcoming releases
    albums = AlbumAPI(client)
    album = albums.get(band["discography"][0]["url"])
    upcoming = albums.fetch_upcoming(from_date="2026-04-01", to_date="2026-06-01")

    # artists, songs, labels
    artists = ArtistAPI(client)
    songs = SongAPI(client)
    labels = LabelAPI(client)
    new_labels = labels.fetch_recently_created("2026-03")

    # download images
    client.download_image(band["logo_url"], output_dir="./images/")

License

MIT

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.5.9.tar.gz (44.9 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.5.9-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymetallum-0.5.9.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pymetallum-0.5.9.tar.gz
Algorithm Hash digest
SHA256 20c968a12c7779c41a3279a2451bebb2026b70f3c443fd74e21a3ecba7dcb282
MD5 69e4877661de1fe56ebbcdfbe3b88dfa
BLAKE2b-256 13fd8ac307db36de8bae2daeb86e951ee909e87f3f523ab1d908b4d693cf139b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymetallum-0.5.9.tar.gz:

Publisher: publish.yml on gabriel-jung/pymetallum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pymetallum-0.5.9-py3-none-any.whl
  • Upload date:
  • Size: 50.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pymetallum-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e51d3699c8c02e35db9de7b8b8927ef8f4f26381ce69ff3bf31d13b15df8fc
MD5 6c7ef2a07445d6fecf1218d6601de884
BLAKE2b-256 3368eb280934ad9848650898d9d550e9a68fc6126770767b37de86172145ce22

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymetallum-0.5.9-py3-none-any.whl:

Publisher: publish.yml on gabriel-jung/pymetallum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.10

2 files

This release

0.5.9 This release

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page