Skip to main content

Clean metadata and tag audio files (MP3, FLAC, Ogg Vorbis)

Project description

audio-metatag

Clean metadata and tag audio files (MP3, FLAC, Ogg Vorbis)


Supported Python Versions


About:

audio_metatag is a Python CLI program that cleans metadata and adds ARTIST/TITLE tags to MP3, FLAC, or Ogg vorbis audio files. It can be used on individual files or a library of files.

  • In order to process a file, it must be named in a specific format:
    • Artist - Title.mp3, Artist - Title.flac, Artist - Title.ogg
    • File names must contain a delimiter (-) between Artist and Title, and end with a valid extension: .mp3, .flac, .ogg (case-insensitive)
  • It will skip any files that are not named according to the format specified above

Warning: Edits are done in-place. Backup your files first if you want a copy of the originals.

  • Existing metadata (tags) and pictures are deleted
  • ARTIST and TITLE tag data is taken from the filename
  • Metadata tags are saved to the file (id3v2, flac, ogg)

Requirements:

  • Python 3.12+

Installation:

Install from PyPI:

pip install audio-metatag

CLI Options:

  • If filenames are given as command-line options, it will only process those files
  • If no filename is specified, it will process all files (recursively) in the current directory
  • A different directory can be specified using the --dir option
usage: audio_metatag [-h] [-d DIR] [-c] [-s] [filename ...]

positional arguments:
  filename       [optional] file to process (multiple allowed)

options:
  -h, --help     show this help message and exit
  -d, --dir DIR  start directory
  -c, --clean    only clean metadata (don't write new tags)
  -s, --show     only show metadata (don't remove or write tags)

Usage Examples:

Install from PyPI with pipx:

pipx install audio-metatag

Clean metadata and tag a single file:

audio_metatag "Some Artist - Some Title.mp3"

Clean metadata and tag all files in current directory (recurse subdirectories):

audio_metatag

Clean metadata from all files in a directory (recurse subdirectories):

audio_metatag --clean --dir=/path/to/files

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

audio_metatag-0.1.7.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

audio_metatag-0.1.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file audio_metatag-0.1.7.tar.gz.

File metadata

  • Download URL: audio_metatag-0.1.7.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for audio_metatag-0.1.7.tar.gz
Algorithm Hash digest
SHA256 aa0176cf6784ab37514b91010286a5d3b3214e7a32ee9c8903962a7d6cc0fc3a
MD5 a95b0f00f2efcefa42c45c9538c9b717
BLAKE2b-256 aacf0ac0dcba4e93f435e43e95a68848e2ef89fcb4a3402e2103895c606e661d

See more details on using hashes here.

File details

Details for the file audio_metatag-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: audio_metatag-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for audio_metatag-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e668f56ab0c833629093fbb3c614ff80f4d4d7601a778fcf549563a398b282
MD5 1defdfb6714c15d01530c66423ca99e3
BLAKE2b-256 884bdfc942198e80ce3308429a5ade4b84f510c7eece8e84acc691ab94471458

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