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)



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
  • 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

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][pypi-audio-metatag]:

pip install audio-metatag

CLI Options:

usage: audio_metatag [-h] [-d DIR] [-c] [filename ...]

positional arguments:
  filename       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 tags)

Usage Examples:

Install from PyPI with pipx, Run:

pipx install audio-metatag
audio_metatag

Clone Repo, Create/Activate Virtual Environment, Install from Source, Run:

git clone git@github.com:cgoldberg/audio-metatag.git
cd ./audio-metatag
python3 -m venv venv
source venv/bin/activate
pip install .
audio_metatag

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.2.tar.gz (6.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.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for audio_metatag-0.1.2.tar.gz
Algorithm Hash digest
SHA256 769bc1a61bcfcb5431c832d88ec812c2f7cd251ec822083c1c2a5be02d2d175b
MD5 42a5db9aa16ae79b28c99fecc37bff58
BLAKE2b-256 d2a9571ae607e4d41e67975ce8b6b10f359e1f8effb5d21f10e62ec572407871

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for audio_metatag-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7b1df528d120b25f45bea4172f9294fc89ef926c36cc760898fc016baf1a56
MD5 d33f1b2cc03f33fc6f6582fa78eba495
BLAKE2b-256 530f6349a45b1a0d9ff7a5d82eef242177063412a71ceb6220f8a77e6cbef09c

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