Skip to main content

Python audio data toolkit (ID3 and MP3)

Project description

Status

Latest Version License Supported Python versions PyPI - Downloads GitHub Repo stars

About

eyeD3 is a Python tool for working with audio files, specifically MP3 files containing ID3 metadata (i.e. song info).

It provides a command-line tool (eyeD3) and a Python library (import eyed3) that can be used to write your own applications or plugins that are callable from the command-line tool.

For example, to set some song information in an mp3 file called song.mp3:

$ eyeD3 -a Integrity -A "Humanity Is The Devil" -t "Hollow" -n 2 song.mp3

With this command we’ve set the artist (-a/--artist), album (-A/--album), title (-t/--title), and track number (-n/--track-num) properties in the ID3 tag of the file. This is the standard interface that eyeD3 has always had in the past, therefore it is also the default plugin when no other is specified.

The results of this command can be seen by running the eyeD3 with no options.

$ eyeD3 song.mp3
song.mp3      [ 3.06 MB ]
-------------------------------------------------------------------------
ID3 v2.4:
title: Hollow
artist: Integrity
album: Humanity Is The Devil
album artist: None
track: 2
-------------------------------------------------------------------------

The same can be accomplished using Python.

import eyed3

audiofile = eyed3.load("song.mp3")
audiofile.tag.artist = "Token Entry"
audiofile.tag.album = "Free For All Comp LP"
audiofile.tag.album_artist = "Various Artists"
audiofile.tag.title = "The Edge"
audiofile.tag.track_num = 3

audiofile.tag.save()

eyeD3 is written and maintained by Travis Shirk and is licensed under version 3 of the GPL.

Features

  • Python package (import eyed3) for writing applications and plugins.

  • eyeD3 : Command-line tool driver script that supports plugins.

  • Easy ID3 editing/viewing of audio metadata from the command-line.

  • Plugins for: Tag to string formatting (display), album fixing (fixup), cover art downloading (art), collection stats (stats), and json/yaml/jabber/nfo output formats, and more included.

  • Support for ID3 versions 1.x, 2.2 (read-only), 2.3, and 2.4.

  • Support for the MP3 audio format exposing details such as play time, bit rate, sampling frequency, etc.

  • Abstract design allowing future support for different audio formats and metadata containers.

Get Started

Python >= 3.9 is required.

For installation instructions or more complete documentation see http://eyeD3.nicfit.net/

Please post feedback and/or defects on the issue tracker, or mailing list.

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

eyed3-0.9.8.tar.gz (216.3 kB view details)

Uploaded Source

Built Distribution

eyed3-0.9.8-py3-none-any.whl (140.3 kB view details)

Uploaded Python 3

File details

Details for the file eyed3-0.9.8.tar.gz.

File metadata

  • Download URL: eyed3-0.9.8.tar.gz
  • Upload date:
  • Size: 216.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.0 CPython/3.13.2 Linux/6.14.2-arch1-1

File hashes

Hashes for eyed3-0.9.8.tar.gz
Algorithm Hash digest
SHA256 a296ef47d8d5a5b5d7b518c113e650c7db6e47633b31a9ca81453cd48faf9803
MD5 8ef2072af41ccb6cf57dcbf9e7097135
BLAKE2b-256 3fdbcabe446d633d24b367445bca5f5a36ab7e1dcb4622095eae3b5c37b9888a

See more details on using hashes here.

File details

Details for the file eyed3-0.9.8-py3-none-any.whl.

File metadata

  • Download URL: eyed3-0.9.8-py3-none-any.whl
  • Upload date:
  • Size: 140.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.24.0 CPython/3.13.2 Linux/6.14.2-arch1-1

File hashes

Hashes for eyed3-0.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a49fe53dd0ec0fb1dfa92399c4b1d652e02c4555c90556d0aaa328dd192a3af7
MD5 e1e1e1ca6ddb512b3b80bef5674edc5b
BLAKE2b-256 3f061c92cae67cb9ad4f46c89f199a5f5f50fc6b1e28eb73727ff95c999e3f2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page